/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: reboot
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */


/* ============================================================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ
   ============================================================ */

:root {
    --revideo-table-scrollbar-color: #222222;
    --revideo-table-scrollbar-track-color: #eeeeee;
}


/* ============================================================
   НАПРАВЛЕНИЯ СЪЕМКИ
   ============================================================ */

.revideo-pages-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 40px 0;
}

.revideo-pages-tiles__item {
    display: block;
    color: inherit;
    text-decoration: none;
}

.revideo-pages-tiles__item:hover {
    color: inherit;
    text-decoration: none;
}

.revideo-pages-tiles__image {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 6.8;
    background: #f2f2f2;
    border-radius: 5px;
}

.revideo-pages-tiles__img,
.revideo-pages-tiles__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.revideo-pages-tiles__img {
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.revideo-pages-tiles__placeholder {
    background: linear-gradient(135deg, #eeeeee, #f7f7f7);
}

.revideo-pages-tiles__title {
    display: block;
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: #222222;
}

.revideo-pages-tiles__item:hover .revideo-pages-tiles__img {
    transform: scale(1.035);
    opacity: .9;
}


/* ============================================================
   МИНИ-КАРУСЕЛЬ КАРТОЧЕК
   ============================================================ */

.revideo-mini-carousel {
    width: 100%;
    max-width: 100%;
    margin: 36px 0 52px;
    overflow: hidden;
}

.revideo-mini-carousel h2 {
    margin-top: 0;
}

.revideo-mini-carousel__track {
    --revideo-carousel-gap: 24px;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: var(--revideo-carousel-gap);
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    padding: 0 0 14px;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

.revideo-mini-carousel__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.revideo-mini-carousel__track.is-dragging * {
    user-select: none;
}

.revideo-mini-carousel__track::-webkit-scrollbar {
    height: 6px;
}

.revideo-mini-carousel__track::-webkit-scrollbar-track {
    background: #eeeeee;
    border-radius: 999px;
}

.revideo-mini-carousel__track::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 999px;
}

.revideo-mini-carousel__card {
    flex: 0 0 calc((100% - (var(--revideo-carousel-gap) * 2)) / 2.5) !important;
    width: calc((100% - (var(--revideo-carousel-gap) * 2)) / 2.5) !important;
    max-width: calc((100% - (var(--revideo-carousel-gap) * 2)) / 2.5) !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    margin: 0 !important;
}

.revideo-mini-carousel__image-link {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f2f2f2;
    border-radius: 8px;
    text-decoration: none;
    -webkit-user-drag: none;
}

.revideo-mini-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
    -webkit-user-drag: none;
}

.revideo-mini-carousel__image-link:hover .revideo-mini-carousel__image {
    transform: scale(1.035);
    opacity: .92;
}

.revideo-mini-carousel__body {
    margin-top: 11px;
}

.revideo-mini-carousel__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: #222222;
}

.revideo-mini-carousel__title a {
    color: inherit;
    text-decoration: none;
}

.revideo-mini-carousel__title a:hover {
    color: #111111;
    text-decoration: underline;
}

.revideo-mini-carousel__body p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #555555;
}

.revideo-mini-carousel__link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    color: #555555;
    text-decoration: none;
}

.revideo-mini-carousel__link:hover {
    color: #111111;
    text-decoration: underline;
}


/* ============================================================
   ГИБКАЯ ТАБЛИЦА
   ============================================================ */

.revideo-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 28px 0 44px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--revideo-table-scrollbar-color) var(--revideo-table-scrollbar-track-color);
}

.revideo-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.revideo-table-wrap::-webkit-scrollbar-track {
    background: var(--revideo-table-scrollbar-track-color);
    border-radius: 999px;
}

.revideo-table-wrap::-webkit-scrollbar-thumb {
    background: var(--revideo-table-scrollbar-color);
    border-radius: 999px;
}

.revideo-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #111111;
}

.revideo-table {
    width: 100%;
    min-width: 760px;
}

