/* === ТИПОГРАФИКА === */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #0d0d0d;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

/* === HEADER === */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    position: relative;
}

.logo svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.company-info {
    color: #fff;
    margin-left: 30px;
}

.company-info h2 {
    font-size: 18px;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.company-info p {
    font-size: 14px;
    margin: 5px 0 0;
    color: #e0e0e0;
}

/* === КОНТАКТЫ === */
.contacts-bar {
    background: #fff;
    border-bottom: 3px solid #e74c3c;
    padding: 15px 0;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: #e74c3c;
}

.contact-item strong {
    color: #0d0d0d;
    font-weight: 600;
}

.contact-item a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #e74c3c;
}

/* === CONTENT POST (ДОРВЕИ) === */
.content-post {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.content-post h1:first-child {
    margin-top: 0;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 15px;
}

.content-post p {
    text-align: justify;
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.content-post strong {
    color: #0d0d0d;
    font-weight: 700;
}

.content-post em {
    font-style: italic;
    color: #333;
}

/* === КНОПКИ === */
.btn, button[type="submit"], input[type="submit"] {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* === ССЫЛКИ === */
a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #c0392b;
    border-bottom: 1px solid #c0392b;
}

.content-post a {
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
}

.content-post a:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

/* === ТАБЛИЦЫ === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    color: #1a1a1a;
}

tr:hover {
    background: #f8f9fa;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

/* === СПИСКИ === */
ul, ol {
    margin: 20px 0;
    padding-left: 30px;
    color: #1a1a1a;
}

ul li, ol li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #2c2c2c;
}

ul li::marker {
    color: #e74c3c;
    font-weight: bold;
}

ol li::marker {
    color: #e74c3c;
    font-weight: bold;
}

.content-post ul {
    list-style-type: disc;
}

.content-post ul ul {
    list-style-type: circle;
    margin-top: 10px;
}

/* === ФОРМА ОБРАТНОЙ СВЯЗИ === */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.contact-form h3 {
    margin-top: 0;
    color: #0d0d0d;
    text-align: center;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0d0d0d;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    color: #1a1a1a;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* === LIVE CHAT === */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    max-width: 80%;
    color: #1a1a1a;
}

.chat-message.user {
    background: #e74c3c;
    color: #fff;
    margin-left: auto;
}

.chat-message.support {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    color: #1a1a1a;
}

/* === BLOCKQUOTE === */
blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 5px solid #e74c3c;
    background: #f8f9fa;
    font-style: italic;
    color: #2c2c2c;
}

blockquote p {
    margin-bottom: 0;
}

/* === CODE === */
code {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 25px 0;
}

pre code {
    background: transparent;
    padding: 0;
}

/* === FOOTER === */
.site-footer {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    color: #e0e0e0;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .company-info {
        margin-left: 0;
        text-align: center;
    }
    
    .contacts-container {
        flex-direction: column;
        align-items: center;
    }
    
    .content-post {
        padding: 30px 20px;
        margin: 20px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .company-info h2 {
        font-size: 16px;
    }
    
    .company-info p {
        font-size: 12px;
    }
    
    .contact-form {
        padding: 25px 15px;
        margin: 20px;
    }
    
    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .logo-wrapper {
        flex-direction: column;
    }
}

/* === УТИЛИТЫ === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === АНИМАЦИИ === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-post > * {
    animation: fadeIn 0.6s ease-out;
}

/* === СКРОЛБАР === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}
