/* =============== БАЗА =============== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #0B2027;
    color: #F8F9FA;
    font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =============== ШРИФТЫ =============== */

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-Regular.ttf") format("truetype");
    font-weight: 400;
}
@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-Medium.ttf") format("truetype");
    font-weight: 500;
}
@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest-SemiBold.ttf") format("truetype");
    font-weight: 600;
}
@font-face {
    font-family: "Albert Sans";
    src: url("/assets/fonts/AlbertSans-Regular.ttf") format("truetype");
    font-weight: 400;
}
@font-face {
    font-family: "Albert Sans";
    src: url("/assets/fonts/AlbertSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
}

/* =============== КОНТЕЙНЕР =============== */

.container {
    width: 1620px;          /* как в фигме */
    margin-left: auto;
    margin-right: auto;
}

/* =============== HEADER =============== */

.header {
    padding-top: 40px;
}

.header__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Albert Sans", system-ui, sans-serif;
    font-size: 14px;
    color: #A6B4C0;
    opacity: 0.75;
}

/* =============== HERO =============== */

.hero {
    margin-top: 90px;   /* отступ сверху по макету */
}

.hero__image {
    display: block;
    margin: 0 auto;
    width: 1100px;      /* ширина композиции из фигмы */
    height: auto;
}

/* =============== CARD GRID (БЕНТО) =============== */

.cards {
    margin-top: 90px;   /* расстояние от hero до карточек */
    margin-bottom: 120px;
}

.cards__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;   /* горизонтальный gap */
    row-gap: 24px;      /* вертикальный gap */
}

/*
   12-колоночная сетка, каждая колонка = 1fr
   Левая и правая колонка занимают по 6 колонок
*/

.card {
    background: rgba(255,255,255,0.04);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 40px;
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.8);
    border-color: rgba(255,255,255,0.16);
}

/* Позиция в сетке */

.card--left {
    grid-column: span 6;
}

.card--right {
    grid-column: span 6;
}

/* Высоты по типам (примерно как в бенто Figma) */

.card--large {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card--right.card--large {
    flex-direction: row;
    align-items: center;
}

.card--small {
    min-height: 260px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

/* =============== ИКОНКИ =============== */

.card__icon {
    display: block;
}

.card--large.card--left .card__icon {
    width: 260px;
    margin-bottom: 24px;
}

.card--large.card--right .card__icon {
    width: 280px;
    margin-left: 40px;
}

.card__icon--small {
    width: 140px;
    margin-right: 32px;
    flex-shrink: 0;
}

/* =============== ТЕКСТ =============== */

.card__title {
    font-family: "Albert Sans", system-ui, sans-serif;
    font-weight: 600;
    font-size: 26px;
    margin: 0 0 16px;
}

.card__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #D0D8E0;
}

/* В больших карточках правый текст чуть шире */

.card--large.card--right .card__content {
    max-width: 460px;
}

/* В маленьких — компактнее */

.card--small .card__content {
    max-width: 380px;
}

