/* =========================================
   1. БАЗОВЫЕ ПЕРЕМЕННЫЕ И НАСТРОЙКИ
   ========================================= */

html {
    scroll-behavior: smooth;
}

:root {
    --bg-main: #0a0a0f;
    --bg-card: rgba(26, 26, 36, 0.6);
    --accent-copper: #D48C6B;
    --accent-copper-dark: #8C553D;
    --text-main: #FFFFFF;
    --text-muted: #A0A0B8;
    --border-color: rgba(212, 140, 107, 0.2);
    --font-main: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #050508;
    background-image: radial-gradient(circle at 0% 30%, rgba(212, 140, 107, 0.08) 0%, transparent 40%), radial-gradient(circle at 100% 70%, rgba(212, 140, 107, 0.08) 0%, transparent 40%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.accent-text {
    background: linear-gradient(to right, #F5C5AA, #D48C6B, #9A5A3F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.text-center {
    text-align: center;
}


/* =========================================
   2. ЛЕТАЮЩИЕ ЭЛЕМЕНТЫ (МОРФИНГ И ФОН)
   ========================================= */

.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    background: linear-gradient(135deg, rgba(212, 140, 107, 0.12), rgba(212, 140, 107, 0.02));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 140, 107, 0.2);
    box-shadow: inset 0 0 30px rgba(212, 140, 107, 0.05);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    transition: transform 0.1s linear;
}

.blob-1 {
    width: 350px;
    height: 350px;
    top: 5%;
    left: -5%;
    animation-duration: 12s;
}

.blob-2 {
    width: 450px;
    height: 450px;
    top: 40%;
    right: -10%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    bottom: -10%;
    left: 15%;
    animation-duration: 10s;
    animation-delay: 4s;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.header,
.hero,
.section,
.footer {
    position: relative;
    z-index: 10;
}


/* =========================================
   3. КНОПКИ И ШАПКА
   ========================================= */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.w-100 {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-copper), var(--accent-copper-dark));
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(212, 140, 107, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(212, 140, 107, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-copper);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(212, 140, 107, 0.1);
}

.header {
    padding: 24px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Вот эта строчка жестко ограничит высоту логотипа */
    height: 150px;
}

.logo img {
    height: 100%;
    /* Картинка подстроится под 35px */
    width: auto;
    object-fit: contain;
    display: block;
}


/* =========================================
   4. HERO СЕКЦИЯ
   ========================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 0%, rgba(140, 85, 61, 0.15) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero центрированный (без чата справа) */
.hero-center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-center p {
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-center .hero-actions {
    justify-content: center;
}

.hero-center .hero-stats {
    justify-content: center;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-copper);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.bot-showcase {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-placeholder {
    color: var(--text-muted);
    font-size: 14px;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent-copper);
    filter: blur(100px);
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}


/* =========================================
   5. ОСНОВА КАРТОЧЕК (GLASSMORPHISM)
   ========================================= */

.glass-card {
    background: linear-gradient(160deg, rgba(35, 35, 45, 0.7) 0%, rgba(15, 15, 20, 0.9) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 140, 107, 0.35);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
    font-weight: 800;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}


/* =========================================
   6. СПЕЦИФИЧНЫЕ КАРТОЧКИ (ФИЧИ, ПОРТФОЛИО, ОТЗЫВЫ)
   ========================================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}


/* Фичи вертикальные */

.feature-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 140, 107, 0.8);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 140, 107, 0.15);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(212, 140, 107, 0.2), rgba(212, 140, 107, 0.05));
    border: 1px solid rgba(212, 140, 107, 0.3);
    box-shadow: inset 0 0 10px rgba(212, 140, 107, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #F5C5AA;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p,
.card-text p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}


/* Фичи горизонтальные */

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
}

.feature-card-horizontal:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 140, 107, 0.8);
}

.feature-card-horizontal .card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.card-text h3 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
}


/* Демо блок (оставляем старые стили для карт demo-block) */

.demo-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px;
    text-align: left;
    align-items: center;
}

.demo-content h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.demo-content p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 30px;
}

.demo-image-placeholder {
    background: rgba(0, 0, 0, 0.3);
    height: 400px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
}

/* Полное Демо */

.demo-full-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
}

