* {
  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-bg5.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page {
  max-width: 1200px;
  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;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.pdf-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #dbe7f3;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  transition: .2s;
      min-height: 150px;
  align-items: flex-start;
}

.pdf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.academic-card {
  position: relative;
  min-height: 300px;
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  text-decoration: none !important;
  border: 1px solid rgba(7,82,68,.12);
  box-shadow: 0 24px 65px rgba(15,23,42,.08);
  transition: .28s ease;
  overflow: hidden;
}

.academic-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 5px;
  height: 72px;
  background: linear-gradient(180deg, #075244, #d4a017);
  border-radius: 0 12px 12px 0;
}

.academic-card::after {
  content: "Frazeol.kz";
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 26px;
  font-weight: 900;
  color: rgba(7,82,68,.045);
}

.academic-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.academic-meta span {
  color: #075244;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.academic-meta em {
  color: #9b1c1c;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.academic-card h2 {
  color: #071326;
  font-size: 24px;
  line-height: 1.42;
/*  font-weight: 900;*/
  margin: 0 0 28px;
}

.academic-footer {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 28px;
  padding-top: 18px;
/*  border-top: 1px solid #e7edf2;*/
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.academic-footer b {
  color: #075244;
  font-weight: 900;
}

.academic-footer span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f7f8f5;
  display: grid;
  place-items: center;
  color: #075244;
  transition: .25s;
}

.academic-card:hover {
  transform: translateY(-7px);
  border-color: #d4a017;
  box-shadow: 0 34px 85px rgba(15,23,42,.14);
}

.academic-card:hover .academic-footer span {
  background: #075244;
  color: #fff;
  transform: translateX(5px);
}

@media (max-width: 1000px) {
  .pdf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .pdf-grid {
    grid-template-columns: 1fr;
  }

  .academic-card {
    min-height: 280px;
    padding: 24px;
  }

  .academic-card h2 {
    font-size: 21px;
  }

  .academic-footer {
    left: 24px;
    right: 24px;
  }
}

.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: #fff;
  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;
}

.back-btn {
  text-decoration: none;
  background: #0f172a;
  color: #fff;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.pdf-frame {
  width: 100%;
  flex: 1;
  border: 0;
  background: #fff;
}

.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: 600px) {
  .hero {
    padding: 24px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .total {
    text-align: center;
  }

  .pdf-grid {
    grid-template-columns: 1fr;
  }

  .viewer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-top h1 {
    font-size: 16px;
  }
}


.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;
  }
}


.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;
}
