@import url(variables.css);
@import url(form_back.css);

html {
    background-color: var(--color-background);
    color: var(--color-text);
    width: 100%;
    margin: 0;
    scroll-behavior: smooth; /* плавный скролл*/
    overflow-x: hidden;
}
body {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none !important;
    overflow-x: hidden;
}
section {
    width: 80vw;
    margin: auto;
    margin-bottom: 30px;
}
.block-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.titlename {
    font: 8vw Title-bold;
    width: 100%;
    text-align: center;
    margin-top: 3vw;

}
header {
    height: 25px;
    width: 100%;
    left: 0; right: 0; /* Вся ширина */
    top: 5vh; /* Положение сверху */
    display: flex;
    flex-direction: row;
    justify-content: flex-end;

    a {
        width: 25px;
        height: 25px;
        display: block;
        background-repeat: no-repeat;
        background-size: cover;
        margin: auto 0.5vw;
        transition: all 0.4s ease; 
    }
}
a.phone_url {
    background-image: url(..//img/phone.svg);

    &:hover {
         background-image: url(..//img/phone_white.svg);
    }
}
a.linkedin_url {
    background-image: url(..//img/linked.svg);

    &:hover {
         background-image: url(..//img/linked_white.svg);
    }
}
a.telegram_url {
    background-image: url(..//img/telegram.svg);

    &:hover {
         background-image: url(..//img/telegram_white.svg);
    }
}
a.instagram_url {
    background-image: url(..//img/instagram.svg);

        &:hover {
         background-image: url(..//img/instagram_white.svg);
    }
}
a.vk_url {
    background-image: url(..//img/vk.svg);

        &:hover {
         background-image: url(..//img/vk_white.svg);
    }
}
a.whatsup_url {
    background-image: url(..//img/whatsup.svg);

        &:hover {
         background-image: url(..//img/whatsup_white.svg);
    }
}
a.mail_url {
    background-image: url(..//img/mail.svg);

        &:hover {
            display: flex; 
            background-image: url(..//img/mail_white.svg);
    }
}
a.max_url {
    background-image: url(..//img/max.svg);

        &:hover {
            display: flex; 
            background-image: url(..//img/max_white.svg);
    }
}

#section-home {
    display: flex;
    flex-direction: column;
    height: 28vw;
    /* position:relative; чтобы header был внутри */
    margin-top: 40px;

    h1 {
        /* изменить, настройки для КП */
        margin-top: -2vw;
        font: small-caps 1.5vw Full-light;
        /* --- */
        text-align: center;
        width: 100%;
        letter-spacing: 0.04em;

        p {
            margin: 0;
        }
    }
}
.razdel {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--color-background) solid 5px;
    margin-bottom: 2vw;

    h1 {
        font: small-caps 1.8em Difr-italic;
        white-space: nowrap; /* без переноса текста на новую строку */
        margin: 0 1vw;
        }

    .line-razdel {
        width: 100%;
        height: 5px;
        background-color: var(--color-background);
        margin: 1.1vw 0 0 0;
        box-shadow: var(--shadow-line);
        border-radius: 30px;
    }
}
.div-buttonup {
    margin-top: 2vw;
    width: 100%;
    height: 5vw;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: end;
    
    .buttonUp {
        width: 7vw;
        height: 7vw;
        display: block;
        background-image: url(../img/buttonup3.svg);
        background-repeat: no-repeat;
        background-size: 100%;
        transition: all 0.3s ease-in-out; 
        
        &:hover {
            width: 7vw;
            height: 7vw;
            transform: translateY(-0.5vw);
        }
    }
}
#section-footer {
    font: 1.2vw Difr-text;
    span {
        font-size: 1.5vw;
        color: var(--color-biruza);
    }
}
#section-project {
    display: flex;
    flex-direction: row;
    height: 100%;
    flex-wrap: wrap;
    justify-content: space-around;

    .boxs {
        width: 330px;
        margin: 1rem;
        height: 400px;
        border-radius: 0 20px 30px;
        overflow: hidden;
        padding: 15px;
        box-shadow: -0.5em -0.5em 1em rgba(0, 0, 0, 0.10), 0.5em 0.5em 1em rgba(0, 0, 0, 0.25), -0.5em 0.5em 1em rgba(0, 0, 0, 0.10), 0.5em -0.5em 1em rgba(0, 0, 0, 0.10);
    }
    .box {
        width: 100%;
        margin: auto;
        border-radius: 0 20px 30px;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .imag-proj {
        width: 100%;
        align-items: center;
        
    }
    img { 
        object-fit: contain; 
        border-radius: 0 30px 30px;
        overflow: hidden;
    }    
    .description {
        padding: 0 10px;
        h3 {
            margin: 15px 0;
        }
    }
    .project-description {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        margin-bottom: 15px;
        word-break: break-word;
        color: #c7c7c7;
    }
}
a {
    text-decoration: none;
    color: var(--color-text);
}
/* увеличение */
.boxs.project-card, .blog-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.boxs.project-card:hover, .blog-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
}
/* =================== Блог ============ */
.blog-container {
    display: flex;
    flex-direction: column;

    .blog-grid {
        display: flex;
        flex-direction: row;
        height: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .blog-card {
        width: 330px;
        margin: 1rem;
        height: 400px;
        border-radius: 0 20px 30px;
        overflow: hidden;
        padding: 15px;
        box-shadow: -0.5em -0.5em 1em rgba(0, 0, 0, 0.10), 0.5em 0.5em 1em rgba(0, 0, 0, 0.25), -0.5em 0.5em 1em rgba(0, 0, 0, 0.10), 0.5em -0.5em 1em rgba(0, 0, 0, 0.10);
        display: flex;
        flex-direction: column;
    }
    .blog-image-wrapper {
        width: 100%;
        align-items: center;
        
    }
    img { 
        object-fit: contain; 
        border-radius: 0 30px 30px;
        overflow: hidden;
        width: 100%;
    } 
    .blog-meta {
        text-align: right;
    }
    .blog-content {
        padding: 10px;
        margin-top: 5px;
    }
    .blog-title {
        margin: 5px 0 10px 0;
    }
    .blog-excerpt {
        margin: 0;
    }
    .blog-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        margin-bottom: 15px;
        word-break: break-word;
        color: #c7c7c7;
    }
}
.blog-all-posts {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.blog-footer {
    text-align: right;
    margin-top: 3vw;
    
    a {
        text-decoration: none;
        color: var(--color-biruza);
        font: 1rem Full-text;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        background-color: var(--color-background);
        border-radius: 30px;
        padding: 10px 30px;
        transition: all 0.3s ease;
        box-shadow:var(--shadow-button);
        width: 300px;

        &:hover{
            background-color: var(--color-biruza);
            color: var(--color-background);
            box-shadow:-1em -1em 1em rgba(255, 255, 255, 0.10), 1em 1em 1em rgba(0, 0, 0, 0.25);
        }
    }
}

.box-search {
    display: flex;
    justify-content: end;
    margin-top: 30px;
}


.search-form {
    display: flex;
    justify-content: end;
    position: relative;
    width: 300px;
    box-shadow: var(--shadow-fields);
    border-radius: 30px;
    overflow: hidden;

    input {
        box-shadow: none;
        flex: 1;
        border-radius: 30px;
        border: 3px solid var(--color-background);
        height: 35px;
    }
    input::placeholder {
        font-size: 1rem;
    }
    
    input, button {
        outline: none;
        background: transparent;
    }
}
.search-form:focus-within {
    box-shadow: none;
}
input:focus {
    box-shadow: inset -0.1em -0.3em 0.5em rgba(255, 255, 255, 0.10), inset 0.1em 0.3em 0.5em rgba(0, 0, 0, 0.25);
}
.search-form button {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    background-image: url('../img/search_blue.svg'); /* путь к иконке */
    background-size: contain;  /* или cover, 20px 20px */
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 5%;
    margin: auto;
}
/* Для Chrome, Edge, Safari */
.search-form input:-webkit-autofill,
.search-form input:-webkit-autofill:hover,
.search-form input:-webkit-autofill:focus,
.search-form input:-webkit-autofill:active {
    border: 3px solid var(--color-background) !important;
    box-shadow: inset -0.1em -0.3em 0.5em rgba(255, 255, 255, 0.10), inset 0.1em 0.3em 0.5em rgba(0, 0, 0, 0.25) !important;
}
.search-form input {
    filter: none !important;
}
.search-type {
    display: inline-block;
    font-size: 12px;
    color: var(--color-biruza);
    margin-top: 8px;
}

.search-empty {
    text-align: center;
    width: 100%;
    padding: 40px 0;
    color: #888;
}
.title-search {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    h1 {
        font: small-caps 1.8em Difr-italic;
        white-space: nowrap;
    }
}
.search-empty {
    color: white;
    font-size: 1.2rem;
}
.search-results {
    h4 {
        margin: 0;
    }
}
.mrg-bttm {
    margin-bottom: 30px;
}


/* ============== страница блога ========== */
.blog-page {
    width: 80vw;
    margin: auto;
    display: flex;
    flex-direction: column;
}
.container-article {
    margin: 40px 0;
    position: relative;
    overflow: hidden;  /* Заставляет блок охватывать все внутренние элементы */
}
.container {
    margin-top: 40px;
    position: relative;
}
.blog-title, .projects-title, .title-galery{
    text-align: center;
    margin: 30px auto 0;

    h1 {
        font: small-caps 1.8em Difr-italic;
        white-space: nowrap; /* без переноса текста на новую строку */
    }
}
.blog-intro {
    text-align: center;
    font: 1rem Full-light;
    margin-bottom: 20px;
}
.blog-post-full {
    width: 40%;
    margin: 20px 0;
    height: 400px;
    border-radius: 0 20px 30px;
    overflow: hidden;
    padding: 15px;
    box-shadow: -0.5em -0.5em 1em rgba(0, 0, 0, 0.10), 0.5em 0.5em 1em rgba(0, 0, 0, 0.25), -0.5em 0.5em 1em rgba(0, 0, 0, 0.10), 0.5em -0.5em 1em rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.block-img-descr {
    height: 70%;
}
.blog-post-image {
    width: 100%;
    align-items: center;
    height: 50%;
    margin-bottom: 10px;

    img {
        object-fit: cover;
        border-radius: 0 30px 30px;
        overflow: hidden;
        width: 100%;
        height: 100%;
    }
}
.richtext-image.full-width {
    margin: 10px auto;
    max-height: 30vw;
}
.richtext-image.left  {
    float: left;
    max-height: 40vw;
    margin: 30px 30px 30px 0;
    max-width: 45%;
}
.richtext-image.right  {
    float: right;
    max-height: 40vw;
    margin: 30px 0 30px 30px;
    max-width: 45%;
}
.blog-post-title {
    margin: 0 0 10px 0;
    text-align: center;
}
.blog-post-description {
    color: #c7c7c7;
    margin-top: 0;
}
.blog-post-featured-image {
    width: auto;
    height: 50vh;
    float: left;
    margin-right: 30px;

    img {
        height: 100%;
        object-fit: cover;
    }
}

.blog-post-readmore, .nav-btn {
    color: var(--color-biruza);
    display: block;
    border: 2px solid var(--color-biruza);
    border-radius: 30px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}
.blog-post-readmore:hover {
    color: var(--color-text);
    border: 2px solid white;
    box-shadow: var(--shadow-black);
}
.block-date-link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.blog-post-date {
    display: flex;
    align-items: center;
}
.navigation-buttons {
    display: flex;
    position: absolute;
    top: -6px;
    left: 0px;
    width: auto;
}
.nav-btn {
    width: auto;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right: 20px;
}
.blog-post-page {
    width: 80vw;
    margin-top: 40px;
    position: relative;
}
.article-title {
    text-align: center;
}
.blog-post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.blog-post-content p {
    text-indent: 30px;  /* Отступ первой строки */
}
.buttn-back {
    position: relative;
    margin: 30px 0;
    height: 30px;
}
.pagination {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 30px 0;
    gap: 30px;
    align-items: center;
}
.pagination__prev, .pagination__number, .pagination__next {
    font-size: 1.2rem;
    border-radius: 50px;
    border: 3px solid var(--color-background);
    box-shadow: var(--shadow-black);
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}
.pagination__numbers {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.pagination__number.active {
    color: var(--color-biruza);
}
/* Отключённые кнопки */
.pagination__prev.disabled,
.pagination__next.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.div_button_sell {
    text-align: right;
    margin-top: 3vw;
    
    a {
        text-decoration: none;
        color: var(--color-biruza);
        font: 1.1vw Full-text;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        background-color: var(--color-background);
        border-radius: 30px;
        padding: 0.8vw 1.8vw;
        transition: all 0.3s ease;
        box-shadow:var(--shadow-button);
        /*outline:1px solid var(--color-biruza);
        outline-offset:-0.4em;  внутри рамка */

        &:hover{
            background-color: var(--color-biruza);
            color: var(--color-background);
            box-shadow:-1em -1em 1em rgba(255, 255, 255, 0.10), 1em 1em 1em rgba(0, 0, 0, 0.25);
        }
    }
}
#section-form-back {
    scroll-margin-top: 6vw; /* отступ при скролле */
}
#section-footer {
    flex-direction: column;
    text-align: center;
}
.footer_seti {
    display: flex;
    justify-content: center;

    a {
        width: 25px;
        height: 25px;
        display: block;
        background-repeat: no-repeat;
        background-size: cover;
        margin: auto 0.5vw;
        transition: all 0.4s ease; 
    }
}
.mrg-plus {
    margin-top: 30px;
}
/* Статусы проектов */
.project-status {
    margin: 8px 0 12px;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

/* Статус готовности */
.status-ready {
    background: #d4edda;
    color: #155724;
}

.status-not-ready {
    background: #fff3cd;
    color: #856404;
}

/* Статус публикации */
.status-draft {
    background: #f8d7da;
    color: #721c24;
}

.status-published {
    background: #d1ecf1;
    color: #0c5460;
}

.status-on-main {
    background: #cfe2ff;
    color: #004085;
}
/* ============== Проект =============== */
.project-wrap {
    overflow: hidden;
}
.project-main-image {
    width: 45%;
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
}
.project-main-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}
.project-content {
    overflow: visible;
}
.project-header {
    text-align: center;
}
.project-technologies {
    margin: 10px 0;
    color: #c7c7c7;
}
.project-link {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 40px;
    margin: 20px 0;
}
.project-link a {
    display: flex;
    gap: 5px;
    height: 20px;
    border: 2px solid var(--color-biruza);
    border-radius: 20px;
    padding: 10px 20px;
}
.project-link a:hover {
    box-shadow: var(--shadow-black);
}

a span.pr-link {
    background-image: url(..//img/link-45deg_blue.svg);
    display: block;
    width: 20px;
    height: 100%;
    background-size: cover;
}
a span.pr-git {
    background-image: url(..//img/github_blue.svg);
    display: block;
    width: 20px;
    height: 100%;
    background-size: cover;
}
.project-content-block h3 {
    text-align: center;
}
.block-image {
    width: auto;
    max-width: 100%;
    margin: 20px 0;

    img {
        width: 100%;
        object-fit: cover;
    }
}

/* Контейнер блока контента — гифка будет под текстом */


/* Текст обтекает главное изображение */
.block-descr-imag .block-description {
    overflow: visible;
}
.miniblock-image .gallery-section {
    width: 100%;
}
.gallery-section {
    width: 50%;
    float: left;
    margin: 30px 0;
    overflow: hidden;
}
/* Изображение (GIF) — под текстом */
.block-descr-imag .block-image {
    width: 52%;
    float: right;
    margin-top: 30px;
    overflow: hidden;
}
.carousel-indicators {
    margin-bottom: 0;
}.carousel-indicators [data-bs-target] {
    background-color: var(--color-background);
}
.block-descr-imag .block-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-content .block-image.full-width {
    float: none;
    width: 100%;
    max-width: 100%;
    clear: both;
}
/* Блок с вкладками */
.tabs-container {
    margin: 40px 0;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid rgba(0, 223, 196, 0.3);
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;  /* Растягивает кнопки равномерно */
    text-align: center;
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-family: 'Full-text', sans-serif;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px 30px 0 0;
    position: relative;
    white-space: nowrap; /* Запрещаем перенос текста */
}

.tab-button.active {
    background: #00dfc4;
    color: #223243;
    font-weight: bold;
}

.tab-button:hover:not(.active) {
    background: rgba(0, 223, 196, 0.2);
}

.tabs-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
}

.tab-pane {
    display: none;
    line-height: 1.6;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane h4 {
    color: #00dfc4;
    margin-top: 0;
    font-size: 1.2rem;
}

.tab-pane ul, .tab-pane ol {
    padding-left: 20px;
}

.tab-pane li {
    margin: 8px 0;
}
.title-tabs {
    text-align: center;
}
.project-page {
    width: 100%;
    height: 2px;
    box-shadow:-2px -2px 7px rgba(255, 255, 255, 0.25), 5px 5px 15px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}
.tab-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}
/* Иконка в активной вкладке */
.tab-button.active .tab-icon {
    /* Цвет акцента #00dfc4 */
    filter: brightness(0) saturate(100%) invert(12%) sepia(87%) saturate(1234%) hue-rotate(180deg) brightness(95%) contrast(92%);
}
/* Медиа галерея внутри вкладок */
.tab-gallery {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 223, 196, 0.3);
}

.media-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.block-description ul,
.block-description ol {
    padding-left: 25px;
    margin-left: 0;
}
/* Разделитель между блоками контента
.project-content-block:not(:last-child) {
    /* border-bottom: 1px solid rgba(0, 223, 196, 0.2); */
    /* margin-bottom: 40px; */
/* } */
.media-item {
    width: 250px;
    height: auto;
    aspect-ratio: 4 / 3;
    text-align: center;
    overflow: hidden;
}

.media-item img,
.media-item video,
.media-item iframe {
    width: 100%;
    height: 100%;
    box-shadow: var(--shadow-black);
}
.media-item {
    transition: transform 0.5s ease;
}
.media-item:hover {
    transform: scale(1.5);
}

.media-item iframe {
    aspect-ratio: 16/9;
}

.media-caption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #c7c7c7;
}
.block-project-page {
    /* display: flex;
    flex-wrap: wrap; */
}
/* Сброс обтекания */
.clear-float-block {
    clear: both;
    margin: 30px 0;
}
.clear-float-block.with-line {
    border-top: 1px solid rgba(0, 223, 196, 0.3);
    margin: 40px 0;
}
/* ============ карусель в проектах ============== */
/* Карусель */
.carousel-wrapper {
    margin: 50px 0;
    height: 75vh;
    position: relative;
}

.carousel-container {
    width: 85%;
    margin: 0 auto;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-black);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* или cover — попробуйте оба */
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    padding: 2px 12px 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    /* background: #00dfc4; */
    color: var(--color-biruza);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-dots {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00dfc4;
    width: 25px;
    border-radius: 5px;
}

.dot:hover {
    background: #00dfc4;
}

/* Адаптив */
@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        display: none;
    }
    .carousel-container {
        width: 100%;
    }
    .carousel-wrapper {
        height: 30vh;
    }
}
/* ============================= */

/* GIF */
.gif-image {
    max-height: 300px;
    object-fit: contain;
}

/* Адаптив */
@media (max-width: 768px) {
    .media-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .media-item {
        flex: 1 1 100%;
    }
}
/* Блок с иконкой и обтеканием */
.content-with-icon-block {
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    overflow: hidden;
}

.block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 223, 196, 0.3);
    padding-bottom: 10px;
}

.block-icon {
    width: 32px;
    height: 32px;
    /* filter: brightness(0) invert(1); */
}

.block-icon-emoji {
    font-size: 28px;
}

.block-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* Обтекание изображения */
.block-content-wrapper {
    overflow: hidden;
}

.block-content-wrapper.image-left  {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
}

.block-content-wrapper.image-right  {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
}

/* Ширина изображения */
.block-content-wrapper.image-width-30 {
    width: 30%;
}

.block-content-wrapper.image-width-40 {
    width: 40%;
}

.block-content-wrapper.image-width-50 {
    width: 50%;
}

.block-content-wrapper.image-width-60 {
    width: 60%;
}

.miniblock-image {
    width: 100%;
    overflow: hidden;
}

.miniblock-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.block-text {
    overflow: hidden;
}

/* Адаптив */
@media (max-width: 768px) {
    .block-content-wrapper.image-left .miniblock-image,
    .block-content-wrapper.image-right .miniblock-image {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .content-with-icon-block {
        padding: 15px;
    }
    
    .block-header h3 {
        font-size: 1.2rem;
    }
}
/* ============== Адаптив ============= */
/* Для мобильных устройств — кнопки в столбик или с переносом */
@media (max-width: 768px) {
    .tab-button {
        white-space: normal; /* Разрешаем перенос на телефонах */
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Для очень маленьких экранов — кнопки вертикально */
@media (max-width: 480px) {
    .tabs-header {
        flex-direction: column;
        gap: 5px;
        border-bottom: none;
    }
    
    .tab-button {
        border-radius: 30px;
        text-align: center;
    }
    
    .tab-button.active {
        background: #00dfc4;
        color: #223243;
    }
}
@media (max-width: 1024px) {
    #section-home h1 {
        font-size: 1.8vw;
    }
    .div_button_sell a {
        font-size: 1.5vw;
        padding: 1vw 2vw;
    }
    .razdel h1 {
        font-size: 2.2vw;
    }
    .font_08 {
        font-size: 2vw;
    }
    #submitBtn {
        font-size: 2vw;
        height: auto;
        width: auto;
        padding: 1vw 5vw;
    }
    #section-footer {
        font-size: 1.5vw;
    }
    #section-home {
        height: auto;
        max-height: 50vw;
    }
    .titlename {
        margin-top: calc(25px + 4vw);
    }
    header {
        top: 3vh;
    }
    .footer_seti, header {
        gap: 5vw;
        justify-content: center;
    }
    .titlename {
        margin-top: calc(25px + 4vw);
    }
    section {
        width: 90vw;
    }
    .modal-body {
        font-size: 1.8vw;
    }
    .nav-btn__text {
        display: none;
    }
    .nav-btn {
        width: 24px;
        height: 24px;
    }
    .blog-post-featured-image {
        height: 40vw;
    }
    .razdel .line-razdel {
        box-shadow:-2px -2px 7px rgba(255, 255, 255, 0.25), 5px 5px 15px rgba(0, 0, 0, 0.5);
    }
    .block-image {
        margin: 0 !important;
    }
    .block-text {
        overflow: visible;
    }
   .block-descr-imag .block-image {
        width: 50%;
    }
}
@media (max-width: 822px) {
    .block-descr-imag .block-image, .gallery-section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        height: 50vw !important;
    }
    .div_button_sell {
        text-align: center;
        margin: 30px auto;
        a {
            font-size: 3vw;
            padding: 2vw 3.5vw;
        }
    }
    #section-home h1 {
        font-size: 1rem;
    }
    .navigation-buttons {
        width: 200px;
        flex-direction: row;
        flex-wrap: wrap;
        
    }
    .navigation-buttons a {
        margin-bottom: 10px;
    }
    .search-form input {
        font-size: 1rem;
    }
    .search-results {
        margin-top: 20px;
    }
    input {
        height: 50px;
        padding-left: 3vw;
    }
    textarea {
        padding: 3vw;
    }
    .razdel h1 {
        font-size: 1.5rem;
        margin: 0 1rem;
    }
    .div-buttonup {
        height: 7vw;
    }
    .div-buttonup .buttonUp {
        width: 70px;
        height: 60px;
    }
    #section-footer p, #section-footer span {
        font-size: 1.2rem;
    }
    .blog-post-content p {
        font-size: 1.1rem;
    }
    .block-descr-imag .block-image, .gallery-section {
        width: 100%;
    }
    
}

@media (max-width: 480px) {
    
    .div-buttonup {
        height: 15vw;
    }
     #submitBtn {
        margin-top: 20px;
        font-size: 4vw;
    }
    .font_08 {
        font-size: 4vw;
    }
   .form-group_left {
    gap: 3vw;
   }


    .font_08 {
        font-size: 3vw;
    }
    #submitBtn {
        font-size: 2.5vw;
        padding: 1.5vw 5.5vw;
    }
    #section-footer {
        font-size: 2vw;
    }
    
    #submitBtn {
        font-size: 3vw;
        padding: 0.5rem 10vw;
    }
    .modal-body {
        font-size: 1rem;
    }
    .blog-post-full {
        width: 100%;
    }
    .has-navigation {
        justify-content: end;
    }
    .container-article {
        margin-top: 20px;
    }
    .article-title h1 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    .project-main-image {
        float: none;
        width: 100%;
        margin: auto;
    }
    .block-content-wrapper.image-right, .block-content-wrapper.block-content-wrapper.image-left {
        float: none;
        width: 100%;
        margin: auto;
    }
    .blog-post-page {
        width: 90%;
    }
    .project-link {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        margin-bottom: 40px;
    }
    .project-link a {
        width: 200px;
        margin: auto;
    }
}