.demo-left {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.demo-left h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.demo-left > p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.demo-hints {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hints-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.demo-hint-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
}

.demo-hint-btn:hover {
    background: rgba(212, 140, 107, 0.1);
    border-color: var(--accent-copper);
    color: var(--accent-copper);
    transform: translateX(4px);
}

.demo-right {
    display: flex;
    flex-direction: column;
}

.demo-right .demo-chat-container {
    border-radius: 0;
    flex: 1;
    height: 500px;
}

.demo-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.demo-text-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 18px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.demo-text-input:focus {
    border-color: var(--accent-copper);
}

.demo-text-input::placeholder {
    color: var(--text-muted);
}

.demo-send-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-copper), var(--accent-copper-dark));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.demo-send-btn svg {
    width: 18px;
    height: 18px;
    color: white;
    stroke: white;
}

.demo-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 140, 107, 0.5);
}


/* Портфолио */

.portfolio-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.portfolio-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.tag {
    background: rgba(212, 140, 107, 0.1);
    color: var(--accent-copper);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.portfolio-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    flex-grow: 1;
}


/* Отзывы */

.carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.carousel-btn {
    position: absolute;
    top: calc(50% - 10px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-copper), var(--accent-copper-dark));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 140, 107, 0.4);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 140, 107, 0.6);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.reviews-carousel {
    display: flex;
    overflow-x: auto;
    gap: 21px;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.reviews-carousel::-webkit-scrollbar {
    display: none;
}

.reviews-carousel .review-card {
    flex: 0 0 calc(33.333% - 13.34px);
    width: calc(33.333% - 13.34px);
}

@media (max-width: 992px) {
    .reviews-carousel .review-card {
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
    }
}

@media (max-width: 650px) {
    .carousel-wrapper {
        padding: 0 15px;
    }

    .carousel-btn {
        display: none;
    }

    .reviews-carousel .review-card {
        /* Делаем 85%, чтобы следующая карточка чуть "выглядывала" сбоку — подсказка для свайпа */
        flex: 0 0 calc(85% - 20px);
        width: calc(85% - 20px);
    }
}

.review-card {
    padding: 40px 30px;
    box-sizing: border-box;
    /* Важно для правильного расчета ширины */
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-copper);
}

.review-header h4 {
    font-size: 18px;
}

.review-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================
   7. СТОИМОСТЬ И FAQ
   ========================================= */


/* Прайс */

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}

.pricing-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.price {
    font-size: 56px;
    font-weight: 800;
    color: var(--accent-copper);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}

.pricing-features li svg {
    width: 24px;
    height: 24px;
    color: #4CAF50;
    flex-shrink: 0;
}

.urgency {
    margin-top: 16px;
    color: #FF6584;
    font-size: 14px;
    font-weight: 600;
}


/* FAQ Аккордеон */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 0;
    cursor: pointer;
    border-radius: 16px;
}

.faq-question {
    padding: 24px 30px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 24px;
    color: var(--accent-copper);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 30px;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* =========================================
   8. ПОДВАЛ И ФОРМА ЗАЯВКИ
   ========================================= */

.footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: center;
}

.footer-info h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-info p {
    font-size: 18px;
    color: var(--text-muted);
}

.form-container {
    padding: 40px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 16px;
    outline: none;
    transition: border 0.3s ease;
}

.input-group input:focus {
    border-color: var(--accent-copper);
}

.form-status {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}


/* --- СТИЛИ ИНТЕРАКТИВНОГО ЧАТА --- */

.demo-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: rgba(10, 10, 10, 0.4);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    background: #000;
    padding: 5px;
    object-fit: contain;
}

.chat-info h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.chat-info .status {
    font-size: 12px;
    color: var(--accent-copper);
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background: var(--accent-copper);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.chat-inputs {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-btn {
    background: transparent;
    border: 1px solid var(--accent-copper);
    color: var(--accent-copper);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-btn:hover {
    background: var(--accent-copper);
    color: #fff;
}


/* =========================================
   9. АДАПТИВНОСТЬ
   ========================================= */

@media (max-width: 1024px) {

    .hero-container,
    .demo-full-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        text-align: center;
        gap: 40px;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-stats {
        justify-content: center;
    }

    .demo-block {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
    
    .demo-content p {
        margin: 0 auto 30px;
    }

    .demo-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 40px 30px;
    }

    .demo-right .demo-chat-container {
        height: 420px;
    }

    .pricing-features {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-grid {
        text-align: center;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .hero-content h1,
    .footer-info h2 {
        font-size: 36px;
    }

    .logo {
        height: 50px;
    }

    .hero {
        padding-top: 120px;
    }

    .bot-showcase {
        height: 480px;
    }

    .demo-image-placeholder {
        height: 300px;
    }

    .feature-card-horizontal {
        flex-direction: column;
        padding: 24px;
    }

    .feature-card-horizontal .card-icon {
        margin-bottom: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}