/* === ТИПОГРАФИКА === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #f8f9fa;
}

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

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.5em;
    color: #2d2d2d;
}

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

.content-post p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.6em;
    color: #333333;
}

.content-post p:first-of-type {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #1a1a1a;
}

.content-post h2 {
    margin-top: 2.5em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #e63946;
}

.content-post h3 {
    margin-top: 2em;
    color: #1a1a1a;
}

/* === КНОПКИ === */
.btn, button, input[type="submit"] {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn:hover, button:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, #d62828 0%, #c21818 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    color: #ffffff !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #457b9d 0%, #1d3557 100%);
    box-shadow: 0 4px 15px rgba(69, 123, 157, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1d3557 0%, #0d1b2a 100%);
    box-shadow: 0 6px 20px rgba(69, 123, 157, 0.4);
}

/* === ССЫЛКИ === */
a {
    color: #e63946;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #d62828;
    border-bottom-color: #e63946;
}

.content-post a {
    color: #e63946;
    font-weight: 500;
    border-bottom: 1px solid #e6394640;
}

.content-post a:hover {
    color: #d62828;
    border-bottom-color: #d62828;
}

/* === ТАБЛИЦЫ === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
}

thead th {
    padding: 16px;
    color: #ffffff !important;
    font-weight: 700;
    text-align: left;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: #f8f9fa;
}

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

td {
    padding: 14px 16px;
    color: #2d2d2d;
}

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

/* === СПИСКИ === */
ul, ol {
    margin: 1.5em 0;
    padding-left: 2em;
    color: #2d2d2d;
}

ul li, ol li {
    margin-bottom: 0.8em;
    line-height: 1.7;
    color: #333333;
}

ul {
    list-style: none;
}

ul li::before {
    content: "▸";
    color: #e63946;
    font-weight: bold;
    display: inline-block;
    width: 1.2em;
    margin-left: -1.2em;
}

ol {
    counter-reset: item;
}

ol li {
    counter-increment: item;
    position: relative;
}

ol li::marker {
    color: #e63946;
    font-weight: 700;
}

/* === ФОРМЫ === */
.contact-form, .feedback-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* === ЛАЙВ ЧАТ === */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
}

.chat-button svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

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

.chat-header {
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
    padding: 20px;
    color: #ffffff !important;
}

.chat-header h4 {
    margin: 0;
    color: #ffffff !important;
    font-size: 1.1rem;
}

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

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    background: #ffffff;
}

.chat-input-area input {
    width: calc(100% - 70px);
    margin-right: 10px;
}

/* === КОНТАКТЫ === */
.contact-info {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #2d2d2d;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    fill: #e63946;
}

.contact-item a {
    color: #1a1a1a;
    font-weight: 500;
}

/* === ЛОГОТИП === */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a1a1a !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.25rem; }
    
    .content-post {
        padding: 25px 15px;
        border-radius: 0;
    }
    
    .content-post p {
        font-size: 1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    thead th, td {
        padding: 10px 12px;
    }
    
    .contact-form, .feedback-form {
        padding: 25px 20px;
        margin: 20px 15px;
    }
    
    .chat-window {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 90px;
        height: 450px;
    }
    
    .live-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .btn, button, input[type="submit"] {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .content-post {
        padding: 20px 12px;
    }
    
    ul, ol {
        padding-left: 1.5em;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    thead th, td {
        padding: 8px 10px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

/* === УТИЛИТЫ === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

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

/* === BLOCKQUOTE === */
blockquote {
    margin: 2em 0;
    padding: 20px 30px;
    border-left: 4px solid #e63946;
    background: #f8f9fa;
    font-style: italic;
    color: #2d2d2d;
}

blockquote p {
    margin: 0;
}

/* === CODE === */
code {
    background: #f1f3f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e63946;
    font-size: 0.9em;
}

pre {
    background: #1a1a1a;
    color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
}

pre code {
    background: none;
    color: #f8f9fa;
    padding: 0;
}
