﻿/*
body определен в media-queries
*/

/* Layout */
article aside {
    border: 0.1rem double #5b7a86;
    padding: 0.8rem;
}

.price-block-parent {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 1rem;
}

.price-items {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    white-space: nowrap;
    gap: 10px;
}

.price-items aside {
    margin-top: 0.1em;
    flex-basis: 18em;
}

.price-items h4 {
    font-weight: 700;
}

.download-table-tab-wrapper {
    margin-bottom: 1.25rem;
}

.download-table-tab-wrapper > ul {
    margin-bottom: 1.25rem;
}

.download-table-tab-control {
    font-size: 1.1rem;
    margin: 0.1rem;
    display: flex;
    list-style: none;
    justify-content: center;

    button {
        background-color: #e0e0e0;
        color: #333;
        border: 2px solid #bbb;
        padding: 0.5rem 1rem;
        margin: 0 0.2rem;
        cursor: pointer;
        border-radius: 4px;
        font-size: 1rem;
        transition: all 0.2s ease;

        &:hover {
            background-color: #d0d0d0;
            border-color: #999;
        }
    }

    & button.active {
        background-color: #507eb1;
        color: white;
        border-color: #3d6699;
        font-weight: 500;
    }
}

.download-tab-panel {
    font-size: 1.05rem;
    word-break: break-word;
    display: none;
}

.download-tab-panel.active {
    word-break: break-word;
    display: block;
}

.video {
    padding-top: 2rem;
    width: 80%;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.video > img {
    width: 100%;
    object-fit: contain;
}

iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
}

#smartxml > h4 {
    margin: 0 0 10px 0;
}

.rotated {
    transform: rotate(90deg);
    display: inline-block;
}

/* table of contents should be left alligned  */
.table-of-contents {
    width: 100%;

    display: flex;
    justify-self: start;
    flex-direction: column;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        text-align: left;
    }
}

/* .table-of-contents,
.faq {

} */

p.green {
    margin: 0;
    background-color: rgb(146 199 240 / 80%);
}

p.red {
    margin: 0;
    background-color: rgb(255 0 0 / 50%);
}

p.orange {
    margin: 0;
    background-color: rgb(249 157 157 / 50%);
}

/* Forms */

form {
    border: 1px solid var(--color-bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow) var(--color-shadow);
    text-align: var(--justify-normal);
}

form header {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
}

/* Popups */
/* dialog {
    border: 1px solid var(--color-bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow) var(--color-shadow);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    z-index: 999;
} */

.download-table-container {
    width: 100%;
}

.download-table-container > div {
    max-width: 100%;
    overflow: auto;
}

/* Tables */
table {
    border: 1px solid black;
    border-radius: var(--border-radius);
    border-spacing: 0;
    background: #fff;
    margin: 0 auto;
}

table td,
table th,
table tr {
    border: 1px solid black;
    padding: 0.4rem 0.8rem;
    text-align: var(--justify-important);
}

table thead {
    background-color: var(--color-table);
    border-collapse: collapse;
    border-radius: var(--border-radius);
    color: var(--color-bg);
    margin: 0;
    padding: 0;
}

table thead th:first-child {
    border-top-left-radius: var(--border-radius);
}

table thead th:last-child {
    border-top-right-radius: var(--border-radius);
}

table thead th:first-child,
table tr td:first-child {
    text-align: var(--justify-normal);
}

table tr:nth-child(even) {
    background-color: var(--color-accent);
}

/* Quotes */
blockquote {
    display: block;
    font-size: 1.2rem;
    background-color: #d5ebfd;
    text-align: center;
    margin: 10px 18px;
}

.selectedPeriod {
    font-size: 1.1rem;
    text-decoration: underline;
    text-decoration-color: rgba(147, 18, 18, 0.724);
    text-decoration-thickness: 0.15em;
}

.table-name {
    background-color: #f9ccba;
    color: #1b1b1b;
    padding: 0.2rem;
    border-radius: 4px;
    font-weight: 550;
}

.tag-name {
    /* color: rgb(130, 43, 0); */
    /* font-size: 1rem; */
    border-radius: 4px;
    padding: 0.2rem;
    font-weight: 500;
}

