/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2a5885;
    --primary-dark: #1e3c6d;
    --secondary-color: #4CAF50;
    --secondary-dark: #3e8e41;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #2e7d32;
    --warning: #f39c12;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
    color: var(--secondary-color);
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.user-greeting i {
    font-size: 20px;
}

.auth-link {
    color: var(--white);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.auth-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-link.register {
    background: var(--secondary-color);
}

.auth-link.register:hover {
    background: var(--secondary-dark);
}

/* Main Navigation */
.main-nav {
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav li:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.main-nav li:hover:after {
    width: 100%;
    left: 0;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.main-nav i {
    font-size: 16px;
}

/* Content Styles */
.main-content {
    flex: 1;
    padding: 30px 0;
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-dark);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    margin-top: auto;
}

.views-count, .comments-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-post {
    color: var(--danger);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.delete-post:hover {
    text-decoration: underline;
}

/* News Page */
.news-page {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.news-page-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.news-page-date {
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-page-content {
    line-height: 1.7;
    margin-bottom: 30px;
}

.news-page-content p {
    margin-bottom: 15px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Video */
.video-container {
    margin: 30px 0;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #000;
    box-shadow: var(--shadow);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Comments */
.comments-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 120px;
    resize: vertical;
    transition: var(--transition);
}

.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 88, 133, 0.2);
}

.comment-form button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form button:hover {
    background: var(--primary-dark);
}

.comments-list {
    margin-top: 20px;
}

.comment {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-dark);
}

.comment-date {
    color: var(--text-light);
}

.delete-comment {
    color: var(--danger);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.delete-comment:hover {
    opacity: 0.8;
}

.comment-content {
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 4px;
    transition: var(--transition);
}

.pagination a:hover {
    background: #f0f0f0;
}

.pagination .active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    position: relative;
}

.alert-success {
    background-color: #dff0d8;
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-error {
    background-color: #f2dede;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* Auth Forms */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 88, 133, 0.2);
}

.btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    width: 100%;
}

.btn:hover {
    background: var(--primary-dark);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light);
}

/* Mobile Styles */
@media (max-width: 992px) {
    .header-top {
        flex-wrap: wrap;
    }
    
    .auth-section {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 24px;
        cursor: pointer;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li:after {
        display: none;
    }
    
    .main-nav a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-page {
        padding: 20px;
    }
    
    .auth-container {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-card, .comment, .auth-container {
    animation: fadeIn 0.5s ease-out;
}

/* Auth Forms */
.auth-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2a5885;
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
}

.auth-form h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #4CAF50;
}

.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.auth-form input:focus {
    border-color: #2a5885;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 88, 133, 0.2);
}

.auth-form button {
    padding: 15px;
    background: #2a5885;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-form button:hover {
    background: #1e3c6d;
    transform: translateY(-2px);
}

.auth-form p {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

.auth-form a {
    color: #2a5885;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.auth-form a:hover {
    color: #1e3c6d;
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
}

.alert.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .auth-form {
        padding: 30px 20px;
        margin: 30px auto;
    }
    
    .auth-form h2 {
        font-size: 24px;
    }
    
    .auth-form input,
    .auth-form button {
        padding: 12px;
    }
}

/* Стили для каталога автосервисов */
.sto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.sto-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sto-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sto-info {
    padding: 15px;
}

.sto-info h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.sto-info h2 a {
    color: #333;
    text-decoration: none;
}

.sto-info h2 a:hover {
    color: #0066cc;
}

.sto-meta {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.sto-meta span {
    display: block;
    margin-bottom: 5px;
}

.sto-discount {
    color: #e74c3c;
    font-weight: bold;
}

.sto-services {
    font-size: 0.9rem;
    color: #555;
}

/* Стили для страницы автосервиса */
.autoservice-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.autoservice-header h1 {
    margin: 0;
}

.autoservice-meta {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

.autoservice-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.autoservice-gallery {
    flex: 1;
    min-width: 300px;
}

.autoservice-info {
    flex: 1;
    min-width: 300px;
}

.gallery-item {
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    border-radius: 5px;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    margin-top: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.services-list li {
    padding: 5px 0;
}

.services-list a {
    color: #0066cc;
    text-decoration: none;
}

.services-list a:hover {
    text-decoration: underline;
}

.brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand {
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.description {
    line-height: 1.6;
}

.discount {
    color: #27ae60;
    font-weight: bold;
}

/* Стили для формы добавления */
.sto-form .form-group {
    margin-bottom: 20px;
}

.sto-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.sto-form input[type="text"],
.sto-form input[type="email"],
.sto-form input[type="tel"],
.sto-form input[type="file"],
.sto-form select,
.sto-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.sto-form textarea {
    min-height: 100px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input {
    margin-right: 8px;
}

/* Админские стили */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 5
}

/* Стили для формы добавления автосервиса */
.sto-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.sto-form .form-group {
    margin-bottom: 25px;
}

.sto-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.sto-form input[type="text"],
.sto-form input[type="email"],
.sto-form input[type="tel"],
.sto-form select,
.sto-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.sto-form input[type="text"]:focus,
.sto-form input[type="email"]:focus,
.sto-form input[type="tel"]:focus,
.sto-form select:focus,
.sto-form textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    outline: none;
    background-color: #fff;
}

.sto-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Стили для загрузки файлов */
.file-upload {
    position: relative;
    margin-bottom: 20px;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s;
    background-color: #f9f9f9;
    color: #666;
}

.file-upload-label:hover {
    border-color: #4a90e2;
    background-color: #f0f7ff;
}

.file-upload-label i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    color: #4a90e2;
}

/* Галерея превью */
.thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.thumbnail {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-thumbnail {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.remove-thumbnail:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Чекбоксы услуг и марок */
.checkbox-section {
    margin-bottom: 30px;
}

.checkbox-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: white;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-item:hover {
    background: #f0f7ff;
}

.checkbox-item input {
    margin-right: 10px;
}

/* Кнопка отправки */
.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .sto-form {
        padding: 15px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Стили для списка СТО - плитка */
.sto-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.sto-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.sto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sto-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.sto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sto-card:hover .sto-image img {
    transform: scale(1.05);
}

.sto-discount-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sto-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sto-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.sto-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.sto-title a:hover {
    color: var(--secondary-color);
}

.sto-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.sto-meta-item {
    display: flex;
    align-items: center;
}

.sto-meta-item i {
    margin-right: 5px;
    color: var(--primary-color);
    font-size: 14px;
}

.sto-services {
    margin-top: 10px;
}

.sto-services-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.sto-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sto-service-tag {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}

.sto-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.sto-views {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.sto-views i {
    margin-right: 5px;
    color: var(--primary-color);
}

.sto-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sto-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sto-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .sto-list {
        grid-template-columns: 1fr;
    }
    
    .sto-image {
        height: 180px;
    }
}

/* Дополнения к существующим стилям */
.no-sto {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.no-sto p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.no-sto a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.no-sto a:hover {
    text-decoration: underline;
}

/* Стили для страницы отдельного автосервиса */
.sto-page {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.sto-page-header {
    margin-bottom: 25px;
}

.sto-page-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.sto-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-light);
    font-size: 14px;
}

.sto-page-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sto-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.sto-gallery-item {
    border-radius: 6px;
    overflow: hidden;
    height: 180px;
}

.sto-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sto-gallery-item:hover img {
    transform: scale(1.05);
}

.sto-section {
    margin-bottom: 25px;
}

.sto-section-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.sto-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.sto-service-card {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: var(--transition);
}

.sto-service-card:hover {
    background: #f0f7ff;
    transform: translateY(-3px);
}

.sto-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sto-brand {
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
}

/* Контактная информация */
.sto-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sto-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sto-contact-icon {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 3px;
}

.sto-contact-text {
    flex: 1;
}

.sto-contact-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.sto-contact-value {
    font-weight: 500;
}

.sto-map {
    height: 300px;
    background: #eee;
    border-radius: 8px;
    margin-top: 30px;
    overflow: hidden;
}

/* Основные стили для главной страницы */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.home-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #4285f4;
}

.section-footer {
    text-align: center;
    margin-top: 30px;
}

.btn-more {
    display: inline-block;
    padding: 10px 25px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-more:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Стили для блока новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-image {
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #4285f4;
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.views-count svg {
    fill: #888;
}

/* Стили для блока автосервисов */
.sto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.sto-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.sto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.sto-photo {
    height: 160px;
    overflow: hidden;
}

.sto-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sto-card:hover .sto-photo img {
    transform: scale(1.05);
}

.sto-info {
    padding: 20px;
}

.sto-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.sto-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sto-info h3 a:hover {
    color: #4285f4;
}

.sto-meta {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.sto-meta span {
    display: block;
    margin-bottom: 5px;
}

.sto-category {
    color: #4285f4;
    font-weight: 500;
}

/* Стили для блока услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.service-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card h3 a:hover {
    color: #4285f4;
}

.service-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.service-meta {
    font-size: 13px;
    color: #888;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-grid, .sto-grid, .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .news-grid, .sto-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .home-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
}

.services-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.services-filters {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.reset-filters {
    color: #dc3545;
    text-decoration: none;
    align-self: center;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-meta {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 0.9em;
    color: #666;
}

.service-description {
    margin: 15px 0;
    line-height: 1.5;
}

.btn-details {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
}

.no-results {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
}

.btn-back {
    display: inline-block;
    margin-top: 15px;
    background: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
}