
.wrap {
    font-family: Templato, sans-serif;
    font-size: 16px;
    font-weight: 300;
    background: #F5F8FB;
    color: #2D2D2D;
}

header {
    position: relative;
    background: #FFF;
    z-index: 9;
}

.header {
    max-width: 75em;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 1em;
    align-items: center;
    gap: 1em;
}

main.content {
    position: relative;
    z-index: 5;
}

main.content.active {
    z-index: -1;
}

main.content.show {
    z-index: 101;
}

.burger {
    grid-row: 1;
    grid-column: 5 / 6;
    align-self: center;
    background: var(--default-color);
    color: #FFF;
    text-align: center;
    padding: .75em 1em;
    border-radius: .2em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .75em;
    cursor: pointer;
    transition: .3s;
}

.burger:hover {
    background: var(--default-color-hover);
}

.header__logo {
    grid-row: 1;
    grid-column: 1;
    width: 3em;
    height: 3em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    box-sizing: border-box;
    border-radius: .2em;
}

.header__logo img {
    max-height: 2.5em;
}

.header__logo a {
    color: #2A2A2A;
}

.header__menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vw;
    z-index: 100500;
}

.header__menu.active {
    display: block;
}

.header__links {
    display: flex;
    justify-content: space-around;
    gap: 1em;
    align-items: center;
    width: 100%;
}

.search {
    position: relative;
    grid-row: 2;
    grid-column: 1 / 6;
    font-size: clamp(0.875em, 1vw, 1em);
}

.search__result {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFF;
    z-index: 99;
    display: none;
    border-radius: 0 0 .4em .4em;
}

.search__result.loading {
    display: flex;
    padding: 1em;
    flex-wrap: wrap;
    gap: 1em;
    box-shadow: var(--medium-shadow);
}

.search__result > span {
    color: rgba(0, 0, 0, .5);
}

.search__result > i {
    display: inline-flex;
    color: var(--default-color);
    animation: spin 1s linear infinite;
    font-size: 1em;
    width: 1.375em;
    height: 1.375em;
    justify-content: center;
    align-items: center;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

button.search__submit {
    box-shadow: none;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: .5em;
    align-items: center;
    width: auto;
    height: auto;
    font-size: clamp(1em, 1vw, 1em);
    background: var(--default-color);
    color: #FFF;
    border-radius: 0 .2em .2em 0;
    border: 0;
    padding: 1.2em 1.6em;
    cursor: pointer;
    transition: .3s;
}

button.search__submit:hover {
    background: var(--default-color-hover);
}

button.search__submit i {
    font-size: clamp(0.875em, 1vw, 1em);
    transform: unset;
}

button.search__submit span {
    display: none;
}

.search__input {
    display: block;
    padding: 1em;
    border-radius: .2em;
    border: 1px solid var(--light-black);
    width: 100%;
    box-sizing: border-box;
}

form.search__form {
    position: relative;
    display: flex;
    gap: 1em;
    z-index: 101;
}

form.search__form label {
    display: none;
}

.short-search, .short-search__list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.short-search__item {
    position: relative;
    display: flex;
    gap: 1em;
    align-items: center;
    border-bottom: 1px solid var(--light-black);
    padding: 0 1em 1em 1em;
}

.short-search__item:last-child {
    border-bottom: 0;
    padding: 0 1em;
}

.short-search__empty {
    background: #F2F5F9;
    padding: .5em;
    border-radius: .5em;
    text-align: center;
}

.short-search__photo {
    width: clamp(4em, 1vw, 4em);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F2F5F9;
    height: 4em;
    border-radius: .4em;
    overflow: hidden;
}

.short-search__photo img {
    width: 100%;
    height: 4em;
    object-fit: cover;
    border-radius: .4em;
}

.short-search__photo i {
    transform: scale(1.25);
    color: var(--light-black);
}

.short-search__caption div {
    font-size: clamp(1.2em, 1vw, 1.2em);
    padding-bottom: .25em;
}

.short-search__caption span {
    display: block;
    font-size: clamp(.875em, 1vw, 1em);
    color: rgba(0, 0, 0, .5);
}

.header__panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1em;
    background: #FFF;
    border-top: 1px solid var(--light-black);
    z-index: 98;
}

