/* --- ОСНОВНЫЕ ПЕРЕМЕННЫЕ И ШРИФТЫ --- */
:root {
    --bg: #0a0a0a;
    --accent-rental: #ff4500; /* Оранжевый КЛЫК */
    --accent-design: #007aff; /* Синий Дизайн */
    --text: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --card: #141414;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/GILROY-REGULAR.TTF') format('truetype');
    font-weight: 400; font-style: normal;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/GILROY-BOLD.TTF') format('truetype');
    font-weight: 700; font-style: normal;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/GILROY-BLACK.TTF') format('truetype');
    font-weight: 900; font-style: normal;
}

/* --- ОБЩИЕ СТИЛИ --- */
* { box-sizing: border-box; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Gilroy', sans-serif;
    overflow-x: hidden;
}

.grid-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px; z-index: -2; opacity: 0.2;
}

.section { padding: 60px 5%; border-top: 1px solid var(--border); }
.section-title { margin-bottom: 50px; }
.section-title h2 { font-size: 32px; text-transform: uppercase; margin: 0; font-weight: 900; }
.section-title span { color: var(--accent-design); font-family: 'Roboto Mono', monospace; font-size: 14px; }

/* --- ШАПКА И ЛОГО --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(10px); z-index: 100;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 45px; width: auto; transition: transform var(--transition); }
.logo:hover .logo-img { transform: scale(1.05); }

nav a { margin-left: 20px; text-decoration: none; color: #fff; font-size: 14px; transition: var(--transition); }

/* --- КАТАЛОГ АРЕНДЫ (НОВОЕ) --- */

/* Плашка категорий */
.category-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.category-link {
    text-decoration: none;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    white-space: nowrap;
    transition: var(--transition);
}

.category-link:hover {
    border-color: var(--accent-rental);
    color: var(--accent-rental);
}

/* Сетка товаров (3 колонки) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    position: relative !important; 
    background: var(--card);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--accent-rental);
    transform: translateY(-5px);
}

.product-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1a1a1a;
    border-bottom: 1px solid var(--border);
}

.product-img img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.8; transition: var(--transition);
}

.product-card:hover .product-img img { opacity: 1; transform: scale(1.05); }

.product-info { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.product-cat { 
    color: var(--accent-rental); 
    font-family: 'Roboto Mono', monospace; 
    font-size: 10px; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    display: block;
}

.product-info h3 { margin: 0; font-size: 22px; text-transform: uppercase; font-weight: 900; }
.product-info p { opacity: 0.6; font-size: 14px; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }

.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-footer .price { 
    font-family: 'Roboto Mono', monospace; 
    font-weight: 900; 
    color: var(--text); 
    font-size: 20px; 
}
.product-footer .price span { opacity: 0.3; font-size: 12px; }

/* --- СТАРЫЕ БЛОКИ (СОХРАНЕНО) --- */

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; min-height: 90vh; align-items: center; padding: 0 5%; position: relative; }
.hero-text { z-index: 10; position: relative; }
.hero-text h1 { font-size: clamp(40px, 8vw, 90px); font-weight: 900; line-height: 0.9; margin: 0; }
.hero-text .subtitle { color: var(--accent-design); font-family: 'Roboto Mono', monospace; display: block; margin-bottom: 10px; }
.hero-img { position: absolute; bottom: 0; right: 5%; height: 100%; z-index: 5; display: flex; align-items: flex-end; }
.hero-img img { height: 90%; max-width: 100%; object-fit: contain; }

/* --- НОВЫЕ КНОПКИ В ГЕРОЙ-БЛОКЕ --- */
.hero-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 10; /* Чтобы картинка не перекрывала клики */
}

.action-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 25px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Затемненная фоновая иконка для визуала */
.action-card .bg-icon {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 100px;
    opacity: 0.03;
    transition: var(--transition);
    color: #fff;
    z-index: 0;
}

