body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f5f9ff;
  color: #222;
}

#topblock {
  background: #031838;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}
#topblock a {
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
}
#topblock a:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

header {
  background: url('fon.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 1rem 1rem;
  position: relative;
}

/* затемнение фона для лучшей читаемости текста */
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 24, 56, 0.65); /* полупрозрачный темный слой */
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1; /* чтобы контент был поверх затемнения */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}


.photo img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #adbafa;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.info h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
}

.info p {
  margin: 0.3rem 0;
  line-height: 1.4;
}

.info a {
  color: #dbe5ff;
  text-decoration: underline;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background: #e8f0ff;
  padding: .8rem 1rem;
  border-bottom: 2px solid #c5dbff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex: 1;
}

nav a {
  text-decoration: none;
  color: #1e3c72;
  font-weight: 600;
  padding: .4rem .8rem;
  border-radius: 6px;
  transition: background .3s, color .3s;
}

nav a:hover {
  background: #1e3c72;
  color: white;
}

nav a.top-link {
  margin-left: auto;
  background: #1e3c72;
  color: white;
}
nav a.top-link:hover {
  background: #e45050;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.info-block {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.info-block h3 {
  margin-top: 0;
  color: #0f0e63;
}

.accordion {
  border-radius: 10px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #d4e2ff;
}

.accordion-header {
  background: #f0f6ff;
  cursor: pointer;
  padding: 1rem;
  font-weight: 600;
  color: #2117b8;
  transition: background .3s;
}
.accordion-header:hover {
  background: #d9e6ff;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 1rem;
  background: white;
}
.accordion-content.open {
  padding: 1rem;
}
.accordion-item.fixed .accordion-header {
  background: #cfe0ff;
}

footer {
  background: #031838;
  color: white;
  text-align: center;
  padding: 1rem 0.5rem;
  margin-top: 1rem;
  border-top: 1px solid #8a9fe4;
}

.footer-content a {
  color: #dbe5ff;
  text-decoration: underline;
}
.footer-content a:hover {
  color: #ffffff;
  text-decoration: none;
}

.accordion-content p,
.text-block p {
  text-align: justify;
  text-indent: 1.5em;
  margin: 0;
  line-height: 1.6;
}

.accordion-content ul.ref-list {
  list-style: none;
  padding-left: 2em;
  margin: 0;
  text-align: justify;
}

.accordion-content ul.ref-list li {
  margin: 0;
  padding: 0;
}

.subsection, .subsubsection {
  color: #1e3c72;
  font-weight: 700;
  text-align: left;
}
.subsection { font-size: 1.05rem; margin-top: 1.5rem; }
.subsubsection { font-size: 1rem; margin-top: 1.2rem; }

.inner-nav {
  list-style: none;
  padding-left: 1.5em;
  margin: 0 0 1rem 0;
}
.inner-nav li { margin: 0.3rem 0; }
.inner-nav a {
  text-decoration: none;
  color: #1e3c72;
  font-weight: 600;
  transition: color 0.3s;
}
.inner-nav a:hover {
  color: #e45050;
  text-decoration: underline;
}

.image-center {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  margin: 1rem 0;
}

.image-center img {
  max-width: 90%;     
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.figure-caption {
  font-size: 0.9rem;
  font-style: italic;
  color: #333;
  margin-top: 0.3rem;
  text-align: center;
  max-width: 90%;
  display: block;
}


.accordion-content table {
  border-collapse: collapse;
  margin: 20px auto;
  width: auto;
  max-width: 100%;
  font-size: 0.95rem;
  text-align: center;
}
.accordion-content th,
.accordion-content td {
  border: 1px solid #999;
  padding: 8px 12px;
}
.accordion-content th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.accordion-content caption {
  caption-side: top;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: right;       
}

.manual {
  background-color: #f9f9f9;
  border: 1px solid #99c3fb;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 20px 0;
}
.manual h3 {
  margin-top: 0;
  color: #1d1d1d;
  font-weight: 600;
}
.manual-subtext {
  font-size: 0.85rem;       
  font-style: italic;       
  color: #222222;            
  margin-top: 5px;
  line-height: 1.5;
}


.publication-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.publication-item {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.publication-item:hover {
  background-color: #f3f7ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.publication-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.publication-title a {
  color: #2b5cb8;
  text-decoration: none;
}

.publication-title a:hover {
  text-decoration: underline;
}

.publication-authors,
.publication-description,
.publication-source {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 6px;
}

.publication-description {
  text-align: justify;
}

.publication-source a {
  color: #006699;
  text-decoration: none;
}

.publication-source a:hover {
  text-decoration: underline;
}

.theme-animated {
  transition: all 0.25s ease;
}

/* ====== Адаптивность ====== */
@media (max-width: 768px) {
  .publication-item {
    padding: 12px 15px;
  }
  .publication-title {
    font-size: 1rem;
  }
  .publication-description {
    font-size: 0.9rem;
  }
}
