@font-face {
    font-family: 'Khamenei_ir';
    src: url('../fonts/KhameneiirWeb.eot');
    src: url('../fonts/KhameneiirWeb.eot?#iefix') format('embedded-opentype'),
    url('../fonts/KhameneiirWeb.woff2') format('woff2'),
    url('../fonts/KhameneiirWeb.woff') format('woff'),
    url('../fonts/KhameneiirWeb.ttf') format('truetype'),
    url('../fonts/KhameneiirWeb.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}
:root {
    --black: #000000;
    --red: #e6192e;
    --green: #00a651;
    --white: #ffffff;
    --gray: #b8b8b8;
    --max-width: 1200px;
}
*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
}

body {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    direction: rtl;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem 2.5rem;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    z-index: 10;
}

.close-btn:hover {
    opacity: 1;
}

.hero {
    width: 100%;
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    align-items: center;
    flex: 1;
    margin-top: 2rem;
}

.hero__art {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__art-img {
    width: min(100%, 420px);
    transform: scale(1.4);
    object-fit: contain;
}

.hero__art-caption {
    margin-top: 1rem;
    color: var(--green);
    font-size: clamp(0.85rem, 2vw, 1rem);
    max-width: 28rem;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero__intro {
    font-family: Khamenei_ir, sans-serif;
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    text-align: justify;
    color: var(--white);
    line-height: 2;
}

.hero__intro_sub {
    font-size: 12px; color:#ccc;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}


.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width:25%;
    transition: transform 0.2s ease;
    margin-bottom:36px;
}

.category:hover {
    transform: translateY(-3px);
}
.category:hover .category__btn {
    background-color:#ec1b2e;
}

.category__icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--white);
    display: grid;
    place-items: center;

}

.category__icon svg {
    width: 100%;
    height: 100%;
}

.category__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.5rem;
    min-height: 48px/*2.5rem*/;
    padding: 0 1.25rem 0.45rem;
    color: #fff;
    background-color: #008848;
    -webkit-mask-image: url("../images/button.svg");
    mask-image: url("../images/button.svg");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    font-family: Khamenei_ir, sans-serif;
    font-size: 14px;
    white-space: nowrap;
}

.footer {
    width: 100%;
    max-width: var(--max-width);
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer__top-logo {
    width: 4rem;
    height: auto;
}

.footer__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    /*gap: clamp(2rem, 6vw, 5rem);*/
    flex-wrap: wrap;
}

.footer__logo {
    height: 2.5rem;
    width: auto;
    opacity: 0.9;
    margin:0 8px;
    filter: brightness(0) invert(1);
}


.footer__main-logo {
    height: 2rem !important;
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero__intro {
        text-align: center;
    }

    .category {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: 7rem;
    }

    .category:nth-child(5),
    .category:nth-child(6),
    .category:nth-child(7) {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .page {
        padding: 1.5rem 1rem 2rem;
    }

    .hero {
        margin-top: 1.5rem;
    }

    .hero__art-img {
        width: min(100%, 280px);
        transform: scale(1);
    }

    .categories {
        gap: 1.25rem 0.75rem;
    }
    .category {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: 6.5rem;
    }

    .category__icon {
        width: 2rem;
        height: 2rem;
    }

    .footer__logos img {
        height: 2rem;
    }
}

@media (max-width: 380px) {
    .categories {
        grid-template-columns: 1fr 1fr;
    }
}