* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
/*  background: #eef4fb;*/
  color: #0f172a;
    
    
      min-height: 100vh;
/*  padding: 35px 20px;*/
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.82)),
    url("images/frazeol-bg4.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px;
}

.hero {
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  color: #fff;
  padding: 34px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  margin-bottom: 22px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.hero p {
  margin: 12px 0 0;
  opacity: .9;
  font-size: 17px;
}

.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.toolbar input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 17px 20px;
  border-radius: 18px;
  font-size: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.total {
  background: #0f172a;
  color: #fff;
  padding: 15px 22px;
  border-radius: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.authors-list {
  display: grid;
  gap: 16px;
}

.author-card {
  background: #fff;
  border: 1px solid #dbe7f3;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    height: 100%;
}

.author-head {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.author-head h2 {
  margin: 0;
  color: #0f766e;
  font-size: 21px;
  line-height: 1.3;
}

.author-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e7f8f6;
  color: #0f766e;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  flex: 0 0 auto;
}

.author-card.open .arrow {
  background: #0f766e;
  color: #fff;
}

.works {
  display: none;
  padding: 0 22px 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.author-card.open .works {
  display: grid;
}

.work-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e2edf8;
  transition: .2s;
}

.work-item:hover {
  background: #eef8f7;
  transform: translateY(-2px);
}

.pdf-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ef4444;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}

.work-item h3 {
  margin: 0;
  color: #0f766e;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.work-item p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
}

.empty {
  display: none;
  margin-top: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  color: #64748b;
}

.viewer-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eaf1f8;
}

.viewer-top {
  background: #ffffff;
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #dbe7f3;
}

.viewer-top h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: #0f172a;
}

.viewer-top p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.back-btn {
  text-decoration: none;
  background: #0f172a;
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.pdf-frame {
  width: 100%;
  flex: 1;
  border: 0;
  background: #ffffff;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-btn {
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  backdrop-filter: blur(8px);
  transition: 0.2s;
  white-space: nowrap;
}

.home-btn:hover {
  background: #ffffff;
  color: #0f766e;
}
@media (max-width: 600px) {
  .hero-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 18px 12px;
  }

  .hero {
    padding: 24px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .total {
    text-align: center;
  }

  .author-head {
    padding: 18px;
  }

  .author-head h2 {
    font-size: 18px;
  }

  .works {
    padding: 0 14px 16px;
    grid-template-columns: 1fr;
  }

  .viewer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-top h1 {
    font-size: 16px;
  }
}




.frazeol-main-header {
    width: 100%;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
    position: sticky;
    top: 0;
    z-index: 999;
}
.frazeol-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.frazeol-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.frazeol-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.frazeol-brand strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: #075244;
  font-weight: 900;
  letter-spacing: .5px;
}

.frazeol-brand span {
  display: block;
  margin-top: 6px;
  color: #9b1c1c;
  font-size: 13px;
  font-weight: 800;
}

.frazeol-top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.frazeol-top-nav a {
  color: #122;
  font-weight: 800;
  text-decoration: none !important;
  padding: 12px 16px;
  border-radius: 40px;
  transition: .25s;
}

.frazeol-top-nav a:hover {
  background: #075244;
  color: #fff;
}

@media (max-width: 900px) {
  .frazeol-top-nav {
    display: none;
  }

  .frazeol-brand strong {
    font-size: 24px;
  }

  .frazeol-brand span {
    font-size: 11px;
  }
}

.mobile-menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: #075244;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}






.frazeol-footer {
  background: linear-gradient(135deg, #063b33, #0b5b4b);
  padding: 55px 20px 35px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.frazeol-footer::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.frazeol-footer::after {
  content: "Frazeol.kz";
  position: absolute;
  right: 40px;
  bottom: 15px;
  font-size: 70px;
  font-weight: 900;
  color: rgba(255,255,255,.05);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 35px;
  align-items: center;
}

.footer-brand h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  margin: 0;
}

.footer-brand p,
.footer-info p,
.footer-info span {
  color: rgba(255,255,255,.75);
  margin: 6px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.footer-links a {
  color: #fff;
  text-decoration: none !important;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 30px;
  background: rgba(255,255,255,.08);
  transition: .25s;
}

.footer-links a:hover {
  background: #d4a017;
  color: #063b33;
}

.footer-info {
  text-align: right;
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }
}

.authors-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.author-card {
  background: none;
  border: none;
}

.researcher-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(7,82,68,.12);
  border-radius: 28px;
  padding: 24px;
  text-decoration: none !important;
  box-shadow: 0 24px 65px rgba(15,23,42,.08);
  transition: .3s;
      min-height: 230px;
  height: 100%;
}

.researcher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 85px rgba(15,23,42,.14);
  border-color: #d4a017;
}

.researcher-photo {
  width: 150px;
  height: 180px;
  border-radius: 22px;
  overflow: hidden;
  background: #eef4f8;
}

.researcher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.researcher-info h2 {
  color: #075244;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}

.researcher-info p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 22px;
      min-height: 54px;
}

.researcher-info {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.researcher-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5edf3;
  padding-top: 16px;
    margin-top: auto;
}

.researcher-bottom span {
  color: #9b1c1c;
  font-weight: 900;
}

.researcher-bottom b {
  color: #075244;
  font-weight: 900;
}

@media (max-width: 900px) {
  .authors-list {
    grid-template-columns: 1fr;
  }

  .researcher-card {
    grid-template-columns: 1fr;
  }

  .researcher-photo {
    width: 100%;
    height: 240px;
  }
}
.viewer-author-page {
  min-height: 100vh;
  padding: 35px 20px;
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.82)),
    url("images/frazeol-bg5.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.viewer-author-card {
  max-width: 1180px;
  margin: 30px auto 45px;
  background: rgba(255,255,255,.92);
  border-radius: 34px;
  padding: 42px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 38px;
  box-shadow: 0 30px 90px rgba(15,23,42,.14);
  border: 1px solid rgba(7,82,68,.12);
}

.viewer-author-card img {
  width: 260px;
  height: 330px;
  object-fit: cover;
  border-radius: 28px;
}

.viewer-author-card span {
  color: #9b1c1c;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.viewer-author-card h1 {
  color: #075244;
  font-size: 48px;
  font-weight: 900;
  margin: 12px 0 22px;
}

.viewer-author-card p {
  color: #243447;
  font-size: 18px;
  line-height: 1.85;
}

.works-title {
  max-width: 1180px;
  margin: 0 auto 22px;
  color: #075244;
  font-size: 34px;
  font-weight: 900;
}

.viewer-works-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.viewer-works-grid a {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
  border-left: 5px solid #d4a017;
}

.viewer-works-grid strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.viewer-works-grid span {
  color: #075244;
  font-weight: 900;
}

@media (max-width: 800px) {
  .viewer-author-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .viewer-author-card img {
    width: 100%;
    height: 280px;
  }

  .viewer-author-card h1 {
    font-size: 34px;
  }

  .viewer-works-grid {
    grid-template-columns: 1fr;
  }
}