/* === ВЕРХНЯЯ ЧАСТЬ: ЗАГОЛОВКИ + КНОПКА === */
.section-header {
    display: flex;
    justify-content: space-between; /* Заголовки слева, кнопка справа */
    align-items: flex-end; /* Выравнивание по нижнему краю */
    margin-bottom: 38px;
    gap: 20px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

/* Красная черточка */
.header-line {
    width: 40px;
    height: 3px;
    background-color: #e74c3c;
    margin-bottom: 12px;
}

/* Надзаголовок */
.header-eyebrow {
    align-self: stretch;
    flex-grow: 0;
    font-family: Inter;
    font-size: 18px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: left;
    color: #eb6054;
    padding: 6px 0 0 0;
    text-transform: uppercase;
}

/* Главный заголовок */
.header-title {
  flex-grow: 0;
  font-family: Playfair;
  font-size: 56px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.27;
  letter-spacing: normal;
  color: #011b2b;
  margin-bottom: 8px;
}

/* Описание */
.header-subtitle {
  flex-grow: 0;
  font-family: Inter;
  font-size: 20px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: normal;
  color: #5b6d78;
  margin-bottom: 0px;
}

/* === КНОПКА "ВСЕ КАТАЛОГИ" === */
.btn-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    color: #0f1e2d;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-top: auto;
}

.btn-all:hover {
    background: #f4f6f8;
    border-color: #0f1e2d;
}

.btn-all svg {
    transition: transform 0.2s ease;
}

.btn-all:hover {
    text-decoration: unset;
    color: white;
    background: black;
}



/* === СЕТКА КАТАЛОГОВ === */
.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* === КАРТОЧКА === */
.catalog-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.75; 
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    
    /* Картинка по умолчанию */
    background-image: var(--bg-rgound);
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 1px solid #d2dde4;
}

/* Градиентный оверлей */
.catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(15, 30, 45, 0) 0%, 
        rgba(15, 30, 45, 0.2) 50%, 
        rgba(15, 30, 45, 0.9) 85%,
        rgba(15, 30, 45, 1) 100%
    );
    z-index: 1;
}

/* Контент внутри карточки */
.catalog-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 20px;
    z-index: 2;
    color: #ffffff;
}

.catalog-title {
    align-self: stretch;
  flex-grow: 0;
  font-family: Inter;
  font-size: 20px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-align: left;
  color: #fff;
}

.catalog-meta {
    flex-grow: 0;
  font-family: Inter;
  font-size: 14px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.43;
  letter-spacing: normal;
  text-align: left;
  color: #fff;
}

.separator {
    margin: 0 5px;
    font-size: 16px;
    line-height: 0;
    position: relative;
    top: -1px;
}

.btn-all-mobile{
		display: none;
	}

body .section-header a:hover,.catalog-card:hover,.btn-all-mobile:hover{
	text-decoration: none;
}
/* =========================================
   АДАПТИВ (МЕДИА-ЗАПРОСЫ)
   ========================================= */

@media (max-width: 1919px) {
	.header-title {
		font-size: 56px;
		line-height: 1.27;
	}
	.header-subtitle {
		font-size: 20px;
		line-height: 1.2;
	}
}

@media (max-width: 1439px) {
	.header-title {
		font-size: 48px;
		line-height: 1.48;
	}
	.header-subtitle {
		font-size: 20px;
		line-height: 1.2;
	}
    .catalogs-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Планшет горизонтальный */
@media (max-width: 1279px) {
	.section-header{
		margin-bottom: 20px;
	}
	.header-title {
		font-size: 36px;
		line-height: 1;
	}
	.header-subtitle {
		font-size: 15px;
		line-height: 1.2;
	}
    .catalogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .catalog-card {
        aspect-ratio: auto;
        height: 70px;
        display: flex;
        align-items: center;
        background-color: #fff;
        background-image: none;
    }

    .catalog-card::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 70px;
        height: 100%;
        background-image: var(--bg-rgound);
        background-size: cover;
        background-position: center;
        z-index: 1;
    }

    .catalog-card::before {
        display: none;
    }

    .catalog-content {
        position: relative;
        padding: 0 15px 0 85px;
        color: #0f1e2d;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .catalog-title {
        font-size: 18px;
        font-weight: 500;
        color: #011b2b;
         line-height: 1.35;
        margin-bottom: 2px;
    }

    .catalog-meta {
        color: #5b6d78;
    }

    .catalog-content .separator {
        color: #5b6d78;
    }
}

/* Мобильный */
@media (max-width: 779px) {
	.btn-all{
		display: none;
	}
	.btn-all-mobile{
		display: inline-flex;
	    align-items: center;
	    flex-grow: 0;
	  font-family: Inter;
	  font-size: 16px;
	  font-weight: 600;
	  font-stretch: normal;
	  font-style: normal;
	  line-height: normal;
	  letter-spacing: normal;
	  justify-content: center;
	  color: #011b2b;
	      background: transparent;
	    border: solid 0.8px #5b6d78;
	    padding: 13px 20px;
	    border-radius: 6px;
	    text-decoration: none;
	}
	.btn-all-mobile:hover{
		color: white;
		background: black;
	}
    .header-title {
		font-size: 32px;
		line-height: 1;
	}
	.header-subtitle {
		font-size: 14px;
		line-height: 1.43;
	}

    .catalogs-grid {
        grid-template-columns:1fr;
        gap: 12px;
    }

    .catalog-card::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 70px;
        height: 100%;
        background-image: var(--bg-rgound);
        background-size: cover;
        background-position: center;
        z-index: 1;
    }

    .catalog-card::before {
        display: none;
    }

    .catalog-content {
        position: relative;
        padding: 0 15px 0 85px;
        color: #0f1e2d;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .catalog-title {
        font-size: 18px;
        font-weight: 600;
        color: #0f1e2d;
        margin-bottom: 2px;
    }

    .catalog-meta {
        color: #5b6d78;
    }

    .separator {
        color: #5b6d78;
    }
}