.card-container {
    display: flex;
    width: 100%;
}
.back-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    border-right: 1px solid rgba(0,0,0,.125); /* Граница как у карточки */

}
.back-button {
    writing-mode: vertical-lr; /* Вертикальный текст */
    transform: rotate(180deg); /* Разворот текста */
    padding: 20px 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
/*=======================*/
/* Дополнительные стили для адаптивности видео */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 70px;
    padding: 2rem 2rem 4rem 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    margin-bottom: 2rem; /* Отступ от кнопки до видео */
}

/* Видео блок - теперь под hero-content */
.hero-video-block {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    padding: 0 1rem;
}

.hero-video-block .card {
    background: transparent;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    aspect-ratio: 16 / 9;
    width: 100%;
}

.hero-video-block .body {
    width: 100%;
    height: 100%;
}

.hero-video-block iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-ai {
    background: #ffffff;
    color: #1e1e1e;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-ai i {
    margin-right: 8px;
}

.btn-ai:hover {
    background: #f0ede8;
    transform: scale(1.02);
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .hero {
        margin-top: 90px;
        padding: 1rem 1rem 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-ai {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }

    .hero-video-block {
        margin: 1.5rem auto 0 auto;
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: 1.8rem !important;
    }
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 480px) {
    .hero {
        margin-top: 70px;
        padding: 0.5rem 0.5rem 2rem 0.5rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn-ai {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }

    .hero-content {
        padding: 0.75rem;
    }

    .hero-video-block {
        margin: 1rem auto 0 auto;
        padding: 0 0.5rem;
    }

    .hero-video-block .card {
        border-radius: 16px;
    }

    .nav-menu {
        gap: 0.8rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
    }

    .btn-call {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .btn-call i {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.4rem !important;
    }

    .trends-slider {
        gap: 1rem;
    }

    .trend-card {
        flex: 0 0 260px;
    }

    .calc-grid {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .reviews {
        gap: 1rem;
    }

    .review-card {
        min-width: 240px;
        padding: 1rem;
        font-size: 0.85rem;
    }

    section {
        padding: 3rem 1rem;
    }
}

/* Остальные ваши стили */
.card-container {
    display: flex;
    width: 100%;
}

.back-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    border-right: 1px solid rgba(0,0,0,.125);
}

.back-button {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    padding: 20px 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f5f0;
    color: #1e1e1e;
    line-height: 1.4;
    scroll-behavior: smooth;
}

/* Эффект "матовый при скролле" для шапки */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(245, 240, 235, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header.scrolled {
    background: rgba(240, 235, 225, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(4px);
    padding: 0.7rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /*gap: 1rem;*/
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2c2c2c, #6b5a4b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    font-weight: 300;
    font-size: 1rem;
    color: #8b7a6b;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    color: #2d2a27;
    transition: 0.2s;
    font-size: 1rem;
}

.nav-menu a:hover {
    color: #b87c4f;
}

.btn-call {
    background: #1e1e1e;
    color: white !important;
    padding: 0.7rem 1.4rem;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-call i {
    font-size: 1rem;
}

.btn-call:hover {
    background: #b87c4f;
    transform: scale(0.97);
}

section {
    /*padding: 5rem 2rem;*/
    max-width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-sub {
    color: #6b5a4b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    border-left: 3px solid #b87c4f;
    padding-left: 1rem;
}

.trends-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    cursor: grab;
}

.trend-card {
    flex: 0 0 320px;
    background: #fffcf8;
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    scroll-snap-align: start;
    overflow: hidden;
    transition: 0.2s;
}

.trend-card:hover {
    transform: translateY(-6px);
}

.trend-img {
    height: 220px;
    background-color: #ddd2c4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #5e4b38;
}

.trend-info {
    padding: 1.5rem;
}

.trend-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.trend-info p {
    color: #5e5a56;
}

.scheme-demo {
    background: #e9e2d9;
    border-radius: 20px;
    padding: 0.8rem;
    font-size: 0.8rem;
    text-align: center;
}

.calculator {
    background: #f2efe9;
    border-radius: 48px;
    padding: 2rem;
    margin-top: 2rem;
}

.calc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.calc-form {
    flex: 1;
    min-width: 260px;
}

.calc-result {
    flex: 1;
    background: white;
    border-radius: 32px;
    padding: 1.8rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

input, select {
    width: 100%;
    padding: 12px 16px;
    margin: 12px 0;
    border: 1px solid #ddd0c2;
    border-radius: 28px;
    font-family: inherit;
    background: white;
}

.calc-btn {
    background: #1e1e1e;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.ai-badge {
    background: #f3ede5;
    padding: 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.port-item {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1 / 0.8;
    background: #e1d7cf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #5e4b38;
    font-size: 0.9rem;
}

.reviews {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
}

.review-card {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    min-width: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

footer {
    background: #e3dbd0;
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
}

.modal-mock {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e1e1e;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    z-index: 1100;
    display: none;
}

button {
    cursor: pointer;
}

@media (max-width: 800px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* Фоновый слой с картинкой */
#background_layer {
    position: fixed;      /* Фиксируем, чтобы не скроллился */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;           /* Самый нижний слой */

    /* Фоновая картинка */
    background-image: url('/images/background1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Полупрозрачность */
    opacity: 1;         /* 0 = полностью прозрачно, 1 = непрозрачно */

    /* Чтобы слой точно не перехватывал клики */
    pointer-events: none;
}

/* Основной блок контента */
#body_block {
    position: relative;   /* Чтобы перекрыть фон */
    z-index: 1;           /* Выше фонового слоя */
    min-height: 100vh;    /* На всю высоту экрана минимум */

    /* Если нужно, добавь фон для контента */
    background-color: rgba(255, 255, 255, 0.4); /* Полупрозрачный белый */

    /* Остальные твои стили */
}

.card-body, .card
{
    background-color: rgba(255,255,255,0.6);
}
