
.containerCategoria{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.menu_class{
  width: 100%;
}

.containerBooks{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.test-card{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.test-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15,23,42,.10);
  border-color: #cbd5e1;
}

.test-card-title{
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.test-card-subtitle{
  margin: 0 0 20px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.4;
}

.test-card-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #384c67b5;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s ease, transform .06s ease;
}

.test-card-btn:hover{
  opacity: .92;
  color: #fff;
  text-decoration: none;
}

.test-card-btn:active{
  transform: scale(.98);
}

@media (max-width: 1200px){
  .containerBooks{
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 900px){
  .containerBooks{
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 18px;
  }

  .test-card-title{
    font-size: 24px;
  }
}

@media (max-width: 560px){
  .containerCategoria{
    padding: 0 14px;
  }

  .containerBooks{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .test-card{
    min-height: auto;
    padding: 18px;
  }

  .test-card-title{
    font-size: 22px;
  }
}


.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;
  }
}


/* ОБЩИЙ БЛОК С ОПИСАНИЕМ */
.test-hero-section {
    width: 100%;
    padding: 70px 20px 55px;
    position: relative;
}

/* чтобы карточка стояла красиво по центру */
.container-search {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* КАРТОЧКА ОПИСАНИЯ */
.test-info-card {
    position: relative;
    overflow: hidden;
    max-width: 920px;
    margin: 0 auto;
    padding: 42px 55px;
    text-align: center;

    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;

    box-shadow:
        0 25px 70px rgba(31, 42, 68, 0.13),
        0 8px 22px rgba(31, 42, 68, 0.08);
}

/* декоративное пятно */
.test-info-card::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    left: -90px;
    top: -120px;
    background: radial-gradient(circle, rgba(0, 107, 92, 0.18), transparent 70%);
    border-radius: 50%;
}

/* декоративное пятно справа */
.test-info-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -110px;
    bottom: -130px;
    background: radial-gradient(circle, rgba(128, 39, 39, 0.13), transparent 70%);
    border-radius: 50%;
}

/* маленькая метка */
.test-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 18px;
    margin-bottom: 18px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    color: #006b5c;
    background: rgba(0, 107, 92, 0.10);
    border: 1px solid rgba(0, 107, 92, 0.18);
    border-radius: 999px;
}

/* заголовок */
.test-title {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;

    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    color: #162033;
}

/* описание */
.test-description {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;

    font-size: 18px;
    line-height: 1.75;
    font-weight: 500;
    color: #536174;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 768px) {
    .test-hero-section {
        padding: 45px 14px 35px;
    }

    .test-info-card {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .test-title {
        font-size: 27px;
    }

    .test-description {
        font-size: 15.5px;
        line-height: 1.65;
    }
}