:root {
    --main-color: #27813c;
    --dark-color: #1a1a2e;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0;
}

/* Шапка */
.site-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--main-color);
    margin-left: 10px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: var(--main-color) !important;
}

.btn-apply {
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-apply:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Герой секция */
.hero-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Карточки */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-header.bg-success {
    background: var(--main-color) !important;
}

/* Новостные карточки */
.news-card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.carousel-item .row {
    margin: 0 -15px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--main-color);
    border-radius: 50%;
    padding: 20px;
    background-size: 50% 50%;
}

.carousel-indicators li {
    background-color: #ccc;
}

.carousel-indicators .active {
    background-color: var(--main-color);
}

/* Карточки услуг */
.service-card {
    transition: all 0.3s;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: var(--main-color) !important;
}

/* Футер */
.site-footer {
    background: var(--dark-color) !important;
    margin-top: 0;
}

.site-footer h5 {
    color: var(--main-color);
    font-weight: 600;
}

.site-footer a {
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--main-color) !important;
    text-decoration: none;
}

/* Форма */
.application-form .form-group {
    margin-bottom: 1.5rem;
}

.application-form .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s, box-shadow 0.3s;
    padding: 12px 15px;
}

.application-form .form-control:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.application-form .form-check-input:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.application-form .alert-info {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 8px;
}

.btn-success {
    background: var(--main-color);
    border-color: var(--main-color);
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}

/* Страница рекрутов */
.recruit-page .list-group-item {
    border-left: 4px solid var(--main-color);
    margin-bottom: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        text-align: center;
    }
    .hero-section .col-lg-5 {
        margin-top: 30px;
    }
    .brand-text {
        font-size: 1.2rem;
    }
    .btn-apply {
        margin-top: 10px;
        width: 100%;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    .news-card .card-img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 250px;
        padding: 30px 0;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
}

/* Индикаторы слайдера — вынести вниз, под новости */
#newsCarousel .carousel-indicators {
    position: static;         /* убираем абсолютное позиционирование */
    margin: 20px 0 0 0;       /* отступ сверху (для всего блока) */
    display: flex;            /* выравниваем по центру */
    justify-content: center;
}

#newsCarousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cccccc;
    border: none;
    opacity: 1;
    margin: 0 5px;            /* ← расстояние между точками (5px слева + 5px справа) */
    transition: background-color 0.3s;
}

#newsCarousel .carousel-indicators li.active {
    background-color: #28a745;
}

/* ===== Блок "О службе по контракту" ===== */
.about-service {
    background: #ffffff;
}

.about-service h2 {
    font-weight: 700;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 15px;
}

.about-service h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #28a745;
    border-radius: 2px;
}

.about-service .card {
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-service .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
}

.about-service .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.documents-list li,
.conditions-list li {
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: 1px dashed #e9ecef;
}

.documents-list li:last-child,
.conditions-list li:last-child {
    border-bottom: none;
}

.documents-list i,
.conditions-list i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.stages-list {
    padding-left: 20px;
    counter-reset: stage;
    list-style: none;
}

.stages-list li {
    position: relative;
    padding: 8px 0 8px 35px;
    counter-increment: stage;
    border-bottom: 1px dashed #e9ecef;
}

.stages-list li:last-child {
    border-bottom: none;
}

.stages-list li::before {
    content: counter(stage);
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.85rem;
    font-weight: 700;
}

.about-service a.text-success {
    text-decoration: none;
    border-bottom: 1px dashed #28a745;
    transition: all 0.3s;
}

.about-service a.text-success:hover {
    border-bottom-style: solid;
    color: #1e7e34 !important;
}

/* ===== Страница "Для рекрутов" ===== */
.section-title {
    font-weight: 700;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #27813c;
    border-radius: 2px;
}

/* Hero-баннер */
.recruit-hero {
    min-height: 500px;
    display: flex;
    align-items: center;
}
.recruit-hero h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* Карточки выплат */
.payment-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.payment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(39, 129, 60, 0.25);
}

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #27813c, #1a5c28);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Карточки "Кому подходит" */
.benefit-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.benefit-card:hover {
    transform: translateY(-5px);
}
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.benefit-list li {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dashed #e9ecef;
}
.benefit-list li:last-child {
    border-bottom: none;
}
.benefit-list i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Требования */
.requirement-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s;
}
.requirement-item:hover {
    background: #f8f9fa;
}
.requirement-item i {
    font-size: 2rem;
    flex-shrink: 0;
}

/* БПЛА */
.drone-requirements {
    list-style: none;
    padding: 0;
}
.drone-requirements li {
    padding: 8px 0;
    font-size: 1rem;
}
.drone-requirements i {
    margin-right: 8px;
}