@media (max-width: 386px) {
    #section-home {
        height: 60vw;
        max-height: 100vw;  
    }
    #section-home h1 {
        margin-top: -1vw;
    }
    .div_button_sell {
        margin: 20px auto;
    }
    .div_button_sell a {
        font-size: 4vw;
        padding: 3vw 4vw;
    }
    .block-content {
        width: 100%;
    }
    #section-project img {
        width: 100%;
    }
    
   
}

@media (max-width: 380px) {
    #section-home{
        margin-top: 20px;
        height: 30svh;

        h1 {
            font-size: 3.5vw;
        }
    }
    .titlename {
        margin-top: 20px;
        font-size: 10vw;

    }

    .razdel h1 {
        font-size: 5vw;
    }
    .line-razdel {
        margin-top: 3vw !important;
    }
    #section-project .boxs {
        width: 250px;
    }
    input {
        height: 50px;
    }
    textarea {
        padding: 4vw;
    }
    .font_08, #submitBtn {
        font-size: 4vw;
    }
    .div-buttonup {
        margin: 6vw auto;
    }
    .blog-container .blog-card {
        width: 250px;
    }
}

@media (max-width: 1368px) and (max-height: 1026px) {
    .carousel-wrapper {
        height: 50vh;
    }
}
@media (max-width: 1026px) and (max-height: 1368px) {
    .carousel-wrapper {
        height: 30vh;
    }
}
@media (max-width: 1026px) and (max-height: 605px) {
    .carousel-wrapper {
        height: 70vh;
    }
}
@media (max-width: 1290px) and (max-height: 605px) {
    .carousel-wrapper {
        height: 70vh;
    }
}
/* Cookie-уведомление с эффектом стекла */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 20px;
    background: transparent;
    pointer-events: none; /* Чтобы клики проходили сквозь фон, но не сквозь контент */
}

.cookie-glass {
    max-width: 600px;
    margin: 0 auto;
    padding: 18px 24px;
    
    /* Эффект стекла (glassmorphism) */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Тень для глубины */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Поведение */
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    
    /* Анимация появления */
    animation: slideUp 0.4s ease-out;
}

/* Анимация появления снизу */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Текст */
.cookie-text {
    margin: 0;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    flex: 1;
}

/* Кнопка в цвет вашей темы #00dfc4 */
.cookie-btn {
    background: #00dfc4;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.cookie-btn:hover {
    background: #00c4ab;
    transform: scale(1.02);
}

/* Для мобильных устройств — вертикальное расположение */
@media (max-width: 550px) {
    .cookie-glass {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 10px;
    }
}