/* Yii */

main > .container, main > .container-fluid
{
    padding: 45px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

/* Current project */

body, p, div, li, a, td, h1, h2 {
    font-family: 'Source Sans Pro', sans-serif;
    color: #575757;
}

body, p, div, li, a, td {
    font-size: 1.075em;
    letter-spacing: 0.025rem;
    line-height: 1.6;
    font-weight: lighter;
}

.container {
    max-width: 1000px;
}

a {
    text-decoration: underline;
}

h1, h1 a {
    margin: 10px 0 20px 0;
    font-size: 2.5rem;
    font-weight: 500;
}

h2, h2 a {
    margin: 30px 0 15px 0;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
}

.li-colored ::marker {
    color: orange;
}

.disclaimer p {
    font-size: 0.7em;
    letter-spacing: 0.0075rem;
    line-height: 1.2;
    margin: 4px 0 4px 0;
    color: #000000;
}

.copyright {
    margin-top: 10px;
}

@media (max-width: 1080px) {
    body, p, div, li, a, td, h1, h2 {
        color: #121212;
    }

    body, p, div, li, a, td {
        font-size: 1.035em;
        letter-spacing: 0.025rem;
        line-height: 1.5;
        font-weight: lighter;
    }

    h1, h1 a, h2, h2 a, strong {
        color: #373737;
    }

    h1, h1 a {
        font-size: 1.55rem;
        font-weight: bold;
    }

    h2, h2 a {
        font-size: 1.425rem;
        margin: 25px 0 10px 0;
    }

    .site-media li {
        margin-top: 10px;
    }
}

/* pages */

.main-photo-div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.main-photo {
    width: 50%;
    border: solid 1px #cccccc;
    border-radius: 50%;
    transform: rotate(-2deg);
}

.site-contact .logo-img {
    width: 25%;
}

.site-index ul li p {
    margin: 0;
    padding: 0;
}

.site-index ul li {
    margin-bottom: 10px;
}

.media-item {
    display: inline-block;
}

.media-time {
    display: inline-block;
    min-width: 160px;
}

.media-message {
    float: right;
    max-width: 700px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.media-item div {
    font-size: 0.9em;
}

@media (max-width: 960px) {
    .media-time {
        display: block;
    }

    .media-message {
        float: left;
        display: block;
        overflow: auto;
        white-space: normal;
    }
}

.icon-h1 {
    width: 35px;
    position: relative;
    top: -3px;
    margin-right: 5px;
}

.icon-h2 {
    width: 25px;
    position: relative;
    top: -1px;
    margin-right: 5px;
}

.site-telegram-post h2 {
    margin-bottom: 20px;
}

.telegram-post-img {
    max-width: 98%;
    border: none;
    margin-bottom: 15px;
}

.site-telegram-post .post-time {
    font-style: italic;
}

.site-cases img {
    max-width: 100%;
}

.site-contact .main-photo-div {
    margin-bottom: 36px;
}

.contacts-div {
    /*margin: auto;
    width: 50%;
    padding: 30px 0 0 60px;*/
    margin-top: 30px;
}

.site-contact p {
    margin-bottom: 25px;
}

.contact-icon {
    width: 36px;
    position: relative;
    top: -2px;
    margin-right: 5px;
}

.pagination li {
    margin-right: 10px;
}

.pagination li a {
    color: orange;
}

.pagination .active a {
    text-decoration: none;
}

@media (max-width: 1080px) {
    .contact-icon {
        width: 24px;
        position: relative;
        top: 0;
        margin-right: 5px;
    }

    .icon-h1 {
        width: 26px;
        top: 0;
    }

    .pagination li a {
        font-weight: normal;
    }
}

/* Menu */

.menu {
    margin-bottom: 44px;
    padding-bottom: 0;
}

.buttons {
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    padding: 0;
}

.buttons li {
    max-width: 100%;
    text-align: var(--alignment);
    list-style: none;
}

.buttons li a {
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;

    display: inline-block;
    min-width: 6.5rem;
    height: 2.25rem;
    line-height: calc(2.25rem - 2px);
    padding: 0 0.5rem calc(0.225rem + 0.5rem);
    text-transform: uppercase;
    font-family: 'Source Sans Pro', sans-serif;
    letter-spacing: 0.22rem;
    font-size: 0.625em;
    font-weight: 400;
    color: rgba(255, 165, 0, 0.09);

    border: solid 1px orange !important;
    border-radius: 1.625rem;

    direction: var(--site-language-direction);
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.buttons {
    gap: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
}

.buttons:not(:first-child) {
    margin-top: 1.375rem !important;
}

.buttons:not(:last-child) {
    margin-bottom: 1.375rem !important;
}

.buttons .button {
    color: #474747;
    border: solid 1px #535D6C;
}

.buttons li a:hover {
    border-color: #000000 !important;
    color: #000000 !important;
    background: #efefef;
}

.buttons {
    gap: 0.5rem;
}

.buttons:not(:first-child) {
    margin-top: 1.03125rem !important;
}

.buttons:not(:last-child) {
    margin-bottom: 1.03125rem !important;
}

.buttons li a {
    letter-spacing: 0.225rem;
    padding-left: calc(0.225rem + 0.5rem);
    font-size: 0.625em;
}

.lang-buttons {
    display: flex;
    justify-content: flex-end;
    padding-right: 17px;
}

.lang-img {
    width: 20px;
    margin: 0 5px 0 0;
    position: relative; top: -2px;
}

.img-button {
    min-width: 4.25rem !important;
}

@media (max-width: 1080px) {
    .buttons li a {
        height: 1.5rem;
        line-height: calc(1.5rem - 2px);
        padding: -15px 0 5px 0;
        font-size: 0.5em;
        border-width: 2px !important;
    }

    .lang-img {
        position: relative; top: -1px;
    }
}

@media (max-width: 360px) {
    .buttons {
        gap: 0.375rem;
    }
}

/* Scroll to top */

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #555555;
    color: white;
    cursor: pointer;
    padding: 14px 20px 14px 20px;
    border-radius: 30px;
    font-size: 18px;
    opacity: 0.5;
}

#scrollToTopBtn:hover {
    background-color: #333; /* Цвет фона при наведении */
}
