/* =========================================================
   Saitebi.Net Category
========================================================= */


* {
    box-sizing: border-box;
}

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

body {
    background: #2e2e2e;
    font-family: Arial, Sylfaen, "DejaVu Sans", sans-serif;
    font-size: 13px;
    -webkit-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}


/* =========================
   LINKS
========================= */

a {
    text-decoration: none;
}


/* =========================================================
   TOP MENU
========================================================= */

.top-menu {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 40px;

    background: #a0522d;

    z-index: 1000;
}


/* =========================================================
   TOP MENU INNER
========================================================= */

.top-menu-inner {
    width: 940px;
    height: 40px;

    margin: 0 auto;

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


/* =========================================================
   TOP MENU LINKS
========================================================= */

.top-link {
    position: relative;

    display: flex;

    height: 40px;

    padding: 0 18px;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-family: Arial, Sylfaen, "DejaVu Sans", sans-serif;

    font-size: 15px;

    font-weight: bold;

    border-left: 3px dotted #2d2d2d;

    text-shadow: none;

    white-space: nowrap;

    transition: background-color .15s ease;
}

.top-link:last-child {
    border-right: 3px dotted #2d2d2d;
}

.top-link:hover {
    color: #ffffff;
    background: #cd853f;
}

.top-link img {
    margin-left: 5px;
}

/* =========================================================
   CATEGORY
========================================================= */

.categories {
    position: relative;
    cursor: default;
}


/* =========================================================
   CATEGORY TITLE
========================================================= */

.categories > span {
    display: flex;

    height: 40px;

    padding: 0 18px;

    align-items: center;

    color: #ffffff;

    font-family: Arial, Sylfaen, "DejaVu Sans", sans-serif;

    font-size: 15px;

    font-weight: bold;

    white-space: nowrap;

    text-shadow: none;
}


/* =========================================================
   CATEGORY DROPDOWN BOX
========================================================= */

.categories-dropdown {
    position: absolute;

    top: 40px;
    left: 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    width: 500px;

    padding: 10px;

    background: #faf0e6;

    border: 6px solid #a0522d;

    box-shadow: 0 7px 18px rgba(0, 0, 0, .35);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-5px);

    transition:
        opacity .15s ease,
        visibility .15s ease,
        transform .15s ease;

    z-index: 1100;
}


/* =========================================================
   CATEGORY HOVER
========================================================= */

.categories:hover .categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================================================
   CATEGORY LINKS
========================================================= */

.categories-dropdown a {
    display: block;

    padding: 5px 8px;

    color: #4f7184;

    font-family: Arial, Sylfaen, "DejaVu Sans", sans-serif;

    font-size: 15px;

    font-weight: normal;

    line-height: 20px;

    text-shadow: none;

    -webkit-font-smoothing: auto;

    text-rendering: optimizeLegibility;
}

.categories-dropdown a:hover {
    color: #ffffff;
    background: #66899b;
    text-shadow: none;
}


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

.header {
    width: 940px;

    height: 157px;

    margin: 0 auto;

    padding-top: 40px;

    background: #2e2e2e;
}


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

.header-inner {
    position: relative;

    width: 940px;

    height: 117px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    position: absolute;

    top: 5px;
    left: 0;

    width: 115px;
    height: 110px;
}

.logo a {
    position: relative;

    display: block;

    width: 115px;
    height: 110px;
}

.logo > a > img:first-child {
    display: block;

    width: 115px;
    height: 110px;
}


/* =========================================================
   LOGO HOVER
========================================================= */

.logo-hover {
    position: absolute;

    top: 0;
    left: 0;

    width: 115px;
    height: 110px;

    opacity: 0;

    transition: opacity .15s ease;
}

.logo a:hover .logo-hover {
    opacity: 1;
}


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

.header-ad {
    position: absolute;

    top: 5px;
    right: 0;

    width: 750px;
    height: 100px;
}

.header-ad img {
    display: block;

    width: 750px;
    height: 100px;

    border: 0;
}


/* =========================================================
   MAIN
========================================================= */

.main {
    width: 940px;

    min-height: 500px;

    margin: 0 auto;

    background: #a4a4a4;
}


/* =========================================================
   MAIN LINE
========================================================= */