.revideo-table__row {
    display: grid;
    align-items: center;
    border-bottom: 1px solid #e4e4e4;
    background-color: transparent;
    color: #222222;
    transition:
        background-color .45s ease,
        color .45s ease,
        border-color .45s ease;
}

.revideo-table__row:not(.revideo-table__row--head):hover {
    background-color: #222222;
    color: #ffffff;
    border-bottom-color: #222222;
}

.revideo-table__row--head {
    font-weight: 700;
}

.revideo-table__row--head:hover {
    background-color: transparent;
    color: #222222;
    border-bottom-color: #e4e4e4;
}

.revideo-table--cols-2 .revideo-table__row {
    grid-template-columns: 65% 35%;
}

.revideo-table--cols-3 .revideo-table__row {
    grid-template-columns: 40% 40% 20%;
}

.revideo-table__cell {
    padding: 20px 10px;
    font-size: 15px;
    line-height: 1.4;
}

.revideo-table__cell:first-child {
    padding-left: 16px;
}

.revideo-table__cell:last-child {
    padding-right: 16px;
}


/* ============================================================
   FAQ АККОРДЕОН
   ============================================================ */

.revideo-faq {
    width: 100%;
    max-width: 100%;
    margin: 28px 0 44px;
}

.revideo-faq__item {
    border-bottom: 1px solid #e4e4e4;
}

.revideo-faq__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.revideo-faq__question {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 20px;
    width: 100%;
    min-height: 58px;
    padding: 17px 48px 17px 16px;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: #222222;
    background-color: transparent;
    cursor: pointer;
    transition:
        background-color .45s ease,
        color .45s ease;
}

.revideo-faq__question span {
    min-width: 0;
}

.revideo-faq__question::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    font-size: 22px;
    line-height: 20px;
    font-weight: 400;
    text-align: center;
    color: currentColor;
    transition:
        transform .45s ease,
        color .45s ease;
}

.revideo-faq__question:hover {
    background-color: #222222;
    color: #ffffff;
}

.revideo-faq__input:checked + .revideo-faq__question {
    background-color: #222222;
    color: #ffffff;
    border-radius: 4px;
}

.revideo-faq__input:checked + .revideo-faq__question::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

.revideo-faq__answer {
    max-height: 0;
    overflow: hidden;
    color: #555555;
    background-color: #ffffff;
    opacity: 0;
    transition:
        max-height .55s ease,
        opacity .45s ease;
}

.revideo-faq__answer-inner {
    padding: 0 16px;
    font-size: 15px;
    line-height: 1.55;
    transition: padding .45s ease;
}

.revideo-faq__answer-inner p {
    margin: 0 0 10px;
}

.revideo-faq__answer-inner p:last-child {
    margin-bottom: 0;
}

.revideo-faq__input:checked ~ .revideo-faq__answer {
    max-height: 420px;
    opacity: 1;
}

.revideo-faq__input:checked ~ .revideo-faq__answer .revideo-faq__answer-inner {
    padding: 16px 16px 20px;
}


/* ============================================================
   404 PAGE
   ============================================================ */

.revideo-404-page {
    width: 100%;
}

.revideo-404-page__main {
    width: 100%;
}

.revideo-404-hero,
.revideo-404-directions {
    width: 100%;
}

.revideo-404-hero__inner,
.revideo-404-directions__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.revideo-404-hero {
    padding: 0 0 34px;
}

.revideo-404-hero__banner {
    overflow: hidden;
    width: 100%;
    border-radius: 6px;
    background: #f2f2f2;
}

.revideo-404-hero__banner-img {
    display: block;
    width: 100%;
    height: auto;
}

