html, body { height: 100%; margin: 0; padding: 0; }
body { display: flex; flex-direction: column; }

/* Общий контейнер */
.main-container { flex: 1 0 auto; max-width: 1100px; font-family: Verdana, Geneva, sans-serif; color: #000; font-size: 16px; line-height: 1.4; padding: 10px 5px 10px 5px; margin: 0 auto; width: 100%; box-sizing: border-box; text-align: justify; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; }

/* Лого */
.logo-wrapper { display: flex; justify-content: center; padding: 5px 10px 0px 10px; box-sizing: border-box; }
.main-logo { max-width: 100%; height: auto; display: block; }

/* Статус ремонта */
.repair-status-box { margin: 5px 0px 20px; padding: 15px; background-color: #eee; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); font-family: Verdana, Geneva, sans-serif; color: #303030; }
.repair-status-container { display: flex; align-items: center; justify-content: center; gap: 25px; flex-wrap: wrap; }
.repair-status-box h2 { margin: 0; font-size: 18px; font-weight: bold; white-space: nowrap; color: #303030; }
.repair-status-form { display: flex; gap: 12px; align-items: center; }
.repair-status-form input { padding: 12px 15px; border: 1px solid #bbb; border-radius: 6px; font-size: 15px; width: 220px; outline: none; }
.repair-status-form button { padding: 12px 24px; background-color: #303030; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: bold; transition: background-color 0.2s; }
.repair-status-form button:hover { background-color: #454545; }

/* Карусель брендов */
.brand-slider { position: relative; width: 100%; overflow: hidden; background: #fff; padding: 20px 0; margin-top: 30px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.brand-slider::before, .brand-slider::after { content: ""; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; pointer-events: none; }
.brand-slider::before { left: 0; background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); }
.brand-slider::after { right: 0; background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); }
.brand-track { display: flex; width: max-content; animation: scroll 90s linear infinite; }
.brand-item { width: 200px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin: 0 25px; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.brand-item:hover { filter: grayscale(0%); opacity: 1; }
.brand-item img { max-width: 100%; height: auto; max-height: 50px; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); }}
.brand-slider:hover .brand-track {animation-play-state: paused; }

/* Общий контейнер: заголовок | линия | контент */
.content { display: flex; gap: 30px; align-items: stretch; max-width: 1200px; margin: 40px auto; padding: 0 20px; font-family: Verdana, sans-serif; }
.content a { color: blue; text-decoration: none; transition: all 0.3s ease; }
.content a:hover { text-decoration: underline; color: #0055ff; }
.content a:active { color: red; }
.content a:visited { color: purple; }
.picture { display: flex; justify-content: center; align-items: center; padding: 10px; }
.picture img { max-width: 100%; height: auto; display: block; }
  
/* Левая колонка */
.left-sidebar { width: 160px; text-align: right; flex-shrink: 0; padding-top: 10px; }
.leftside-title { margin: 0 0 15px 0; font-family: Arimo, Verdana, sans-serif; font-size: 30px; text-align: right; color: #303030; line-height: 1.2; }

/* Тонкая вертикальная линия */
.vertical-divider { width: 1px; background-color: #303030; flex-shrink: 0; }

/* Правая сетка Новости (2 колонки) */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; flex-grow: 1; }

/* Стили карточек */
.news-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.news-image { width: 100%; height: 180px; background-size: cover; background-position: center; background-color: #f0f0f0; }
.news-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.news-title { font-size: 17px; text-align: left; font-weight: bold; color: #333; margin-bottom: 10px; }
.news-excerpt { font-size: 14px; color: #666; line-height: 1.4; margin-bottom: 15px; }

/* Правая сетка контент */
.right-sidebar { width: 100%; }
.contact-info { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; align-items: baseline; margin-bottom: 20px; }
.repair-info { margin: 20px auto; padding: 20px; max-width: 600px; }
.info-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #eee; }
.info-row:last-child { border-bottom: none; }
.label { color: #666; font-weight: bold; flex-shrink: 0; padding-right: 10px; }
.value { text-align: right; word-wrap: break-word; }
details summary { cursor: pointer; color: #007bff; font-weight: bold; }
.footer-note { text-align: center; margin-top: 20px; }
.footer-note a { color: inherit; text-decoration: none; font-weight: bold; }

/* Мобильная адаптация */
@media (max-width: 900px) {
.logo-wrapper { padding: 5px 10px 0px 10px; }
.main-container { padding-left: 20px; padding-right: 20px; text-align: left; }
.repair-status-container { flex-direction: column;  gap: 15px; }
.repair-status-form { width: 100%; flex-direction: column; }
.repair-status-form input, .repair-status-form button { width: 100%; box-sizing: border-box; }
.content { flex-direction: column; }
.left-sidebar { width: 100%; }
.leftside-title { margin: 5px 0 0 0; text-align: left; }
.vertical-divider { width: 100%; height: 1px; }
.map-container iframe { width: 100% !important; height: 400px !important;}
.contact-info { grid-template-columns: 1fr; gap: 5px; }
.contact-info b { margin-top: 10px; }
.contact-info span { padding-left: 20px;}
.news-grid { grid-template-columns: 1fr; gap: 20px; }
.news-image { height: 200px; }
.news-body { padding: 15px; }
.news-title { font-size: 16px; }
.news-card:hover { transform: none; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.info-row { flex-direction: column; align-items: flex-start; text-align: left; }
.value { text-align: left; max-width: 100%; margin-top: 5px; }
.repair-info { margin: 10px; }
}