/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Кнопки */
.btn-orange {
    display: inline-block;
    background: #ff7a00;
    color: #000;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    text-align: center;
}
.btn-orange:hover {
    background: #ff9500;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,122,0,0.3);
}
.btn-outline {
    display: inline-block;
    border: 2px solid #ff7a00;
    color: #ff7a00;
    padding: 13px 38px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: #ff7a00;
    color: #000;
}

/* Шапка */
.header {
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff7a00;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ff7a00;
    text-decoration: none;
    margin-right: 30px;
    white-space: nowrap;
}
.nav {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
}
.nav a:hover {
    color: #ff7a00;
}
.phone {
    font-size: 1.3rem;
    white-space: nowrap;
}
.phone a {
    color: #ff7a00;
    font-weight: 600;
}
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ff7a00;
    font-size: 2rem;
    cursor: pointer;
}
.mobile-menu {
    display: none;
    background: #1a1a1a;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #333;
    width: 100%;
}
.mobile-menu.show {
    display: block;
}
.mobile-menu a {
    display: block;
    padding: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid #333;
    color: #fff;
}
.mobile-menu a:last-child {
    border-bottom: none;
}

/* Hero */
.hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.5rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 40px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Блоки */
.section {
    padding: 80px 0;
    width: 100%;
}
.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ff7a00;
    text-align: center;
    margin-bottom: 60px;
}
.bg-dark {
    background: #0a0a0a;
}
.bg-darker {
    background: #050505;
}

/* Сетка */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(255,122,0,0.2);
}
.card-icon {
    font-size: 4rem;
    color: #ff7a00;
    text-align: center;
    padding-top: 30px;
}
.card h3 {
    font-size: 1.8rem;
    margin: 20px;
    text-align: center;
}
.card p {
    padding: 0 20px 30px;
    color: #aaa;
    text-align: center;
}

/* Карточка товара */
.product-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}
.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.product-price {
    font-size: 2rem;
    color: #ff7a00;
    font-weight: 700;
    margin: 15px 0;
}
.product-btn {
    width: 100%;
    background: #333;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: auto; /* прижимает кнопку к низу */
}
.product-btn:hover {
    background: #ff7a00;
    color: #000;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #1a1a1a;
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 30px;
    border: 1px solid #444;
    padding: 30px;
    position: relative;
}
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #aaa;
    cursor: pointer;
}
.close:hover {
    color: #fff;
}
.modal-flex {
    display: flex;
    gap: 40px;
}
.modal-left {
    flex: 1;
}
.modal-left img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background-color: #2a2a2a;
    border-radius: 20px;
    margin-bottom: 20px;
}
.modal-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    white-space: pre-line;
}
.modal-right {
    flex: 1;
}
.modal-right h2 {
    font-size: 2rem;
    color: #ff7a00;
    margin-bottom: 15px;
    line-height: 1.3;
    word-break: break-word;
}
.modal-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 20px 0;
}
.calculator {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 20px;
    margin: 30px 0;
}
.calculator input {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    margin: 10px 0;
}
.calculator .total {
    font-size: 2rem;
    text-align: center;
}
.total span {
    color: #ff7a00;
    font-weight: 700;
}
.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #333;
    border: 1px solid #555;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}
.modal-form button {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
}

/* Формы на страницах */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 15px;
    color: #fff;
    font-size: 1.1rem;
}
.form-group textarea {
    resize: vertical;
}
.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
}

/* Контакты и карта */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info {
    font-size: 1.3rem;
}
.contact-info i {
    color: #ff7a00;
    margin-right: 15px;
}
.contact-info a {
    font-weight: 600;
}
.map {
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}

/* Подвал */
.footer {
    background: #000;
    padding: 50px 0;
    text-align: center;
    color: #666;
    width: 100%;
}
.footer a {
    color: #ff7a00;
    font-weight: 600;
}
.footer i {
    margin-right: 8px;
}
.footer-phone {
    font-size: 2rem;
    margin: 20px 0;
}
.footer-phone a {
    font-weight: 600;
}

