/*
Theme Name: RGP Tech
Theme URI: https://rgp-tech.ru
Author: Your Name
Author URI: https://your-site.com
Description: Кастомная тема для сайта rgp-tech.ru на Bootstrap 5.
Version: 1.0
License: GPL v2 or later
Text Domain: rgp
*/

:root {
    --primary-color: #0054a6;
    --secondary-color: #e31e24;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
}
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    padding-top: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
/* Header */
.header-top {
    background: #f0f0f0;
    padding: 8px 0;
    font-size: 14px;
}
.header-top a {
    color: var(--text-dark);
    text-decoration: none;
    margin-right: 20px;
}
.header-top i {
    color: var(--primary-color);
    margin-right: 5px;
}
.navbar {
    padding: 15px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar-brand img {
    max-height: 60px;
}
.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
}
.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
}
.navbar-nav .dropdown-menu .dropdown-toggle::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
@media (max-width: 992px) {
    .dropdown-submenu .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
}
/* Search form */
.search-form {
    display: flex;
    align-items: center;
}
.search-form input {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
    width: 200px;
}
.search-form button {
    background: none;
    border: none;
    color: var(--primary-color);
    margin-left: -30px;
}
/* Hero Carousel */
.hero-carousel {
    background: linear-gradient(135deg, #0054a6 0%, #003d7a 100%);
    color: white;
}
.carousel-item {
    padding: 60px 0;
}
.carousel-item .hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.carousel-item .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 20px;
}
/* Section Titles */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.section-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}
/* Info Cards */
.info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.info-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
}
/* Benefit Cards */
.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}
.benefit-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.benefit-card h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}
/* Stats Section */
.stats-section {
    background: var(--light-bg);
    padding: 60px 0;
}
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* News Carousel */
.news-carousel {
    padding-bottom: 40px;
}
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card .news-content {
    padding: 20px;
}
.news-card .news-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}
.news-card .news-title {
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-card .news-title a {
    color: var(--text-dark);
    text-decoration: none;
}
.news-card .news-title a:hover {
    color: var(--primary-color);
}
.carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
}
/* Contact Form */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.form-control, .form-select {
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 8px;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}
.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}
.btn-submit:hover {
    background: #003d7a;
    transform: translateY(-2px);
}
/* Footer */
.footer {
    background: #111;
    color: #aaa;
    padding: 50px 0 20px;
}
.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover {
    color: white;
}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer ul li {
    margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}
/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .navbar-brand img {
        max-height: 40px;
    }
    .search-form input {
        width: 150px;
    }
}
/* Mobile menu */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}