.revideo-404-hero__title {
    margin: 16px 0 0;
    color: #111111;
    font-size: clamp(18px, 2.2vw, 30px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.revideo-404-directions {
    padding: 18px 0 70px;
}

.revideo-404-directions h2 {
    margin: 0 0 22px;
}

.revideo-404-directions h3 {
    margin: 42px 0 18px;
}

.revideo-404-directions p {
    max-width: 920px;
}


/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1100px) {
    .revideo-pages-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .entry-image--full .entry-image__body,
    .entry-image--fullscreen .entry-image__body,
    .entry-image--wide .entry-image__body {
        padding: 320px 20px 10px !important;
    }

    .revideo-pages-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .revideo-pages-tiles__title {
        font-size: 14px;
    }

    .revideo-mini-carousel {
        margin: 30px 0 44px;
    }

    .revideo-mini-carousel__track {
        --revideo-carousel-gap: 16px;
        padding-bottom: 12px;
    }

    .revideo-mini-carousel__card {
        flex: 0 0 calc((100% - var(--revideo-carousel-gap)) / 1.5) !important;
        width: calc((100% - var(--revideo-carousel-gap)) / 1.5) !important;
        max-width: calc((100% - var(--revideo-carousel-gap)) / 1.5) !important;
    }

    .revideo-mini-carousel__title {
        font-size: 14px;
    }

    .revideo-mini-carousel__body p {
        font-size: 13px;
    }

    .revideo-mini-carousel__link {
        font-size: 12px;
    }

    .revideo-table {
        min-width: 760px;
    }

    .revideo-table--cols-2 .revideo-table__row {
        grid-template-columns: 55% 45%;
    }

    .revideo-table--cols-3 .revideo-table__row {
        grid-template-columns: 30% 50% 20%;
    }

    .revideo-404-hero__inner,
    .revideo-404-directions__inner {
        width: min(100% - 28px, 1180px);
    }

    .revideo-404-hero {
        padding: 34px 0 26px;
    }

    .revideo-404-hero__banner {
        border-radius: 4px;
    }

    .revideo-404-hero__title {
        margin-top: 14px;
        font-size: 18px;
        line-height: 1.25;
    }

    .revideo-404-directions {
        padding: 12px 0 52px;
    }

    .revideo-404-directions h3 {
        margin: 34px 0 16px;
    }
}

@media (max-width: 520px) {
    .revideo-pages-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
        margin: 32px 0;
    }

    .revideo-pages-tiles__image {
        aspect-ratio: 16 / 8.5;
        border-radius: 4px;
    }

    .revideo-pages-tiles__title {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 700;
    }

    .revideo-mini-carousel__track {
        --revideo-carousel-gap: 12px;
    }

    .revideo-mini-carousel__card {
        flex: 0 0 calc((100% - var(--revideo-carousel-gap)) / 1.45) !important;
        width: calc((100% - var(--revideo-carousel-gap)) / 1.45) !important;
        max-width: calc((100% - var(--revideo-carousel-gap)) / 1.45) !important;
    }

    .revideo-mini-carousel__image-link {
        border-radius: 6px;
    }

    .revideo-mini-carousel__title {
        font-size: 13px;
    }

    .revideo-mini-carousel__body p {
        font-size: 12.5px;
    }

    .revideo-table-wrap {
        padding-bottom: 6px;
    }

    .revideo-table {
        min-width: 760px;
    }

    .revideo-table__cell {
        font-size: 14px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .revideo-faq__question {
        min-height: 54px;
        padding: 15px 44px 15px 14px;
        font-size: 14px;
    }

    .revideo-faq__question::after {
        right: 14px;
        font-size: 20px;
    }

    .revideo-faq__answer-inner {
        font-size: 14px;
    }

    .revideo-faq__input:checked ~ .revideo-faq__answer .revideo-faq__answer-inner {
        padding: 14px 14px 18px;
    }

    .revideo-404-hero__title {
        font-size: 16px;
        line-height: 1.3;
    }
}

@media (max-width: 380px) {
    .revideo-pages-tiles {
        gap: 18px 10px;
    }

    .revideo-pages-tiles__title {
        font-size: 11.5px;
    }
}