/* Кнопка звонка на мобильных */
.fixed-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff7a00;
    color: #000;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(255,122,0,0.5);
    z-index: 99;
    transition: transform 0.3s;
}
.fixed-call:hover {
    transform: scale(1.1);
}

/* Блок "Как мы работаем" */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.step-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.step-icon {
    font-size: 3rem;
    color: #ff7a00;
    margin-bottom: 15px;
}
.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.step-content p {
    color: #aaa;
}
.content-box {
    font-size: 1.3rem;
    line-height: 1.8;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 20px;
}

/* Категории */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.category-btn {
    padding: 12px 24px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}
.category-btn:hover {
    background: #ff7a00;
    color: #000;
    border-color: #ff7a00;
}
.category-btn.active {
    background: #ff7a00;
    color: #000;
    border-color: #ff7a00;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3rem; }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav, .header .phone { display: none; }
    .menu-btn { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.2rem; }
    .section-title { font-size: 2.2rem; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
    .btn-orange, .btn-outline { padding: 12px 25px; font-size: 1rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-card {
        flex-direction: row;
        text-align: left;
        padding: 15px;
    }
    .step-icon {
        margin-right: 20px;
        margin-bottom: 0;
        font-size: 2.5rem;
    }
    .content-box {
        font-size: 1.1rem;
        padding: 20px;
    }
    .footer-phone {
        font-size: 1.5rem;
    }
    .fixed-call {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    .modal-flex {
        flex-direction: column;
    }
    .modal-left img {
        height: 250px;
    }
    .modal-right h2 {
        font-size: 1.5rem;
    }
    .logo {
        font-size: 1.4rem;
        margin-right: 10px;
    }
    .header .container {
        padding: 10px 15px;
    }
    .category-filters {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        gap: 8px;
    }
    .category-btn {
        white-space: normal;
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    /* Прокрутка описания в модальном окне на мобильных */
    .modal-desc {
        max-height: 150px;
        overflow-y: auto;
        padding-right: 10px;
    }
}/* SEO-ссылки в подвале */
.seo-links {
    margin: 30px 0 20px;
    border-top: 1px solid #333;
    padding-top: 20px;
}
.seo-links h4 {
    color: #ff7a00;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}
.seo-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
    font-size: 0.85rem;
    max-width: 800px;
    margin: 0 auto;
}
.seo-links-grid a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    text-align: center;
}
.seo-links-grid a:hover {
    color: #ff7a00;
}
@media (max-width: 768px) {
    .seo-links-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .seo-links-grid a {
        text-align: left;
        padding-left: 20px;
    }
}
/* ========== АДАПТАЦИЯ АДМИНКИ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
    /* Контейнер админки */
    .container {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Заголовки */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.4rem !important; }

    /* Таблицы – горизонтальная прокрутка */
    .admin-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border: 1px solid #333 !important;
    }
    .admin-table th,
    .admin-table td {
        white-space: nowrap !important;
        padding: 8px !important;
    }

    /* Формы – в один столбец */
    .form-grid {
        display: block !important;
        width: 100% !important;
    }
    .form-grid > * {
        width: 100% !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
    }
    .full-width {
        grid-column: auto !important;
    }

    /* Поля ввода и кнопки */
    input, select, textarea, .btn-orange {
        font-size: 16px !important;
        padding: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .btn-orange {
        margin: 5px 0 !important;
    }

    /* Специально для страницы rentals */
    .form-container {
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .situation-grid {
        display: block !important;
    }
    .situation-card {
        width: 100% !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
    }

    /* Для вкладок (если есть) */
    .tabs {
        flex-wrap: wrap !important;
    }
    .tab-link {
        flex: 1 1 auto !important;
        text-align: center !important;
        padding: 8px !important;
        font-size: 0.9rem !important;
    }

    /* Карточки товаров в списке */
    .product-card {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    /* Убираем лишние отступы */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
    }
}