﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #3C2418;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(45deg, #B19061, #4A2E1F, #E5DFD6, #B19061);
    background-size: 200% 200%;
    animation: gradientShift 30s ease infinite;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: url(#noiseFilter);
    opacity: 0.8;
    z-index: -1;
}

.header {
    /*    width: 100%;*/
    padding: 8px 20px;
    background-color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #3C2418;
    position: relative;
    z-index: 1;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    background-color: #3C2418;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E5DFD6;
    font-weight: bold;
    font-size: 16px;
}
.logo img {
    width: 40px;
    height: 40px;
}

.company-name {
    font-size: 18px;
    font-weight: bold;
    color: #3C2418;
}

.title-container {
    width: 100%;
    margin: 10px 0;
    padding: 15px 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.animated-title {
    text-transform: uppercase;
    letter-spacing: .5em;
    display: inline-block;
    border: 4px double rgba(60,36,24,0.25);
    border-width: 4px 0;
    padding: 1.5em 0em;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.animated-title span {
    font: 700 2em/1 "Oswald", sans-serif;
    letter-spacing: 0;
    padding: .25em 0 .325em;
    display: block;
    margin: 0 auto;
    color: #E5B923;
    text-shadow: 0 0 15px rgba(229, 185, 35, 0.8), 0 0 25px rgba(229, 185, 35, 0.6), 0 0 35px rgba(229, 185, 35, 0.4);
    animation: neonGlow 3s ease-in-out forwards;
}

@keyframes neonGlow {
    0% {
        color: #E5B923;
        text-shadow: 0 0 15px rgba(229, 185, 35, 0.8), 0 0 25px rgba(229, 185, 35, 0.6), 0 0 35px rgba(229, 185, 35, 0.4);
    }

    100% {
        color: #3C2418;
        text-shadow: 0 0 10px rgba(229, 223, 214, 0.5);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.main-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.buttons-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.btn {
    padding: 12px 20px;
    font-size: 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #B19061;
    color: white;
    min-width: 200px;
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    box-sizing: border-box;
    flex: 1;
    max-width: 300px;
}

.btn:hover {
    background-color: #3C2418;
}

.btn.btn-small {
    height: 40px;
}

.button-description {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    height: 80px; /* Фиксированная высота */
    font-size: 14px;
    color: #FFFFFF; /* Белый цвет текста */
    box-sizing: border-box;
}
.button-description > span {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.button-description > span.visible {
    opacity: 1;
}

.ai-wrapper {
    display: flex;
    width: 100%;
    gap: 15px;
    align-items: flex-start;
    position: relative;
}

.ai-logo-container {
    position: absolute;
    left: -100px;
    top: 0;
    width: 80px;
    flex-shrink: 0;
}

.ai-logo {
    width: 80px;
    height: 80px;
    background-color: #3C2418;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E5DFD6;
    font-size: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ai-dialog-container {
    flex: 1;
    width: 100%;
}

.ai-chat-container {
    background-color: white;
    border-radius: 5px;
    border: 1px solid #B19061;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.chat-input-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.chat-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #D9D9D9;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
    color: #3C2418;
}

.chat-input::placeholder {
    color: #aaa;
    font-style: italic;
}

.chat-input:focus {
    border-color: #B19061;
    background-color: white;
}

.chat-output {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #D9D9D9;
    border-radius: 5px;
    background-color: white;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    color: #3C2418;
}

    .user-question {
        margin-bottom: 10px;
        padding: 8px 12px;
        background-color: rgba(177,144,97,0.1);
        border-radius: 5px;
        color: #3C2418;
        border-left: 3px solid #B19061;
    }

.ai-response {
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: rgba(229,223,214,0.3);
    border-radius: 5px;
    color: #3C2418;
    border-left: 3px solid #3C2418;
}

@media (max-width: 768px) {
    .animated-title {
        letter-spacing: .3em;
        padding: 1em 0;
    }

        .animated-title span {
            font-size: 1.5em;
        }

    .buttons-row {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        min-width: auto;
        max-width: none;
    }

    .ai-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .ai-logo-container {
        position: static;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }

    .ai-chat-container {
        width: 100%;
    }
}