/* Контакты */
.contact-block {
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    text-align: center;
    transition: background 0.3s;
}
.contact-block:hover {
    background: rgba(255,255,255,0.15);
}
.contact-block a {
    text-decoration: none;
}
.contact-block a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .recruit-hero {
        min-height: 400px;
        text-align: center;
    }
    .recruit-hero h1 {
        font-size: 2rem;
    }
}

/* ===== Страница FAQ ===== */
.faq-hero {
    min-height: 250px;
    display: flex;
    align-items: center;
}

/* Карточки вопросов */
.faq-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.faq-card:hover {
    box-shadow: 0 4px 20px rgba(39, 129, 60, 0.15);
}

/* Кнопка-вопрос */
.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    text-decoration: none !important;
    color: #1a1a2e !important;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.3s;
    border: none;
    text-align: left;
    width: 100%;
}
.faq-question:hover {
    background: #f8f9fa;
}
.faq-question:focus {
    box-shadow: none;
    outline: none;
}
.faq-question.collapsed .faq-arrow {
    transform: rotate(0deg);
}
.faq-question .faq-arrow {
    transform: rotate(180deg);
    transition: transform 0.3s;
    margin-left: auto;
    color: #27813c;
    flex-shrink: 0;
}

/* Номер вопроса */
.faq-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #27813c, #1a5c28);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Текст вопроса */
.faq-text {
    flex-grow: 1;
}

/* Тело ответа */
.faq-card .card-body {
    padding: 20px 25px 25px 80px;
    background: #f8f9fa;
    border-top: 2px solid #27813c;
    line-height: 1.7;
    color: #444;
}

/* Список в ответе */
.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.faq-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px dashed #e0e0e0;
}
.faq-list li:last-child {
    border-bottom: none;
}
.faq-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    background: #27813c;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }
    .faq-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .faq-card .card-body {
        padding: 15px 20px 20px 20px;
    }
    .faq-hero h1 {
        font-size: 2rem;
    }
}

/* ===== Иконка MAX в соцсетях ===== */
.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
    vertical-align: middle;
}

.site-footer .social-links a:hover {
    background: var(--main-color, #27813c);
    transform: translateY(-3px);
}

/* SVG-иконка MAX */
.max-icon {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
    transition: transform 0.3s;
}

.site-footer .social-links a:hover .max-icon {
    transform: scale(1.1);
}

/* ===== Страница "Контакты" ===== */
.contacts-hero {
    min-height: 250px;
    display: flex;
    align-items: center;
}

.contact-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}
.contact-card:hover {
    border-color: #27813c;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(39, 129, 60, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #27813c, #1a5c28);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.contact-card h4 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.contact-value a {
    text-decoration: none;
    transition: color 0.3s;
}
.contact-value a:hover {
    color: #27813c !important;
}

.social-section {
    margin-top: 40px;
}

.social-links-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.social-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27813c, #1a5c28);
    color: #fff;
    font-size: 1.8rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(39, 129, 60, 0.3);
}
.social-link:hover .social-circle {
    background: linear-gradient(135deg, #1a5c28, #27813c);
    box-shadow: 0 8px 25px rgba(39, 129, 60, 0.5);
    transform: scale(1.1);
}

.social-name {
    margin-top: 12px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .contacts-hero h1 {
        font-size: 2rem;
    }
    .social-links-contacts {
        gap: 20px;
    }
    .social-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .contact-card {
        padding: 20px 15px;
    }
}

/* ===== Социальные сети — карточки ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    text-decoration: none;
}

.social-card:hover::before {
    opacity: 1;
}

.social-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    color: #fff;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.social-card:hover .social-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.social-card-info {
    position: relative;
    z-index: 1;
}

.social-card-info h5 {
    margin: 0 0 5px;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.1rem;
}

.social-card-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Цвета под каждую соцсеть */
.vk-card .social-card-icon {
    background: linear-gradient(135deg, #0077FF, #0055CC);
}
.vk-card:hover {
    border-color: #0077FF;
}

.tg-card .social-card-icon {
    background: linear-gradient(135deg, #0088cc, #006699);
}
.tg-card:hover {
    border-color: #0088cc;
}

.wa-card .social-card-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}
.wa-card:hover {
    border-color: #25D366;
}

.max-card .social-card-icon {
    background: linear-gradient(135deg, #27813c, #1a5c28);
}
.max-card:hover {
    border-color: #27813c;
}

/* Адаптивность */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
    .social-card {
        padding: 20px;
    }
    .social-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}