span.header__links-name {
    display: none;
}

span.header__links-count {
    transform: translate(.3em, -.7em);
    border-radius: 50%;
    width: .4em;
    height: .4em;
    display: inline-block;
    box-sizing: border-box;
    color: var(--default-color);
}

span.header__links-count.active {
    background: var(--default-color);
}

.short-search__speller {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.short-search__speller-item {
    cursor: pointer;
    transition: .3s;
    color: rgba(0, 0, 0, .6);
}

.short-search__speller-item:hover {
    color: rgba(0, 0, 0, 1);
}

h1.title {
    font-size: clamp(1.7em, 1vw, 1.7em);
}

.header__links-item i {
    color: #2A2A2A;
    font-size: 1.3em;
}

.header__container {
    display: flex;
    background: #FFF;
    position: relative;
    width: 100%;
    min-height: calc(var(--vh, 1vh) * 100);
}

.breadcrumbs {
    max-width: 100%;
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
}

.breadcrumbs i {
    font-size: .5em;
}

.breadcrumbs i:last-child {
    display: none;
}

.breadcrumbs__item a {
    color: #5A5A5A;
    font-size: .875em;
}

.breadcrumbs.expanded {
    max-height: none;
    white-space: normal;
    flex-wrap: wrap;
}

.speed__bar {
    max-width: 75em;
    margin: auto;
    overflow-x: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    padding: .75em;
}

.speed__bar::-webkit-scrollbar {
    height: 2px;
}

.speed__bar::-webkit-scrollbar-track {
    background: #F1F2F6;
}

.speed__bar::-webkit-scrollbar-thumb {
    background-color: #DADDE2;
    border-radius: 2px;
    border: 0;
}

.speed__bar-item {
    width: calc(50% - .5em);
    background: #FFF;
    padding: 1em;
    border-radius: .4em;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .5em;
    border: 1px solid var(--light-black);
    overflow: hidden;
    transition: .3s;
}

.speed__bar-item:hover {
    -webkit-box-shadow: 0 0 8px 0 rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0 0 8px 0 rgba(34, 60, 80, 0.2);
    box-shadow: 0 0 8px 0 rgba(34, 60, 80, 0.2);
}

.speed__bar-photo {
    position: relative;
    transform: translate(1em, 1em);
    width: 100%;
    height: 8em;
}

.speed__bar-photo::before {
    content: '';
    width: 9em;
    height: 8em;
    background: #F2F5F9;
    display: block;
    border-radius: 50%;
    position: absolute;
    transform: translate(2em, 1em);
    transition: transform 0.2s cubic-bezier(0.12, 0, 0.39, 0);
}

.speed__bar-item:hover .speed__bar-photo::before {
    transform: scale(1.05);
}

.speed__bar-photo img {
    position: relative;
    z-index: 5;
    width: 5em;
    height: 5em;
    object-fit: contain;
    transform: translate(2em, 2em);
}

.speed__bar-name {
    color: #2A2A2A;
    font-size: clamp(0.8em, 1vw, 1em);
    position: absolute;
    top: 1em;
    left: 1em;
    text-align: left;
}

a.speed__bar-link {
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
    height: 100%;
}

.speed__buttons {
    padding: 1em;
    display: none;
    justify-content: flex-end;
    gap: 1em;
}

.speed__buttons button {
    border: 0;
    background: var(--default-color);
    color: #FFF;
    cursor: pointer;
    transition: .3s;
    border-radius: .4em;
    padding: .5em .75em;
}

.speed__buttons button:disabled {
    background: var(--light-black);
    color: #2A2A2A;
    cursor: default;
}

.scrollToTop.active {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
}

footer {
    padding: 2em 1em 4.55em 1em;
    background: #FFF;
}

.footer__company {
    color: rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.footer__company-name {
    font-weight: 500;
    color: #2A2A2A;
    padding-bottom: .45em;
}

.footer__company-item {
    font-size: .875em;
}

.footer__company-year {
    color: #2A2A2A;
    font-size: .875em;
}

.hidden {
    display: none !important;
}

/* Скрываем стандартный чекбокс */
.custom-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Стили для метки, которая заменяет чекбокс */
.custom-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

/* Стилизованный квадрат вместо чекбокса */
.custom-label::before {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
    border: 2px solid var(--light-black);
    border-radius: 0.2em;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
    transform: translateY(.4em);
}

/* Состояние активного чекбокса */
.custom-checkbox:checked + .custom-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="white"><path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
}

/* При наведении изменяем цвет */
.custom-label:hover::before {
    border-color: var(--primary-color);
}

.range-slider {
    position: relative;
    width: 100%;
}

.range-slider input[type="range"] {
    position: absolute;
    pointer-events: none;
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 15px;
    height: 15px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.range-slider input[type="range"]:focus {
    outline: none;
}

.empty {
    width: 100%;
    background: var(--light-black);
    text-align: center;
    padding: 2em;
    border-radius: .4em;
}

.form__group {
    padding: 0 0 1em;
}

.form__group label {
    padding-bottom: 1em;
    display: block;
}

.form__button {
    padding: 1em 0;
}

button.form__submit {
    background: var(--default-color);
    color: #FFF;
    border: 0;
    padding: .75em 2em;
    border-radius: .4em;
    cursor: pointer;
    transition: .3s;
}

button.form__submit:hover {
    background: var(--default-color-hover);
}

.pagination {
    width: 100%;
    padding: 1em;
    display: flex;
    justify-content: end;
    gap: .5em;
}

.pagination__item a {
    color: #2A2A2A;
    background: #FFF;
    min-width: 2em;
    text-align: center;
    padding: .5em 0;
    border: 1px solid var(--light-black);
    border-radius: .4em;
    cursor: pointer;
    display: inline-block;
    transition: .3s;
}

.pagination__item a:hover {
    background: #F2F5F9;
}

.pagination__item.active a {
    background: var(--default-color);
    border: 1px solid var(--default-color);
    color: #FFF;
    cursor: default;
}

.footer {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
}

.footer__logo {
    width: 100%;
}

.footer__logo a {
    display: flex;
    gap: 1em;
    align-items: center;
}

.footer__logo img {
    width: 4em;
}

.footer__item {
    width: 100%;
}

.footer__item h3 {
    font-weight: 500;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: .75em;
}

.footer__links a {
    color: var(--default-color);
    transition: .3s;
}

.footer__links a:hover {
    color: var(--default-color-hover);
}

.footer__copy {
    padding: 1em 0;
    font-size: .875em;
}


@media (min-width: 456px) {

    .speed__bar-item {
        width: calc(33.333333% - .75em);
    }
}


@media (min-width: 620px) {

    .footer__item {
        width: calc(50% - 1em);
    }
}

@media (min-width: 768px) {

    .only-mobile {
        display: none !important;
    }

    .header {
        grid-template-columns: repeat(10, 1fr);
    }

    .burger {
        grid-column: 2 / 4;
        padding: .75em;
    }

    .header__links {
        justify-content: flex-end;
        gap: 2em;
    }

    .header__links-item.item--profile {
        font-weight: 500;
    }

    .header__links-item.item--profile span.header__links-name {
        color: #FFF;
        display: block;
        background: var(--additional-color);
        padding: .5em 1em;
        border-radius: 2em;
        transition: .3s;
    }

    .header__links-item.item--profile:hover span.header__links-name {
        background: var(--additional-color-hover);
    }

    .header__links-item.item--profile i {
        display: none;
    }

    .header__panel {
        position: relative;
        grid-column: 6 / 11;
        border: 0;
        display: flex;
        align-items: center;
        padding: .75em 0;
    }

    section.search {
        grid-column: 1 / 11;
    }

    button.search__submit {
        padding: 1.04em 1.6em;
    }

    button.search__submit span {
        display: block;
    }

    .speed__bar {
        flex-wrap: nowrap;
    }

    .speed__bar-item {
        min-width: 9.25em;
        width: auto;
        padding: 3em 1em 1em;
    }

    .speed__bar-photo {
        width: 7em;
        height: 6em;
    }

    .speed__buttons {
        display: flex;
    }

    .speed__bar-photo img {
        transform: translate(1em, .5em);
    }

    .speed__bar-photo::before {
        transform: translate(0, 0);
    }

    footer {
        padding: 4em 1em;
        border-top: 1px solid var(--light-black);
    }

    .footer__logo, .footer__item {
        width: calc(33.333% - 2em);
    }

    .footer__item h3 {
        margin: 0;
        padding-bottom: 1em;
    }
}

@media (min-width: 1024px) {

    .header {
        grid-template-columns: 1fr 8em repeat(10, 1fr);
        padding: 1em .75em;
    }

    .header__logo {
        height: auto;
        width: auto;
        justify-content: flex-start;
        font-size: clamp(0.875em, 1vw, 1em);
    }

    .header__logo i {
        display: inline-flex;
        padding: .75em;
        justify-content: center;
        align-items: center;
        border: 1px solid var(--default-color);
        color: var(--default-color);
        border-radius: .2em;
    }

    .burger {
        grid-row: 1;
        grid-column: 2;
        padding: .75em;
        font-size: clamp(0.875em, 1vw, 1em);
        background: var(--default-color);
        color: #FFF;
        border-radius: 2em;
        transition: .3s;
    }

    .burger:hover {
        background: var(--default-color-hover);
    }

    .burger span {
        display: none;
    }

    section.search {
        grid-row: 1;
        grid-column: 3 / 9;
    }

    .search__input {
        padding: .7em 1.5em;
        border-radius: 2em;
    }

    .search__result {
        top: calc(100% - 1em);
        padding: 2em 1em 1em 1em!important;
    }

    button.search__submit {
        padding: .75em 1.2em;
        border-radius: 2em;
    }

    .header__panel {
        border: 0;
        grid-row: 1;
        grid-column: 9 / 14;
        padding: .75em 0;
    }

    .header__links {
        justify-content: flex-end;
        gap: 1.5em;
        font-size: clamp(0.875em, 1vw, 1em);
        align-items: center;
    }

    .header__links-item i {
        color: var(--default-color);
        font-size: clamp(1em, 1vw, 1em);
    }

    .header__links-item {
        display: inline-flex;
        font-weight: 500;
        gap: .5em;
        cursor: pointer;
        color: var(--default-color);
        transition: color 0.3s ease, transform 0.2s ease;
        align-items: center;
    }

    .header__links-item:hover {
        color: var(--default-color-hover);
    }

    span.header__links-count {
        transform: translate(0, 0);
        color: #FFF;
        background: var(--default-color);
        width: fit-content;
        height: fit-content;
        padding: .25em .75em .1em;
        font-size: .75em;
        border-radius: 1em;
    }

    [data-link="owner"] span {
        display: none;
    }

    .header__menu-cover {
        background: rgba(0, 0, 0, .5);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        transition: .3s;
    }

    .header__menu-cover:hover {
        background: rgba(0, 0, 0, .25);
    }

    [data-link="owner"] span.header__links-name {
        display: none;
    }

}

@media (min-width: 1200px) {

    span.header__links-name {
        display: block;
        color: #2a2a2a;
    }

    .footer__logo, .footer__item {
        width: calc(25% - 2em);
    }
}

@media (min-width: 1275px) {
    .wrap {
        font-size: 18px;
    }

    .speed {
        max-width: 75em;
        margin: auto;
    }

    .header__panel {
        padding: .75em 0;
    }

    .scrollToTop.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .burger span {
        display: block;
    }
}

@media (min-width: 1400px) {
    .speed__bar {
        padding: 1em 0;
    }

    .header {
        padding: .2em 0;
    }
}

@media (min-width: 1800px) {
    .wrap {
        font-size: 22px;
    }
}

@media (min-width: 2200px) {
    .wrap {
        font-size: 26px;
    }
}

@media (min-width: 2800px) {
    .wrap {
        font-size: 28px;
    }
}
