/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #2b2626cb;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Цветовая палитра (только цвета) */
:root {
    /* Цвета текста */
    --text-primary: #b37c7c;
    --text-secondary: #775d5d;
    --text-light: #766d77;
    --text-accent: #cc5200;
    --text-neon: #ff9500; /* Неоново-оранжевый для чата */
    
    /* Цвета фонов */
    --bg-primary: #312a2a;
    --bg-secondary: #2221208f;
    --bg-dark: #25282c;
    --bg-accent: #d45d0e67;
    --bg-accent-dark: #f05417ab;
    --bg-chat: #2b2626; /* Коричневый фон для сообщений */
    
    /* Цвета элементов */
    --border-color: #000000;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Стили для кнопки-уведомления */
.chat-notification {
    position: fixed;
    display: none;
    align-items: center;
    background-color: var(--bg-primary);
    border: 2px solid var(--text-accent);
    border-radius: 10px;
    padding: 10px 15px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.chat-notification:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.chat-icon {
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-right: 10px;
}

.chat-message {
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
}

.chat-close {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1rem;
    color: var(--text-accent);
    cursor: pointer;
}

.chat-close:hover {
    color: var(--text-neon);
}

/* Стили для чата */
.chat-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--bg-chat);
    width: 100%;
    padding-bottom: 150px; /* Отступ для избежания перекрытия панелью ввода */
}

.chat-message {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.chat-message.user {
    color: var(--text-light);
    text-align: right;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-left: 20%;
}

.chat-message.assistant {
    color: var(--text-neon);
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-left: 0;
    margin-right: 0;
    width: 100%; /* Полная ширина экрана */
}

.chat-message.assistant a {
    color: var(--text-accent);
    text-decoration: none;
}

.chat-message.assistant a:hover {
    text-decoration: underline;
}

.chat-message .prompt {
    color: var(--text-accent);
    margin-right: 5px;
}

.chat-input-panel {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: var(--bg-primary);
    padding: 15px;
    border-top: 2px solid var(--text-accent);
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-secondary);
    color: var(--text-light);
    font-size: 1rem;
    resize: none;
    min-height: 40px;
    max-height: 150px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--text-accent);
}

.chat-buttons {
    display: flex;
    gap: 10px;
}

.chat-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-accent);
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-button:hover {
    background-color: var(--bg-accent-dark);
    transform: translateY(-2px);
}

.chat-button.active {
    background-color: var(--text-neon);
}

/* Герой секция с анимированным фоном */
.hero-section {
    position: relative;
    height: 100vh;
    max-height: 800px;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    background-image: url('../img/ozone-particle.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    filter: drop-shadow(0 0 5px rgba(0, 102, 204, 0.5));
}

.bg-particle.p1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation: float 15s linear infinite, rotate 20s linear infinite;
}

.bg-particle.p2 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 70%;
    animation: float2 18s linear infinite, rotate-reverse 25s linear infinite;
}

.bg-particle.p3 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 80%;
    animation: float3 12s linear infinite, rotate 15s linear infinite;
}

.bg-particle.p4 {
    width: 180px;
    height: 180px;
    top: 70%;
    left: 10%;
    animation: float4 20s linear infinite, rotate-reverse 30s linear infinite;
}

/* Анимации частиц */
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 30px) rotate(90deg); }
    50% { transform: translate(100px, 0) rotate(180deg); }
    75% { transform: translate(50px, -30px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-40px, 40px) rotate(-90deg); }
    50% { transform: translate(-80px, 0) rotate(-180deg); }
    75% { transform: translate(-40px, -40px) rotate(-270deg); }
    100% { transform: translate(0, 0) rotate(-360deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-60px, 60px) rotate(180deg); }
}

@keyframes float4 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(70px, 20px) rotate(120deg); }
    66% { transform: translate(-50px, 50px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Остальные стили */
.hero-content {
    text-align: center;
    width: 100%;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 25px;
    object-fit: contain;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Типография */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* Кнопки */
.btn-primary {
    display: inline-block;
    background-color: var(--bg-accent);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--bg-accent-dark);
    transform: translateY(-2px);
}

/* Шапка */
.header-bg {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-bg .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.menu {
    display: flex;
}

.menu-link {
    margin-left: 25px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s;
}

.menu-link:hover {
    color: var(--text-accent);
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s;
}

/* Секция "О нас" */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.about-text {
    flex: 1;
}

.text-primary {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-image {
    flex: 1;
}

.about-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Секция услуг */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.service-bg-1 {
    background-color: #262b21b9;
}

.service-bg-2 {
    background-color: #262b21b9;
}

.service-bg-3 {
    background-color: #262b21b9;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 50px;
    color: var(--text-accent);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.service-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Секция преимуществ */
.advantages-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.advantages-list {
    list-style: none;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.advantage-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.advantage-icon {
    color: var(--text-accent);
    margin-right: 15px;
    font-size: 1.2rem;
}

.advantage-text {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Секция контактов */
.contacts-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.contacts-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.contacts-info {
    flex: 1;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-icon {
    color: var(--text-accent);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-text {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.contact-link {
    color: var(--text-accent);
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--bg-accent-dark);
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input, .form-textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--text-accent);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Подвал */
.footer-bg {
    background-color: var(--bg-dark);
    padding: 30px 0;
}

.footer-bg .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link .social-icon {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Цвета для разных соцсетей при наведении */
.social-link:hover .fa-whatsapp {
    color: #25D366;
}

.social-link:hover .fa-telegram {
    color: #0088cc;
}

.social-link:hover .fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-link:hover {
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contacts-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px var(--shadow-color);
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu-link {
        margin: 10px 0;
    }
    
    .burger {
        display: flex;
    }
    
    .burger.active .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .chat-message.user {
        margin-left: 10%;
    }
    
    .chat-notification {
        max-width: calc(100% - 40px); /* Учитываем отступы 20px с каждой стороны */
    }
}