.tag-value {
    color: rgb(43, 230, 43);
    border-radius: 4px;
}

.tag-name-active {
    color: #f4aeae;
    border-radius: 4px;
}

.ui-item {
    font-family: "MonaspaceNeon-Regular";
    white-space: nowrap;
    background-color: #f4ede0;
    /* Мягкий желтый фон f8e3b7 */
    color: #333;
    /* Темный текст для контраста */
    padding: 0.2rem;
    /* Внутренний отступ */
    border: 2px solid #f3dda0;
    /* Светлая рамка */
    border-radius: 4px;
}

.screenshot-list {
    display: flex;
    flex-direction: column;
}

.code-token {
    font-family: "MonaspaceNeon-ExtraLight";
}

.code-inline-snippet {
    font-family: "MonaspaceNeon-ExtraLight";
    font-weight: 600;
    background-color: #ebeaea;
    border: solid #b0e0e6 2px;
    color: #000;
    padding: 0.2rem;
}

.table__wrap {
    max-width: 100%;
    overflow: auto;
    /* margin-bottom: 10px; */
}

hr {
    margin: 20px 0;
}

.price-items {
    .red {
        background-color: #ff7979;
    }

    .blue {
        background-color: #507eb1;
        color: rgb(255, 255, 255);
    }
}

.slogan h2 {
    margin: 0 20px;
}

.about {
    max-width: 1200px;
    margin: 0 auto;
}

.intro {
    display: block;
}

.img_main {
    float: right;
    width: 40%;
    margin-left: 30px;
    margin-bottom: 20px;
}

.img_main img {
    width: 100%;
    height: auto;
    display: block;
}

.about section {
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .intro {
        grid-template-columns: 1fr;
    }

    .img_main {
        max-width: 320px;
        margin: 0 auto;
    }
}
#contacts {
    font-size: 1rem;
}

.bold {
    font-weight: 600;
}

.scroll_bar {
    background: #d8e0ea;
    width: 100%;
}

.scroll_bar ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: space-around;
    margin: 20px 0;
    flex-flow: row wrap;
}

.scroll_bar ul li {
    order: 1 1 130px;
}

.copyright-link,
.copyright-link a {
    color: #283f59;
    font-size: 1em;
    font-weight: 400;
}

.price_block h5 {
    margin-bottom: 10px;
}

.price_block p {
    font-size: 1.1rem;
    padding: 4px 0;
    margin: 0;
}

.simple {
    border: 5px solid #507eb1;
}

.simple h5 {
    color: #000000;
}

.simple p {
    color: #464646;
}

.no_incude {
    text-decoration: line-through;
    opacity: 0.7;
    position: relative;
}

.no_incude sup {
    position: absolute;
    top: -10px;
}

.video-container {
    display: flex;

    justify-content: space-between;
    justify-content: center;
}

.video-carousel {
    margin-bottom: 1rem;
}

.video-carousel-controls {
    padding-bottom: 1rem;
}

.video-carousel-stage {
    position: relative;
    width: 100%;
}

.video-carousel-stage video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.video-carousel-stage video.carousel-active {
    position: relative;
    height: auto;
    opacity: 1;
    pointer-events: auto;
}

.video-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.carousel-arrow {
    background-color: var(--color-btn);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition:
        box-shadow 0.3s ease,
        background-color 0.3s ease;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background-color: #5a84e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.carousel-dot {
    background-color: var(--color-bg-secondary);
    border: none;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    padding: 10px 20px;
    cursor: pointer;
    letter-spacing: 0.05rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition:
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.carousel-dot:hover {
    background-color: #d0d0d0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.carousel-dot.active {
    background-color: #476fc1;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.video-item {
    /* box-sizing: border-box; */
    display: flex;
    flex-direction: column; /* Располагаем элементы вертикально */
    align-items: center; /* Центрируем элементы по горизонтали */
    text-align: center; /* Центрируем текст внутри контейнера */
}

.thumbnail {
    width: 98%;
    cursor: pointer;
}

.modal-video {
    width: 100%; /* Set video to full width of dialog */
}

dialog {
    /*    width: 80%;*/
    max-width: 80%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #aaa;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;