/* Базовые настройки под оригинал */
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f2f2f2;
    color: #333333;
}

/* ВЕРХНЯЯ ШАПКА (ХЕДЕР) */
.site-header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-box {
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    letter-spacing: -1px;
}

.logo-box span {
    color: #009245; /* Зеленая буква И */
}

.header-info {
    display: flex;
    gap: 30px;
    font-size: 16px;
}

.header-info a {
    color: #333;
    text-decoration: none;
}

.order-btn {
    background-color: #009245;
    color: white;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

/* НАВИГАЦИОННОЕ МЕНЮ */
.site-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-links a.active {
    color: #009245;
}

.search-box input {
    padding: 5px 10px;
    border: 1px solid #ccc;
    font-size: 12px;
    width: 180px;
    border-radius: 2px;
}

/* ОСНОВНОЙ КОНТЕНТ */
.main-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: normal;
    color: #333;
    margin-bottom: 40px;
}

/* СЕТКА БЛОКОВ (ПЛИТКИ) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-content: center;
}

.info-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: #009245;
}

.card-title {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
    line-height: 1.3;
}

/* === СТИЛИ ЧАТ-ВИДЖЕТА === */
.chat-widget {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 99999;
}

.chat-badge {
    width: 60px;
    height: 60px;
    background-color: #009245;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 92, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-badge:hover {
    transform: scale(1.05);
}

.chat-window {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 360px;
    height: 520px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.chat-window.hidden {
    display: none;
}

.chat-header {
    background-color: #009245;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background-color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    max-width: 92%;
    line-height: 1.55;
}

.bot-message .msg-body p {
    margin: 0 0 8px;
}

.bot-message .msg-body p:last-child {
    margin-bottom: 0;
}

.bot-message .msg-body ul.bot-list {
    margin: 4px 0 10px;
    padding-left: 20px;
    list-style-type: disc;
}

.bot-message .msg-body li {
    margin-bottom: 5px;
}

.bot-message .msg-body li:last-child {
    margin-bottom: 0;
}

.bot-message .msg-body strong {
    color: #0f172a;
    font-weight: 700;
}

.bot-message .msg-body a {
    color: #009245;
    font-weight: 600;
    text-decoration: none;
}

.bot-message .msg-body a:hover {
    text-decoration: underline;
}

.user-message {
    background-color: #009245;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Кнопка "три полоски" для вызова меню */
.menu-toggle-btn {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 18px;
    cursor: pointer;
    margin-right: 6px;
    transition: all 0.2s;
}

.menu-toggle-btn:hover {
    background-color: #e2e8f0;
    color: #009245;
}

/* Выкатное меню с командами внутри чата */
.chat-commands-menu {
    position: absolute;
    bottom: 60px;
    left: 12px;
    right: 12px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.chat-commands-menu.hidden {
    display: none;
}

.menu-header {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: bold;
    padding-left: 5px;
    margin-bottom: 2px;
}

.menu-item-btn {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    color: #334155;
    font-weight: 500;
    transition: all 0.15s;
}

.menu-item-btn:hover {
    background-color: #009245;
    color: white;
    border-color: #009245;
}

.chat-input-area {
    padding: 12px;
    display: flex;
    border-top: 1px solid #edf2f7;
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
}

.chat-input-area button#sendBtn {
    background-color: #009245;
    color: white;
    border: none;
    padding: 0 14px;
    margin-left: 8px;
    border-radius: 8px;
    cursor: pointer;
}
