:root {


    --color-black: black;

    --color-orange20: rgba(245, 138, 37, 0.2);
    --color-orange100: #ffb8a0;

    --color-gradient-orange-white: radial-gradient(141.08% 131.09% at 95.31% 6.12%, #ffeac4 0%, #ffeadd 100%);
    --color-gradient-pink-orange: linear-gradient(180deg, #FF42B3 0%, rgb(255, 197, 111, 46%) 100%);
    --color-gradient-pink-transparent-orange: linear-gradient(180deg, #FABCE5 0%, rgb(245, 138, 37, 0%) 100%);

    --text-color: var(--color-black);
    --title-color: var(--color-black);
    --button-color: var(--color-orange100);
    --button-text-color: var(--color-black);
    --big-block-color: var(--color-orange20);
    --background-base-color: var(--color-gradient-orange-white);
    --background-first-circle: var(--color-gradient-pink-orange);
    --background-second-circle: var(--color-gradient-pink-transparent-orange);


    --bg-image: url('../images/Gradient.svg');

    --base-text: 1rem;
    --button-text: 1rem;
    --title-text: 1.25rem;
    --big-title-text: 1.5rem;
    --underline-link: 2.5px;
    --border-radius: 1.25rem;
    --border-height: 0.25rem;

}

/*------ОБНУЛЕНИЕ-----------------*/
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

ul,
ol,
li {
    list-style: none;
}

img {
    vertical-align: top;
}

h6,
h5,
h4,
h3,
h2,
h1 {
    font-weight: inherit;
    font-size: inherit;
}

html {
    font-size: 16px
}

html,
body {
    height: 100%;


    color: var(--text-color);
    font-weight: 400;
    /*line-height: 100%;*/
    background-image: var(--bg-image), var(--background-base-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;

}

/* ------------------------------ */
.wrapper {
    min-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ----------------- */
._container {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 20px;
    box-sizing: content-box;
}

.page {
    flex: 1 1 auto;
    margin: 0 0 60px 0;
}

.big-title {
    font-size: var(--big-title-text);
    color: var(--title-color);
    font-weight: 600;

}

.link {
    color: var(--text-color);
    position: relative;
    text-decoration: none;
    z-index: 1;
    transition: color 0.2s;
    display: inline-block;
}

.link::before {
    content: '';
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: -4px;
    width: 0%;
    height: 104%;
    background-color: var(--button-color);
    opacity: 0.9;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.link:hover::before {
    width: 108%;
}

/* ----------- */

.header {
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: var(--big-block-color);
}

.header__container {
    display: flex;
    /*min-height: 74px;*/
    position: relative;
    align-items: center;
    justify-content: center;
}

.header__big-title {
    margin: 20px 0;
}



/* ----------------- */
.footer {
    background: var(--big-block-color);
}

.footer__container {
    display: flex;
    /*min-height: 74px;*/
    position: relative;
    align-items: center;
    justify-content: center;
}

.footer__big-title {
    margin: 20px 0;
}



/* -------------- */
.main-block {
    position: relative;
    padding: 24px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-bar {
    background: var(--big-block-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: stretch;
    flex-direction: row;
    justify-content: space-between;
    padding: 8px;
    gap: 8px;

}

.filter-functions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
}

[class*="-button"] {
    border-radius: var(--border-radius);
    padding: 12px 16px;

    font-size: var(--button-text);
    color: var(--button-text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
    line-height: 100%;


    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, box-shadow;
}

[class*="-button"]:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4),

        0 10px 20px rgba(0, 0, 0, 0.18);
    cursor: pointer;

}

[class*="-button"]:active {
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4),
        0 5px 10px rgba(0, 0, 0, 0.12);
    filter: brightness(1);
}

.filter-button {
    background: transparent;
    box-shadow: 0 0 0 var(--border-height) var(--filter-color, --button-color) inset;
    box-sizing: border-box;

    span {
        line-height: 100%;
        text-align: center;
    }
}

.filter-button span:empty {
    display: none;
}

.filter-button.active {
    box-shadow: none;
    background-color: var(--filter-color, --button-color);
}

.filter-button:hover {
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.4),
        0 0 0 4px var(--filter-color, --button-color) inset,
        0 10px 20px rgba(0, 0, 0, 0.18);
}

.filter-button:active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4),
        0 0 0 4px var(--filter-color, --button-color) inset,
        0 5px 10px rgba(0, 0, 0, 0.12);
}

.filter-clear-button {
    background: var(--button-color);
}


.filter-icon-badge {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}



.layout-cards {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}


.layout-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    padding: 8px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    will-change: transform;
}


.layout-card:hover {

    transform: translateY(-8px);


    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.2);

    border-color: rgba(255, 255, 255, 0.8);
}

.image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.05);
}

.image-box__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

.image-box__image[src=""] {
    opacity: 0;
    visibility: hidden;
}

.card-information {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 2px;
}

.medium-title {
    color: var(--title-color);
    font-size: var(--title-text);
    font-weight: 500;
    position: relative;
}

.card-text {
    color: var(--title-color);

}



.card-filter-badges {
    position: absolute;
    top: 12px;

    right: 12px;
    width: auto;
    height: auto;

    display: flex;
    gap: 4px;
    z-index: 5;
    pointer-events: none;
}

.card-filter-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--filter-color, --button-color);

    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-badge {
    width: 18px;
    height: 18px;
    object-fit: contain;
    padding: 0;
    display: block;
}

@media (max-width:1024px) {
    html {
        font-size: 14px;
    }

    [class*="-button"] {
        padding: 8px 12px;
    }

    .main-block {
        padding: 12px 0 0 0;
        gap: 8px;
    }

    .filter-functions {
        gap: 6px;
    }

    .layout-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .filter-bar {

        flex-direction: column;


    }

    .filter-clear-button {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 12px;
    }

    [class*="-button"] {
        padding: 6px 10px;
    }

    .filter-bar {
        padding: 6px;
    }

    .layout-cards {
        gap: 4px;
    }

    .layout-card {
        padding: 6px;
    }

    ._container {
        padding: 0 14px;
    }

    .filter-clear-button {
        padding: 10px;
    }
}

@media (max-width:600px) {
    .layout-cards {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 425px) {
    html {
        font-size: 10px;
    }

    [class*="-button"] {
        padding: 4px 8px;
    }

    ._container {
        padding: 0 12px;
    }

    .filter-clear-button {
        padding: 8px;
    }

}