.action-card:hover .bg-icon {
    opacity: 0.08;
    color: var(--accent-rental);
    transform: scale(1.1);
}

.ac-icon {
    font-size: 24px;
    color: var(--accent-rental);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.ac-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ac-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 900;
}

.ac-content p {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.7;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.ac-cta {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-rental);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.action-card:hover {
    border-color: var(--accent-rental);
    transform: translateY(-5px);
    background: rgba(255, 69, 0, 0.03);
}

/* Корректировка адаптивности для мобильных */
@media (max-width: 768px) {
    .hero-actions { 
        grid-template-columns: 1fr; 
    }
}

/* Кнопки */
.btn-box { display: flex; gap: 15px; margin-top: 40px; flex-wrap: wrap; }
.btn { padding: 18px 35px; text-decoration: none; font-weight: 900; text-transform: uppercase; font-size: 14px; transition: var(--transition); border: 1px solid var(--border); }
.btn-rental { background: var(--accent-rental); border: none; color: #fff; }
.btn-design { background: #fff; color: #000; }
.btn-rental:hover { opacity: 0.9; transform: translateY(-2px); }

/* Плашка Full Service */
.full-service-block {
    background: var(--accent-rental); color: #fff; padding: 40px; margin-top: 20px; border: 1px solid var(--accent-rental);
}
.fs-content { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.fs-text h3 { margin: 0 0 10px 0; font-size: 24px; text-transform: uppercase; font-weight: 900; }
.fs-price { text-align: right; display: flex; flex-direction: column; gap: 15px; }
.btn-fs { background: #fff; color: #000; padding: 12px 25px; text-decoration: none; font-weight: 900; text-transform: uppercase; transition: var(--transition); }
.btn-fs:hover { background: #000; color: #fff; }

/* Резюме и Приложения */
.resume-grid, .apps-grid { display: grid; gap: 20px; }
.resume-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.apps-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }

.resume-card, .app-item { background: var(--card); border: 1px solid var(--border); transition: var(--transition); }
.resume-card { padding: 30px; }
.app-item { padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.app-item img { width: 40px; height: 40px; margin-bottom: 12px; filter: grayscale(1) brightness(2); object-fit: contain; }
.app-item:hover, .resume-card:hover { border-color: var(--accent-design); transform: translateY(-5px); }
.app-item:hover img { filter: grayscale(0) brightness(1); }

/* --- ГАЛЕРЕЯ МЕРОПРИЯТИЙ --- */
.rental-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gallery-item { aspect-ratio: 3 / 2; background: #222; overflow: hidden; border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; opacity: 0.8; }
.gallery-item:hover img { transform: scale(1.1); opacity: 1; }

/* --- ГАРАНТИРОВАННОЕ ВЫРАВНИВАНИЕ В РЯД --- */
.contact-box { 
    display: grid !important; 
    grid-template-columns: repeat(5, 1fr) !important; 
    gap: 15px !important; 
    margin-top: 30px !important; 
    width: 100% !important; 
    align-items: stretch !important; 
}

.contact-link { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    background: var(--card) !important; 
    padding: 25px 10px !important; 
    border: 1px solid var(--border) !important; 
    text-decoration: none !important; 
    color: #fff !important; 
    transition: var(--transition) !important; 
    text-align: center !important; 
    min-height: 150px !important; 
}

.contact-link:hover { 
    border-color: var(--accent-design) !important; 
    background: rgba(0, 122, 255, 0.05) !important; 
    transform: translateY(-5px) !important; 
}

.contact-icon { 
    width: 30px !important; 
    height: 30px !important; 
    margin-bottom: 12px !important; 
    filter: brightness(0) invert(1) !important; 
    opacity: 0.7 !important; 
    transition: 0.3s !important; 
}

.contact-link strong { 
    display: block !important; 
    color: var(--accent-design) !important; 
    font-size: 10px !important; 
    font-family: 'Roboto Mono', monospace !important; 
    text-transform: uppercase !important; 
    margin-bottom: 5px !important; 
}

.contact-link span { 
    font-weight: 700 !important; 
    font-size: 13px !important; 
    word-break: break-all !important; 
}

/* --- ОБЩАЯ АДАПТИВНОСТЬ (Упорядочено) --- */

/* Планшеты */
@media (max-width: 1024px) { 
    .contact-box { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; } /* Исправлено: убрал лишнюю x */
}[cite: 6]

@media (max-width: 900px) { 
    .rental-gallery { grid-template-columns: repeat(2, 1fr); } 
}[cite: 6]

/* Мобильные (горизонтальные) */
@media (max-width: 768px) { 
    .contact-box { grid-template-columns: repeat(2, 1fr) !important; } /* Исправлено: убрал лишнюю x */
    .rental-gallery { grid-template-columns: 1fr; }[cite: 6]
    .fs-content { flex-direction: column; text-align: center; }[cite: 6]
    .fs-price { text-align: center; width: 100%; }[cite: 6]
    .fs-text p { max-width: 100%; }[cite: 6]
	.btn-box {justify-content: center;}
}

/* Мобильные (вертикальные) */
@media (max-width: 480px) { 
    .contact-box { grid-template-columns: 1fr !important; } /* Исправлено: убрал лишнюю x */
    .contact-link { padding: 20px; min-height: auto; } 
	.btn-box {justify-content: center;}
}
/* --- АДАПТИВ ПОД МОБИЛЬНЫЕ (МЕДИА-ЗАПРОСЫ) --- */
@media (max-width: 900px) { .rental-gallery { grid-template-columns: repeat(2, 1fr); } }[cite: 6]
@media (max-width: 768px) { .rental-gallery { grid-template-columns: 1fr; }[cite: 6] .fs-content { flex-direction: column; text-align: center; }[cite: 6] .fs-price { text-align: center; width: 100%; }[cite: 6] .fs-text p { max-width: 100%; }[cite: 6] }

/* Благодарности (Сетка) */
.gratitude-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-flow: dense; gap: 20px; }
.letter { background: #222; border: 1px solid var(--border); overflow: hidden; transition: var(--transition); cursor: zoom-in; height: 300px; }
.letter.horizontal { grid-column: span 2; }
.letter img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.8; transition: var(--transition); }
.letter:hover img { filter: grayscale(0); opacity: 1; }

/* --- ФУТЕР --- */
footer { padding: 60px 5% 40px; border-top: 1px solid var(--border); background: #050505; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; }
.footer-status { font-family: 'Roboto Mono', monospace; font-size: 12px; color: var(--accent-rental); text-transform: uppercase; }
.footer-legal { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; opacity: 0.4; font-size: 11px; }

/* --- АДАПТАЦИЯ --- */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 8vh; }
    .hero-img { position: relative; height: 300px; width: 100%; justify-content: center; opacity: 0.5; }
    .hero-text h1 { font-size: 40px; }
    .section { padding: 40px 5%; }
    .products-grid { grid-template-columns: 1fr; }
    .gratitude-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .letter { height: 200px; }
    .fs-content { flex-direction: column; text-align: center; }
    .fs-price { text-align: center; width: 100%; }
}

/* --- ПЛАШКА СОГЛАСИЯ COOKIE --- */
.cookie-notice {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--card); /* Темный фон из твоих настроек */
    border: 1px solid var(--border); /* Стандартная граница проекта */
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: block; /* Скрипт изменит на none после клика */
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

/* Кнопка "Принять" */
.btn-cookie {
    background: transparent;
    color: var(--accent-design); /* Твой акцентный цвет */
    border: 1px solid var(--accent-design);
    padding: 8px 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-cookie:hover {
    background: var(--accent-design);
    color: #000;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-cookie {
        width: 100%;
    }
}

/* Стили для телефона в шапке */
.nav-phone {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.nav-phone:hover {
    color: var(--accent-rental);
}

/* Адаптив для мобилок */
@media (max-width: 480px) {
    .nav-phone {
        display: none; /* Скрываем номер на очень маленьких экранах, оставляя кнопку */
    }
}

/* Контейнер, в котором VK создает iframe */
#vk_community_messages {
    position: fixed !important;
    /* Поднимаем над кнопкой. 
       95px (высота кнопки от низа) + 60px (высота самой кнопки) + 10px (зазор) */
    bottom: 170px !important; 
    right: 0px !important; /* Твой стандартный отступ от края */
    z-index: 9999;
}

/* Принудительно правим сам iframe, который генерирует VK */
#vk_community_messages iframe {
    position: fixed !important;
    bottom: 165px !important; 
    right: 0px !important; 
    margin: 0 !important; /* Убираем дефолтные отступы VK */
	border-radius: 16px;
}

.custom-vk-btn {
    position: fixed;
    bottom: 100px; /* Над корзиной */
    right: 30px;
    background: var(--accent-rental); /* Твой оранжево-красный */
    height: 60px;
    min-width: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0 20px;
    overflow: hidden;
}

.custom-vk-btn:hover {
    transform: scale(1.1) translateY(-5px);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(255, 69, 0, 0.5);
}

.custom-vk-btn i {
    font-size: 24px;
    color: #fff !important;
}

/* Скрываем текст на мобилках, оставляя только круг с иконкой */
@media (max-width: 768px) {
    .vk-btn-text { display: none; }
    .custom-vk-btn {
        padding: 15px;
        bottom: 90px;
    }
}

/* Стили для стандартов работы */
    .standards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }
    .standard-item {
        background: var(--card);
        border: 1px solid var(--border);
        padding: 30px;
    }
    .std-num {
        font-family: 'Roboto Mono', monospace;
        font-size: 36px;
        font-weight: 900;
        color: var(--accent-rental);
        margin-bottom: 15px;
        opacity: 0.8;
    }
    .standard-item h4 {
        font-size: 18px;
        text-transform: uppercase;
        margin: 0 0 10px 0;
        font-weight: 900;
    }
    .standard-item p {
        font-size: 13px;
        line-height: 1.6;
        opacity: 0.6;
        margin: 0;
    }

    /* Стили для схемы работы (Таймлайн) */
    .workflow-line {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .step-card {
        background: transparent;
        border-left: 2px solid var(--border);
        padding-left: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        transition: var(--transition);
    }
    .step-card:hover {
        border-left-color: var(--accent-rental);
    }
    .step-badge {
        font-family: 'Roboto Mono', monospace;
        font-size: 11px;
        text-transform: uppercase;
        color: var(--accent-rental);
        margin-bottom: 8px;
        font-weight: bold;
    }
    .step-card h5 {
        font-size: 16px;
        text-transform: uppercase;
        margin: 0 0 10px 0;
        font-weight: 900;
    }
    .step-card p {
        font-size: 13px;
        line-height: 1.5;
        opacity: 0.6;
        margin: 0;
    }

    /* Стили для FAQ */
    .faq-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .faq-item h5 {
        font-size: 16px;
        text-transform: uppercase;
        margin: 0 0 12px 0;
        font-weight: 900;
        letter-spacing: 0.5px;
    }
    .faq-item h5::before {
        content: '? ';
        color: var(--accent-rental);
        font-family: 'Roboto Mono', monospace;
    }
    .faq-item p {
        font-size: 14px;
        line-height: 1.6;
        opacity: 0.6;
        margin: 0;
    }

    /* Адаптивность для новых блоков */
    @media (max-width: 992px) {
        .workflow-line {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }
        .faq-grid {
            grid-template-columns: 1fr;
            gap: 25px;
        }
    }
    @media (max-width: 576px) {
        .workflow-line {
            grid-template-columns: 1fr;
        }
    }