.catalog-archive {
    min-height: 70vh;
    padding: 56px 0 80px;
    background: #f7f9fc;
}

.catalog-archive__container {
    width: min(1680px, calc(100% - 100px));
    margin: 0 auto;
}

.catalog-archive__header {
    max-width: 760px;
    margin-bottom: 36px;
}

.catalog-archive__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #f4a900;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-archive__header h1 {
    margin: 0 0 12px;
    color: #092b4c;
    font-size: clamp(38px, 3vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.catalog-archive__header p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(15, 42, 70, 0.05);
}

.catalog-search {
    position: relative;
    width: min(560px, 100%);
}

.catalog-search__icon {
    position: absolute;
    top: 50%;
    left: 18px;
    color: #718096;
    transform: translateY(-50%);
    pointer-events: none;
}

.catalog-search input {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 18px 0 50px;
    color: #102f4e;
    font-size: 15px;
    background: #f7f9fc;
    border: 1px solid #dde5ee;
    border-radius: 9px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.catalog-search input:focus {
    background: #ffffff;
    border-color: #1268ae;
    box-shadow: 0 0 0 3px rgba(18, 104, 174, 0.12);
}

.catalog-toolbar__result {
    flex-shrink: 0;
    color: #718096;
    font-size: 14px;
    font-weight: 600;
}

.catalog-toolbar__result span {
    color: #102f4e;
    font-weight: 800;
}

.catalog-archive__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.catalog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6ecf2;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20, 45, 75, 0.055);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.catalog-card:hover {
    border-color: #cfdae5;
    box-shadow: 0 16px 38px rgba(20, 45, 75, 0.11);
    transform: translateY(-4px);
}

.catalog-card__cover {
    position: relative;
    display: block;
    height: 330px;
    overflow: hidden;
    background: #edf1f5;
    border-bottom: 1px solid #e7edf3;
}

.catalog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}

.catalog-card:hover .catalog-card__image {
    transform: scale(1.025);
}

.catalog-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(12, 82, 139, 0.08), rgba(244, 169, 0, 0.09)),
        #eef3f7;
}

.catalog-card__placeholder span {
    color: #174f7c;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.catalog-card__year {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 7px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    background: rgba(8, 41, 72, 0.9);
    border-radius: 6px;
    backdrop-filter: blur(7px);
}

.catalog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.catalog-card__title {
    margin: 0;
    color: #0b2d4e;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.catalog-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 12px 0 0;
    color: #687789;
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-card__actions {
    margin-top: auto;
    padding-top: 22px;
}

.catalog-card__button {
    display: inline-flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    border-radius: 8px;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.catalog-card__button--primary {
    color: #ffffff;
    background: #0c5f9f;
}

.catalog-card__button--primary:hover {
    color: #ffffff;
    background: #084b7e;
    transform: translateY(-1px);
}

.catalog-card__button--disabled {
    color: #8a97a6;
    cursor: not-allowed;
    background: #edf1f5;
}

.catalog-empty {
    padding: 70px 30px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5ebf1;
    border-radius: 14px;
}

.catalog-empty h2 {
    margin: 0 0 8px;
    color: #0b2d4e;
    font-size: 25px;
}

.catalog-empty p {
    margin: 0;
    color: #718096;
}

.catalog-card[hidden] {
    display: none !important;
}

.catalog-search {
    position: relative;
}

.catalog-search input[type="search"] {
    width: 100%;
    height: 50px;
    padding: 0 18px 0 52px !important;
    line-height: 50px;
    text-indent: 0 !important;
}

.catalog-search__icon {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 2;
    width: 20px;
    height: 20px;
    pointer-events: none;
    transform: translateY(-50%);
}

@media (max-width: 767px) {
  .catalog-archive {
    padding: 36px 0 56px;
  }

  .catalog-archive__container {
    width: calc(100% - 28px);
  }

  .catalog-archive__header {
    margin-bottom: 24px;
  }

  .catalog-archive__header h1 {
    font-size: 36px;
  }

  .catalog-archive__header p {
    font-size: 15px;
    line-height: 1.6;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
  }

  .catalog-search {
    width: 100%;
  }

  .catalog-toolbar__result {
    text-align: right;
    font-size: 13px;
  }

  .catalog-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .catalog-card {
    border-radius: 12px;
  }

  .catalog-card__cover {
    height: 220px;
  }

  .catalog-card__body {
    padding: 14px;
  }

  .catalog-card__title {
    font-size: 15px;
    line-height: 1.35;
  }

  .catalog-card__excerpt {
    display: none;
  }

  .catalog-card__actions {
    padding-top: 14px;
  }

  .catalog-card__button {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .catalog-card__year {
    top: 10px;
    right: 10px;
    padding: 6px 8px;
    font-size: 11px;
  }
}