/* ========== RESET & VARIABLES ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --purple: #620080;
  --pink: #f27990;
  --light-bg: #f9f6fc;
  --font: 'Segoe UI', system-ui, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--light-bg);
  color: var(--purple);
  line-height: 1.6;
  padding-top: 80px;
  overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='8' y='20' fill='%23620080' opacity='0.03' font-size='12' font-family='Segoe UI'%3Eлекcикография%3C/text%3E%3Ctext x='8' y='35' fill='%23620080' opacity='0.03' font-size='12'%3Eстрановедение%3C/text%3E%3Ctext x='8' y='50' fill='%23620080' opacity='0.03' font-size='12'%3EUX%3C/text%3E%3Ctext x='8' y='65' fill='%23620080' opacity='0.03' font-size='12'%3Eперевод%3C/text%3E%3Ctext x='8' y='80' fill='%23620080' opacity='0.03' font-size='12'%3Eграмматика%3C/text%3E%3C/svg%3E");
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
/* (весь стиль хедера — как в /css/style.css — для единообразия) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/header-bg.png') no-repeat center center;
  background-size: cover;
  backdrop-filter: blur(8px);
  z-index: -1;
  transform: scale(1.15);
  transition: transform 9s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header.scrolled::before {
  transform: scale(1);
}

.header__logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--pink);
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(242, 121, 144, 0.4);
  transition: transform 0.3s;
}

.header__logo:hover {
  transform: scale(1.05);
}

.header__menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.header__menu a {
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
}

.header__menu a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(242, 121, 144, 0.3) 0%, transparent 70%);
  border-radius: 12px;
  transition: transform 0.4s ease;
  z-index: -1;
}

.header__menu a:hover {
  color: var(--pink);
  text-shadow: 0 0 15px rgba(242, 121, 144, 0.6);
  transform: translateY(-3px);
}

.header__menu a:hover::before {
  transform: translate(-50%, -50%) scale(1.2);
}

/* ========== MOBILE MENU ========== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header__menu { display: none; }
  .header__menu.active {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(98, 0, 128, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    z-index: 999;
    display: flex;
  }
  .header__menu li { width: 100%; text-align: center; margin: 10px 0; }
}

/* ========== ACADEMIC HERO ========== */
.academic-hero {
  text-align: center;
  padding: 60px 0 40px;
  margin-bottom: 50px;
}

.academic-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.academic-subtitle {
  font-size: 1.2rem;
  color: var(--purple);
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.academic-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stat {
  background: rgba(98, 0, 128, 0.08);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--purple);
  font-size: 1rem;
}

/* ========== SEO BLOCKS ========== */
.seo-blocks { margin-bottom: 50px; }
.seo-block {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  background: white;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.seo-icon {
  background: var(--pink);
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.seo-content h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--purple);
}

.seo-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--purple);
  opacity: 0.9;
  margin-bottom: 14px;
}

.seo-content a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
}

.seo-content a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .seo-block { flex-direction: column; }
}

/* ========== PUBLICATIONS ========== */
.year-block {
  margin-bottom: 50px;
}

.year-block h2 {
  font-size: 1.8rem;
  color: var(--purple);
  margin-bottom: 24px;
  position: relative;
  padding-left: 12px;
}

.year-block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
}

.publication-card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(242, 121, 144, 0.15);
}

.publication-card__header {
  padding: 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.publication-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple);
  margin: 0;
  line-height: 1.4;
}

.publication-card__toggle {
  background: var(--pink);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  margin-left: 12px;
}

.publication-card__content {
  padding: 0 22px 22px;
  display: none;
}

.publication-card.open .publication-card__content {
  display: block;
}

.publication-card__abstract {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--purple);
  opacity: 0.9;
  margin-bottom: 16px;
}

.publication-card__source {
  font-size: 0.92rem;
  color: var(--purple);
  opacity: 0.75;
  font-style: italic;
  margin-bottom: 18px;
}

.publication-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.publication-card__action {
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  transition: opacity 0.2s;
}

.publication-card__action.download { background: var(--purple); }
.publication-card__action.external { background: var(--pink); }

.publication-card__action:hover { opacity: 0.9; }

/* ========== FOOTER ========== */
.footer {
  background: white;
  padding: 50px 0 30px;
  margin-top: 80px;
  border-top: 1px solid #eee;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  gap: 30px;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple);
  text-decoration: none;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-email a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-email a:hover {
  color: var(--pink);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f3f7;
  color: var(--purple);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--pink);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
}

.footer-copyright {
  color: var(--purple);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    align-items: center;
    gap: 20px;
  }

  .footer-social {
    justify-content: center;
  }
}
/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .academic-hero h1 { font-size: 2.2rem; }
  .academic-stats { flex-direction: column; gap: 10px; }
  .publication-card__actions { flex-direction: column; }
  .publication-card__action { width: 100%; text-align: center; }
}