/* Constants */

:root {
    --primary-text: rgba(42, 49, 53, 0.95);
    --primary-grey: rgba(134, 140, 144, 0.95);
    --secondary-grey: rgba(220, 224, 226, 0.95);
    --active-purple: rgba(255, 82, 82, 0.95);
    --active-purple-old: rgba(112, 111, 211, 1);
}

/* System */

html {
    overflow: hidden;
}

a {
    text-decoration: none;
}

.container {
    position: absolute;
    width: 1304px;

    top: calc(50% - 720px / 2);
    left: calc(50% - 1304px / 2);

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    padding: 0px;
    gap: 120px;
}

.color_active {
    color: var(--active-purple);
}

/* Groups */

.group_info {
    position: relative;

    width: 400px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0px;
    gap: 32px;
}

.group_images {
    position: relative;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

/* Groups / Info - Profile */

.info-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 16px;
}

.profile-name {
    width: 368px;
    height: 152px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0px;
    gap: 24px;
}

.profile-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;

    width: 320px;
    height: 80px;
}

.profile-desc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0px;
    gap: 12px;
}

.points-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 4px;
}

.subpoint {
    display: flex;
    flex-direction: row;
    padding: 0px;
    gap: 24px;
}

.points-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 16px;
    gap: 12px;
}

/* Groups / Info - Links */

.info-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0px;
    gap: 24px;
}

.resource-link {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    gap: 40px;
}

.resource-link:hover .icon_transparency {
    opacity: 1;
}

.resource-link:hover .resource-button {
    background: rgba(255, 82, 82, 0.08);
    filter: drop-shadow(0px 4px 8px rgba(255, 82, 82, 0.08));
}

.resource-button {
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;

    width: 320px;
    height: 56px;

    transition: all 0.1s ease-in-out !important;

    background: #ffffff;
    border: 1px solid var(--active-purple);
    border-radius: 20px;
}

/* Groups / Info - Contacts */

.info-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 24px;
}

/* Groups / Info - Mobile */

.info-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
}

/* Elements */

.name-layout {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    gap: 24px;
}

.desc-tag {
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 24px;

    background: var(--active-purple);
    border: 1px solid rgba(42, 49, 53, 0.05);
    box-shadow: 0px 4px 12px rgba(255, 82, 82, 0.15);
    border-radius: 8px;
}

.desc-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 24px;
}

.contact-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 24px;
}

.contact-row:hover .text_link {
    text-decoration: underline;
}

.contact-row:hover .text_linksub {
    color: var(--primary-grey);
}

.contact-row:hover .icon_default {
    filter: invert(40%) sepia(66%) saturate(780%) hue-rotate(316deg)
        brightness(103%) contrast(108%);
}

.contact-row:hover .icon_border {
    border: 1px solid rgba(255, 82, 82, 0.95);
    box-shadow: 0px 2px 8px rgba(255, 82, 82, 0.15);
    border-radius: 12px;
}

.contact-icon {
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 48px;

    background: #ffffff;

    transition: all 0.1s ease-in-out !important;
}

.contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    padding: 0px;
}

.header-contacts {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 16px;
}

/* In this case icons recolor don't work
use predefined colored .svg */

.header-contacts .contact-icon:hover .icon_default {
    filter: invert(40%) sepia(66%) saturate(780%) hue-rotate(316deg)
        brightness(103%) contrast(108%);
}

/* Text */

.text_name {
    width: 320px;

    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-size: 28px;
    line-height: 48px;

    display: flex;
    align-items: center;
    font-feature-settings:
        "tnum" on,
        "lnum" on,
        "ss01" on;

    color: var(--primary-text);
}

.text_desc {
    width: 320px;

    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-size: 19px;
    line-height: 28px;

    color: var(--primary-text);
}

.text_subtitle {
    width: 320px;

    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;

    color: var(--primary-text);
}

.text_tag {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-size: 11px;
    line-height: 12px;

    color: rgba(255, 255, 255, 0.9);
}

.text_link {
    width: 320px;

    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-size: 19px;
    line-height: 32px;

    transition: all 0.1s ease-in-out !important;

    color: var(--primary-text);
}

.text_linksub {
    width: 320px;

    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-size: 17px;
    line-height: 24px;

    transition: all 0.1s ease-in-out !important;

    color: var(--secondary-grey);
}

.text_button {
    width: 200px;
    height: 24px;

    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-size: 17px;
    line-height: 24px;

    color: var(--active-purple);
}

.text_subdesc {
    width: 320px;

    font-family: "Inter";
    font-style: medium;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;

    color: var(--primary-grey);
}

/* Images */

.imgcolumn-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 32px;
}

.imgcolumn-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.imgcolumn-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 32px;
}

.img_big {
    width: 320px;
    height: 240px;
}

.img_medium {
    width: 240px;
    height: 180px;
}

.img_small {
    width: 160px;
    height: 120px;
}

.img_effects {
    filter: drop-shadow(0px 4px 20px rgba(42, 49, 53, 0.06));
    border-radius: 4px;

    box-sizing: border-box;

    transition: all 0.2s ease-in-out !important;
}

.img_effects:hover,
.img_effects:active {
    filter: drop-shadow(0px 6px 24px rgba(42, 49, 53, 0.09)) contrast(98%)
        saturate(102%) brightness(100%);

    border-radius: 8px;
    transform: scale(1.025);
}

.img_profile {
    box-sizing: border-box;

    width: 80px;
    height: 80px;

    border: 1px solid rgba(42, 49, 53, 0.05);
    filter: drop-shadow(0px 2px 8px rgba(255, 82, 82, 0.15));
    border-radius: 16px;

    transition: all 0.2s ease-in-out !important;
}

.img_profile:hover,
.img_profile:active {
    filter: drop-shadow(0px 4px 10px rgba(255, 82, 82, 0.25));
}

.img_mobile {
    box-sizing: border-box;
}

/* Icons */

.icon_default {
    width: 24px;
    height: 24px;

    transition: all 0.1s ease-in-out !important;
}

.icon_transparency {
    opacity: 0;
    cursor: default;

    transition: all 0.1s ease-in-out !important;
}

.icon_border {
    border: 1px solid #dce0e2;
    box-shadow: 0px 2px 4px rgba(42, 49, 53, 0.05);
    border-radius: 12px;
}

.gif_mail {
    display: none;
    box-sizing: border-box;

    width: 96px;
    height: 72px;
}

/* Modal layout for mobile devices
(Big: 760px, Default: 360px) */

@media all and (max-width: 1440px) {
    html {
        overflow: visible;
    }

    .group_images,
    .points-layout,
    #ic_arrow_dp,
    #ic_arrow_rs,
    #ic_energy_nm,
    #tg_uiux_ds {
        display: none;
    }

    .info-mobile,
    .gif_mail {
        display: flex;
    }

    .container {
        width: 360px;

        top: 32px;
        left: calc(50% - 360px / 2);
    }

    .icon_transparency {
        opacity: 1;
        cursor: pointer;
    }

    .text_link,
    .text_linksub {
        width: 240px;
    }

    .group_info {
        position: relative;
        width: 360px;

        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
        gap: 32px;
    }

    .info-profile,
    .info-links,
    .profile-name {
        align-items: center;
    }

    .subpoint {
        gap: 8px;
    }

    .text_subdesc {
        width: 288px;
    }

    .icon_border {
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .info-contacts {
        padding: 0px 0 48px;
    }

    .filter_color_primary-grey {
        filter: invert(57%) sepia(15%) saturate(131%) hue-rotate(161deg)
            brightness(94%) contrast(83%);
    }
}
