* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4f4f4;
    font-family: sans-serif;
}

.header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.header-title {
    font:
        500 72px / 100% "Inter",
        sans-serif;
    letter-spacing: -0.05em;
    color: #000;
    margin-right: auto;
    margin-left: 40px;
}

.header-logo {
    max-width: 312px;
}

.header-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-invite {
    background: linear-gradient(
        143.56deg,
        #0d2a6b 13.57%,
        #019898 70.06%,
        #1e4268 89.74%
    );
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    width: 100%;
    height: 56px;
    font:
        400 20px / 110% "Inter",
        sans-serif;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.itogi {
    border: 1px solid #000;
    border-radius: 2px;
    padding-block: 0;
    padding-inline: 32px;
    width: 275px;
    height: 56px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110.00000000000001%;
    letter-spacing: -2%;
    text-transform: uppercase;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}

.about-wrap {
    width: 100%;
    max-width: 1440px;
    padding-top: 40px;
    padding-left: 40px;
    padding-right: 40px;
    margin-left: auto;
    margin-right: auto;
}

.about {
    width: 50%;
    max-width: 720px;
}

.about p {
    font:
        500 28px / 104% "Inter",
        sans-serif;
    letter-spacing: -0.05em;
    color: #000;
    padding-bottom: 16px;
}

.cards {
    display: grid;
}

.footer {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 24px;
    padding-bottom: 24px;
    background: #000000;
    margin-top: 40px;
}

.social-container {
    max-width: 1240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social__item {
    cursor: pointer;
}

.social__icon {
    fill: var(--White);
    transition: var(--hover-transition);
}

.social__link:hover .social__icon {
    fill: #157f8a;
    transition: var(--hover-transition);
}

/* Контейнер для центрирования сеток */
.container {
    max-width: 1440px;
    margin: 0 auto;
}

/* === ОБЩИЕ СТИЛИ КАРТОЧЕК === */
.item {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;

    background: linear-gradient(
        0.84deg,
        rgba(0, 0, 0, 0.4) 21.57%,
        rgba(102, 102, 102, 0) 62.24%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
    overflow: hidden;
    cursor: pointer;
}

.item::before {
    position: absolute;
    content: "";
    background: rgba(0, 0, 0, 0.28);
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s;
}

.item:hover::before {
    opacity: 0;
    transition: opacity 0.3s;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.data-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    font:
        500 16px / 110% "Inter",
        sans-serif;
    letter-spacing: -0.02em;
    color: #fff;
    padding: 16px;
    text-align: left;
}

.item:hover {
}

.items-first,
.items-second {
    padding-left: 40px;
    padding-right: 40px;
}

.items-first .item-1 {
    grid-area: item1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 24px;
}

.items-first .item-2 {
    grid-area: item2;
    background: #ff6b6b;
}

.items-first .item-3 {
    grid-area: item3;
    background: #4ecdc4;
}

.items-first .item-4 {
    grid-area: item4;
    background: #ffe66d;
}

.items-first .item-5 {
    grid-area: item5;
    background: #1a535c;
}

.items-first .item-6 {
    grid-area: item6;
    background: #ff9a9e;
}

.items-first .item-7 {
    grid-area: item7;
    background: #a1c4fd;
}

.items-first .item-8 {
    grid-area: item8;
    background: #fbc2eb;
}

.items-first .item-9 {
    grid-area: item9;
    background: #fbc2eb;
}

.items-first .item-10 {
    grid-area: item10;
    background: #fbc2eb;
}

.items-second .item-1 {
    grid-area: item1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 24px;
}

.items-second .item-2 {
    grid-area: item2;
    background: #ff6b6b;
}

.items-second .item-3 {
    grid-area: item3;
    background: #4ecdc4;
}

.items-second .item-4 {
    grid-area: item4;
    background: #ffe66d;
    color: #333;
}

.items-second .item-5 {
    grid-area: item5;
    background: #1a535c;
}

.items-second .item-6 {
    grid-area: item6;
    background: #ff9a9e;
}

.items-second .item-7 {
    grid-area: item7;
    background: #a1c4fd;
}

.items-second .item-8 {
    grid-area: item8;
    background: #fbc2eb;
}

.items-second .item-9 {
    grid-area: item9;
    background: #fbc2eb;
}

.items-second .item-10 {
    grid-area: item10;
    background: #fbc2eb;
}

/* .items-first {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    height: 720px;
    margin-bottom: 40px;
    grid-template-areas:
        "item1 item1 item4 item6 item9"
        "item1 item1 item4 item6 item9"
        "item1 item1 item4 item7 item9"
        "item1 item1 item5 item7 item10"
        "item2 item3 item5 item8 item10"
        "item2 item3 item5 item8 item10";
}

.items-second {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    height: 720px;

    grid-template-areas:
        "item6 item4 item1 item1"
        "item6 item4 item1 item1"
        "item7 item4 item1 item1"
        "item7 item5 item1 item1"
        "item8 item5 item2 item3"
        "item8 item5 item2 item3";
} */

.items-first {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    height: 820px;
    /* margin-bottom: 40px; */
    padding-top: 4px;
    padding-bottom: 4px;

    grid-template-areas:
        "item1 item1 item4 item6"
        "item1 item1 item4 item6"
        "item1 item1 item4 item7"
        "item1 item1 item5 item7"
        "item2 item3 item5 item8"
        "item2 item3 item5 item8";
}

/* ============================================
           ВТОРОЙ БЛОК — ЗЕРКАЛЬНЫЙ (grid-template-areas)
           ============================================ */
.items-second {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    height: 820px;
    padding-top: 4px;
    padding-bottom: 4px;

    /* Зеркальный макет */
    grid-template-areas:
        "item6 item4 item1 item1"
        "item6 item4 item1 item1"
        "item7 item4 item1 item1"
        "item7 item5 item1 item1"
        "item8 item5 item2 item3"
        "item8 item5 item2 item3";
}

/* ============================================
           БАННЕР НА ВСЮ ШИРИНУ ЭКРАНА
           ============================================ */
.banner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    color: black;
    padding: 60px 40px;
    text-align: left;
    /* margin-bottom: 40px; */
}

.banner__content {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 17px;

    margin-right: auto;
}

.banner__title {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner__text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;

    font:
        500 28px / 104% "Inter",
        sans-serif;
    letter-spacing: -0.05em;
    color: #000;
}

.banner__button {
    background: linear-gradient(
        143.56deg,
        #0d2a6b 13.57%,
        #019898 70.06%,
        #1e4268 89.74%
    );
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    width: 237px;
    height: 78px;
    font:
        400 20px / 110% "Inter",
        sans-serif;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 36px;
    display: none;
}

.more--active {
    display: flex;
}

.more {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    border-radius: 2px;
    padding-block: 0;
    padding-inline: 32px;
    width: 225px;
    height: 56px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    background: none;

    font:
        400 16px / 110% "Inter",
        sans-serif;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000;

    cursor: pointer;
}

.more-hidden {
    display: none;
}

.more-text {
    font:
        500 28px / 104% "Inter",
        sans-serif;
    letter-spacing: -0.05em;
    color: #000;
}

.invite_footer {
    background: linear-gradient(
        143.56deg,
        #0d2a6b 13.57%,
        #019898 70.06%,
        #1e4268 89.74%
    );
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    width: 237px;
    height: 78px;
    font:
        400 20px / 110% "Inter",
        sans-serif;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

/* ============================================
           АДАПТИВНОСТЬ
           ============================================ */
@media (max-width: 960px) {
    .header {
        padding: 32px;
    }

    .header-logo {
        order: 1;
        width: 180px;
    }

    .header-title {
        font:
            500 64px / 110% "Inter",
            sans-serif;
        letter-spacing: -0.04em;
        margin-right: auto;
        margin-left: 0;
    }

    .header-title {
        padding-top: 32px;
        order: 3;
    }

    .header-buttons {
        order: 2;
    }

    .header-invite {
        padding-left: 16px;
        padding-right: 16px;
    }

    .itogi {
        font:
            400 16px / 110% "Inter",
            sans-serif;
        letter-spacing: -0.02em;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #000;
        width: fit-content;
        padding-left: 16px;
        padding-right: 16px;
    }

    .about-wrap {
        padding-top: 32px;
    }

    .about {
        width: 100%;
    }

    .about p {
        font:
            500 28px / 104% "Inter",
            sans-serif;
        letter-spacing: -0.05em;
        color: #000;
    }

    .items-first,
    .items-second {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(12, 1fr);
        height: 100%;

        gap: 8px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .item-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .items-first {
        grid-template-areas:
            "item1 item5"
            "item1 item5"
            "item1 item5"
            "item1 item5"
            "item1 item5"
            "item1 item6"
            "item2 item6"
            "item2 item6"
            "item2 item6"
            "item3 item7"
            "item3 item7"
            "item3 item7"
            "item4 item8"
            "item4 item8"
            "item4 item8";
    }

    .items-second {
        grid-template-areas:
            "item5 item1"
            "item5 item1"
            "item5 item1"
            "item5 item1"
            "item5 item1"
            "item6 item1"
            "item6 item2"
            "item6 item2"
            "item6 item2"
            "item7 item3"
            "item7 item3"
            "item7 item3"
            "item8 item4"
            "item8 item4"
            "item8 item4";
    }

    .items-first .item,
    .items-second .item {
        min-height: 120px;
    }

    .item:hover {
    }

    .banner__title {
        font-size: 28px;
    }

    .banner__text {
        font-size: 16px;
        margin-bottom: 0;
    }

    .banner__button {
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-title {
        font:
            500 56px / 110% "Inter",
            sans-serif;
        letter-spacing: -0.04em;
    }

    .header-logo {
        /* width: 120px; */
    }

    .itogi {
        order: 2;
        font:
            400 16px / 110% "Inter",
            sans-serif;
        letter-spacing: -0.02em;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #000;
        width: fit-content;
        padding-left: 16px;
        padding-right: 16px;
    }

    .items-first,
    .items-second {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 4fr 2fr 3fr 3fr 3fr 5fr 5fr 5fr;
        gap: 10px;
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 0;

        grid-template-areas:
            "item1"
            "item2"
            "item3"
            "item4"
            "item5"
            "item6"
            "item7"
            "item8";
    }

    .item-short {
        grid-template-rows: auto;
    }

    .about-wrap {
        padding-top: 32px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .about {
        width: 100%;
    }

    .about p {
        font:
            500 28px / 104% "Inter",
            sans-serif;
        letter-spacing: -0.05em;
        color: #000;
    }

    .data-wrap {
        font:
            500 16px / 110% "Inter",
            sans-serif;
        letter-spacing: -0.02em;
        color: #fff;
    }

    .banner {
        padding-left: 20px;
        padding-right: 2dvb;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .banner__content {
        flex-direction: column;
        gap: 32px;
    }

    .banner__text {
        font:
            500 28px / 104% "Inter",
            sans-serif;
        letter-spacing: -0.05em;
        margin-bottom: 0;
    }

    .banner__button {
        font:
            400 20px / 110% "Inter",
            sans-serif;
        letter-spacing: -0.02em;
        text-transform: uppercase;
        color: #fff;
        border-radius: 2px;
        padding-block: 28px;
        padding-inline: 52px;
        width: 237px;
        height: 78px;
        margin-right: auto;
    }
}

@media (max-width: 560px) {
    .itogi {
        order: 2;
        font:
            400 12px / 110% "Inter",
            sans-serif;
        letter-spacing: -0.02em;
        text-transform: uppercase;
        white-space: nowrap;
        font-size: 12px !important;
        width: min-content;
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-logo {
        width: 35%;
    }

    .item-short {
        grid-template-rows: auto;
    }
}

.hidden {
    display: none !important;
}

.cards-7 {
    grid-template-areas:
        "item1 item1 item4 item6"
        "item1 item1 item4 item6"
        "item1 item1 item7 item7"
        "item1 item1 item7 item7"
        "item2 item3 item5 item5"
        "item2 item3 item5 item5";
}

.cards-6 {
    grid-template-areas:
        "item1 item1 item2 item2"
        "item1 item1 item2 item2"
        "item3 item3 item4 item4"
        "item3 item3 item4 item4"
        "item5 item5 item6 item6"
        "item5 item5 item6 item6";
}

.cards-5 {
    grid-template-areas:
        "item1 item1 item3 item3"
        "item1 item1 item3 item3"
        "item1 item1 item4 item4"
        "item2 item2 item4 item4"
        "item2 item2 item5 item5"
        "item2 item2 item5 item5";
}

.cards-4 {
    grid-template-areas:
        "item1 item1 item3 item3"
        "item1 item1 item3 item3"
        "item1 item1 item4 item4"
        "item2 item2 item4 item4"
        "item2 item2 item4 item4"
        "item2 item2 item4 item4";
}
