/*
Theme Name: Rotor IT Theme
Theme URI: https://rotor-it.com
Author: Rotor IT
Description: Корпоративная тема на Bootstrap 5
Version: 1.0
*/

/* ... НИЖЕ ВСТАВЛЯЙТЕ ВЕСЬ ВАШ CSS КОД ... */
/* =========================================
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ========================================= */
:root {
    --primary-color: #1aa3e0; /* Основной голубой */
    --primary-dark: #158bc0;  /* Темно-голубой для ховера */
    --text-dark: #111111;
    --text-gray: #6c757d;
    --bg-light-blue: #f4f9fc;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    transition: 0.2s;
}

/* =========================================
   2. КОМПОНЕНТЫ (Кнопки, Заголовки)
   ========================================= */

/* Кнопки */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 24px;
    font-weight: 500;
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 24px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Секции */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0b1c3c;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 50px;
}

/* Теги технологий (для web-dev) */
.tech-tag {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 15px;
    margin: 0 5px 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

/* =========================================
   3. НАВИГАЦИЯ (МЕНЮ)
   ========================================= */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    font-size: 0.95rem;
    margin: 0 10px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Выпадающее меню при наведении (Desktop) */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-light-blue);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* =========================================
   4. ШАПКИ СТРАНИЦ (HERO и HEADER)
   ========================================= */

/* Главная страница (Hero) */
.hero-section {
    background-color: var(--bg-light-blue);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0b1c3c;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Внутренние страницы (Header) */
.page-header {
    background-color: var(--bg-light-blue);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-weight: 700;
    color: #0b1c3c;
    margin-bottom: 0;
    font-size: 2rem;
}

/* Контентный текст на внутренних страницах */
.content-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}
.content-text h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.4rem;
    color: #0b1c3c;
}

/* =========================================
   5. КАРТОЧКИ И БЛОКИ (УНИВЕРСАЛЬНЫЕ)
   ========================================= */

/* Базовая карточка (используется на главной) */
.card-custom {
    border: 1px solid #eef2f5;
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: #e8f6fc;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.link-arrow {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
}

.link-arrow:hover {
    text-decoration: underline;
}

.link-arrow i {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Карточки на странице Услуг */
.service-category-card {
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: 0.3s;
}

.service-category-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.cat-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light-blue);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.cat-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #0b1c3c;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 12px;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 8px;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list a {
    color: #444;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.service-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.service-list a::after {
    content: '\f054'; /* FontAwesome arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Карточки преимуществ (используются в VPS, Labeling, Web) */
.benefit-card, .web-card, .service-card, .benefit-item {
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 8px;
    padding: 25px; /* Усредненное значение */
    height: 100%;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* Специфика для Web-card (полоска при наведении) */
.web-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: 0.3s;
}
.web-card:hover::before { opacity: 1; }

.benefit-card:hover, .web-card:hover, .service-card:hover, .benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.benefit-icon, .web-icon, .service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    /* Для service-icon специфичный стиль */
    width: 50px; 
    height: 50px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: start;
}

/* У service-icon был фон, вернем его через селектор */
.service-icon {
    background: var(--bg-light-blue);
    border-radius: 8px;
    justify-content: center;
    font-size: 1.2rem;
}
.benefit-item .benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light-blue);
    border-radius: 50%;
    justify-content: center;
    font-size: 1.5rem;
}

.benefit-title, .web-title, .service-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.benefit-desc, .web-desc, .service-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
}


/* =========================================
   6. СПЕЦИФИЧНЫЕ БЛОКИ
   ========================================= */

/* CTA Секция (Синяя полоса) */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    margin-top: 20px;
}

.cta-btn:hover {
    background-color: #f8f9fa;
    color: var(--primary-dark);
}

/* CTA Box (на странице услуг) */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    margin-top: 60px;
}

/* Блок "Цены по запросу" (VPS) */
.price-request-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
    border: 1px dashed #adb5bd;
}

.param-badge {
    display: inline-block;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Таймлайн (Инфраструктура) */
.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    padding: 20px;
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    transition: 0.3s;
}

.step-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.step-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--bg-light-blue);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.step-arrow {
    text-align: center;
    color: #dee2e6;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.step-arrow:last-child { display: none; }

/* Системы (Маркировка) */
.systems-box {
    background-color: #fff;
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.systems-list { list-style: none; padding: 0; margin: 0; }
.systems-list li { margin-bottom: 10px; display: flex; align-items: flex-start; }
.systems-list i { color: var(--primary-color); margin-right: 12px; margin-top: 5px; }


/* Консультационный блок (Большая карточка с картинкой) */
.consultation-box {
    background-color: #fff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-top: 60px;
}

.consultation-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.contact-large {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-large i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Блок сравнения (Техподдержка) */
.comparison-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin: 60px 0;
    border-radius: 12px;
}
.check-list { list-style: none; padding: 0; }
.check-list li { margin-bottom: 12px; display: flex; align-items: start; }
.check-list i { color: #2ecc71; margin-right: 12px; margin-top: 5px; }

/* Страница Контакты */
.contact-card {
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: 0.3s;
}
.contact-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}
.contact-icon-large {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}
.contact-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0b1c3c;
}
.contact-value {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}
.contact-value a { color: var(--text-dark); }
.contact-value a:hover { color: var(--primary-color); }

.map-container {
    width: 100%;
    height: 450px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    margin-bottom: 50px;
}

.legal-section {
    padding: 40px 0;
    background-color: #fff;
    border-top: 1px solid #eef2f5;
}
.legal-title {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #0b1c3c;
}
.legal-list {
    list-style: none;
    padding: 0;
    color: var(--text-gray);
}
.legal-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eef2f5;
    padding-bottom: 5px;
}
.legal-list li span:first-child { font-weight: 500; color: var(--text-dark); }


/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background-color: #f8f9fa;
    padding-top: 60px;
    padding-bottom: 30px;
    font-size: 0.9rem;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo span {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.footer-col h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-dark);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

.copyright {
    border-top: 1px solid #dee2e6;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* =========================================
   8. АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .page-title {
        font-size: 1.6rem;
    }
    .card-custom, .benefit-card, .web-card {
        margin-bottom: 20px;
    }
    .consultation-box {
        padding: 20px;
    }
}
/* =========================================
   9. ВСПЛЫВАЮЩЕЕ ОКНО (152-ФЗ)
   ========================================= */
#privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(33, 37, 41, 0.95); /* Темный фон */
    color: white;
    padding: 20px;
    z-index: 99999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    animation: slideUp 0.5s ease-out;
    border-top: 2px solid var(--primary-color);
}

.privacy-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.privacy-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.privacy-buttons {
    display: flex;
    gap: 10px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (max-width: 768px) {
    .privacy-content {
        flex-direction: column;
        text-align: center;
    }
    .privacy-buttons {
        width: 100%;
        justify-content: center;
    }
}