.main-line {
    width: 940px;

    height: 6px;

    background: #808080;
}


/* =========================================================
   FILMS AREA
========================================================= */

.films {
    width: 888px;

    margin: 0 auto;

    padding: 18px 0 40px;
}


/* =========================================================
   FILMS TITLE
========================================================= */

.films-title {
    margin-bottom: 24px;

    text-align: center;
}

.films-title h1 {
    margin: 0;

    color: #000080;

    font-size: 21px;

    font-weight: bold;

    line-height: 28px;
}

.title-decoration {
    width: 70px;

    height: 3px;

    margin: 7px auto 8px;

    background: #a0522d;
}

.films-title p {
    margin: 0;

    color: #222222;

    font-size: 16px;

    font-weight: normal;

    line-height: 20px;

    text-rendering: optimizeLegibility;
}


/* =========================================================
   FILM GRID
========================================================= */

.films-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 20px 12px;

    width: 100%;
}


/* =========================================================
   FILM CARD
========================================================= */

.film-card {
    display: flex;

    width: 100%;
    height: 100px;

    padding: 8px;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #b5b5b5;

    border: 1px solid #888888;

    border-radius: 2px;

    box-shadow: 0 1px 2px rgba(0, 0, 0, .18);

    transition:
        transform .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.film-card:hover {
    transform: translateY(-3px);

    background: #c2c2c2;

    box-shadow: 0 5px 12px rgba(0, 0, 0, .28);
}


/* =========================================================
   FILM LOGO
========================================================= */

.film-logo {
    width: 145px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: visible;
}

.film-logo img {
    display: block;

    width: 145px;
    height: 55px;

    object-fit: cover;

    border: 3px solid transparent;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.film-card:hover .film-logo img {
    transform: scale(1.07);

    border-color: #ffffff;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}


/* =========================================================
   DOMAIN
========================================================= */

.film-domain {
    margin-top: 7px;

    color: #000000;

    font-size: 13px;

    line-height: 17px;

    text-align: center;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 940px;

    height: 90px;

    margin: 0 auto;

    padding-top: 28px;

    background: #524c4c;

    color: #fffafa;

    text-align: center;
}

.footer p {
    margin: 0;
    padding: 0;

    font-size: 13px;

    line-height: 20px;
}


/* =========================================================
   MOBILE / TABLET RESPONSIVE
========================================================= */

@media screen and (max-width: 950px) {

    html,
    body {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    body {
        min-width: 0;
    }


    /* =========================
       TOP MENU
    ========================= */

    .top-menu {
        position: fixed;

        top: 0;
        left: 0;

        width: 100%;

        min-width: 0;

        height: auto;

        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;

        /* მობილურზე scroll ზოლის დამალვა */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* Chrome / Safari / Android / iPhone */
    .top-menu::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .top-menu-inner {
        width: max-content;

        min-width: 100%;

        height: 40px;

        margin: 0;

        justify-content: flex-start;
    }

    .top-link {
        flex: 0 0 auto;

        padding: 0 12px;

        font-size: 14px;
    }

    .categories > span {
        padding: 0 12px;

        font-size: 14px;
    }


    /* =========================
       DROPDOWN
    ========================= */

    .categories-dropdown {
        position: fixed;

        top: 40px;

        left: 10px;

        width: calc(100vw - 20px);

        max-width: 500px;

        max-height: calc(100vh - 50px);

        overflow-y: auto;

        grid-template-columns: 1fr 1fr;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories-dropdown::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .categories-dropdown a {
        font-size: 14px;

        line-height: 19px;
    }


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

    .header {
        width: 100%;

        height: auto;

        min-height: 0;

        margin: 0;

        padding-top: 50px;

        padding-bottom: 0;

        overflow: hidden;
    }

    .header-inner {
        position: relative;

        width: 100%;

        height: auto;

        min-height: 0;

        display: flex;

        align-items: flex-start;
    }


    /* =====================================================
       MOBILE LOGO
    ===================================================== */

    .logo {
        position: relative;

        top: 0;
        left: 5px;

        flex: 0 0 85px;

        width: 85px;

        height: auto;

        display: block;

        overflow: hidden;
    }

    .logo a {
        position: relative;

        display: block;

        width: 85px;

        height: auto;

        overflow: hidden;
    }

    .logo > a > img:first-child {
        display: block;

        width: 85px;

        height: auto;

        max-height: 100px;

        object-fit: contain;

        object-position: top center;
    }

    .logo-hover {
        position: absolute;

        top: 0;
        left: 0;

        width: 85px;

        height: auto;

        max-height: 100px;

        object-fit: contain;

        object-position: top center;

        opacity: 0;

        transition: opacity .15s ease;
    }


    /* =====================================================
       MOBILE BANNER
===================================================== */

    .header-ad {
        position: relative;

        top: 0;
        right: auto;

        margin-left: 8px;

        flex: 1 1 auto;

        width: auto;

        height: auto;

        display: block;

        overflow: hidden;
    }

    .header-ad img {
        display: block;

        width: 100%;

        height: auto;

        object-fit: contain;

        object-position: left top;

        border: 0;
    }


    /* =====================================================
       MAIN
===================================================== */

    .main {
        width: 100%;

        min-height: 500px;

        margin: 0;
    }

    .main-line {
        width: 100%;
    }


    /* =====================================================
       FILMS
===================================================== */

    .films {
        width: calc(100% - 24px);

        margin: 0 auto;

        padding: 18px 0 35px;
    }


    /* =========================
       FILM TITLE
    ========================= */

    .films-title {
        margin-bottom: 20px;
    }

    .films-title h1 {
        font-size: 21px;

        line-height: 28px;
    }

    .films-title p {
        font-size: 14px;

        line-height: 21px;
    }


    /* =========================
       FILM GRID
    ========================= */

    .films-grid {
        width: 100%;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    /* =========================
       FILM CARD
    ========================= */

    .film-card {
        width: 100%;

        height: 100px;

        padding: 6px;
    }

    .film-logo {
        width: 100%;

        height: 55px;
    }

    .film-logo img {
        width: 100%;

        max-width: 145px;

        height: 55px;
    }

    .film-domain {
        font-size: 12px;

        line-height: 16px;
    }


    /* =========================
       FOOTER
    ========================= */

    .footer {
        width: 100%;

        height: 80px;

        padding: 25px 12px 0;
    }

    .footer p {
        font-size: 12px;

        line-height: 18px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media screen and (max-width: 420px) {

    .top-link {
        padding: 0 10px;

        font-size: 13px;
    }

    .categories > span {
        padding: 0 10px;

        font-size: 13px;
    }


    /* =====================================================
       SMALL PHONE HEADER
===================================================== */

    .header {
        min-height: 0;

        padding-top: 48px;

        padding-bottom: 0;
    }

    .header-inner {
        width: 100%;

        height: auto;

        min-height: 0;

        display: flex;

        align-items: flex-start;
    }


    /* =====================================================
       SMALL PHONE LOGO
===================================================== */

    .logo {
        position: relative;

        top: 0;
        left: 3px;

        flex: 0 0 62px;

        width: 62px;

        height: auto;

        overflow: hidden;
    }

    .logo a {
        width: 62px;

        height: auto;

        overflow: hidden;
    }

    .logo > a > img:first-child {
        display: block;

        width: 62px;

        height: auto;

        max-height: 72px;

        object-fit: contain;

        object-position: top center;
    }

    .logo-hover {
        position: absolute;

        top: 0;
        left: 0;

        width: 62px;

        height: auto;

        max-height: 72px;

        object-fit: contain;

        object-position: top center;

        opacity: 0;
    }


    /* =====================================================
       SMALL PHONE BANNER
===================================================== */

    .header-ad {
        position: relative;

        top: 0;
        right: auto;

        margin-left: 6px;

        flex: 1 1 auto;

        width: auto;

        height: auto;

        overflow: hidden;
    }

    .header-ad img {
        display: block;

        width: 100%;

        height: auto;

        object-fit: contain;

        object-position: left top;
    }


    /* =========================
       FILMS
    ========================= */

    .films {
        width: calc(100% - 16px);
    }

    .films-title p {
        font-size: 13px;

        line-height: 19px;
    }

    .films-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .film-card {
        height: 95px;
    }

    .film-domain {
        font-size: 11px;
    }
}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media screen and (min-width: 1400px) {

    .header,
    .header-inner,
    .main,
    .footer {
        width: 940px;
    }
}
