/* Сброс стилей и основные настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Общие классы */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4102a, #b8091f);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8091f, #a0081b);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #d4102a;
    border: 2px solid #d4102a;
}

.btn-secondary:hover {
    background: #d4102a;
    color: white;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contacts span {
    margin-right: 20px;
    color: #6c757d;
}

.header-social a {
    margin-left: 15px;
    color: #d4102a;
    text-decoration: none;
    font-weight: 500;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo img {
    margin-right: 12px;
}

.logo-text strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #d4102a;
}

.logo-text small {
    display: block;
    font-size: 12px;
    color: #6c757d;
}

/* Навигация */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
    margin: 0 25px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav .active a {
    color: #d4102a;
}

/* Dropdown меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 8px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

.mobile-menu-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: white;
    padding: 60px 30px 30px;
    overflow-y: auto;
}

.mobile-menu nav ul {
    list-style: none;
}

.mobile-menu nav li {
    border-bottom: 1px solid #e9ecef;
}

.mobile-menu nav a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.mobile-contacts {
    margin-top: 30px;
    text-align: center;
}

.mobile-contacts p {
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
}

/* Хлебные крошки */
.breadcrumbs {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.breadcrumbs li {
    font-size: 14px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #6c757d;
}

.breadcrumbs a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #d4102a;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 500;
}

/* Навигация по моделям */
.models-nav {
    background: linear-gradient(135deg, #d4102a, #b8091f);
    padding: 0;
}

.models-nav ul {
    display: flex;
    list-style: none;
    overflow-x: auto;
    padding: 0;
    margin: 0;
}

.models-nav li {
    flex-shrink: 0;
}

.models-nav a {
    display: block;
    padding: 15px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.models-nav a:hover,
.models-nav .active a {
    color: white;
    border-bottom-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
}

/* Основной контент */
.main-content {
    min-height: calc(100vh - 400px);
}

/* Hero секция */
.hero {
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    justify-content: center;
}


.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}


.hero-video {
    text-align: center;
    position: relative;
}

.hero-video video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Секции */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка моделей */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.model-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.model-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.model-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.model-card:hover .model-card-image img {
    transform: scale(1.05);
}

.model-card-content {
    padding: 25px;
}

.model-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.model-card p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

.model-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-price {
    font-size: 18px;
    font-weight: 600;
    color: #d4102a;
}

.model-price small {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    margin-top: 60px;
}

.footer-main {
    padding: 50px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #d4102a;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #d4102a;
}

.contacts-info p {
    margin-bottom: 15px;
    font-size: 14px;
}

.contacts-info strong {
    color: white;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    padding: 8px 12px;
    background: #333;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #d4102a;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #999;
}

.footer-links a {
    margin-left: 20px;
    color: #999;
    text-decoration: none;
}

.footer-links a:hover {
    color: #d4102a;
}

/* Быстрые действия */
.quick-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.quick-action {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #d4102a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(212, 16, 42, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.quick-action:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 16, 42, 0.4);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

.modal h3 {
    margin-bottom: 25px;
    color: #333;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4102a;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 15px;
}

.form-note a {
    color: #d4102a;
}

/* Утилитарные классы */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }