:root {
    --primary-dark-blue: #0A1F3E;
    --secondary-light-gray: #E0E0E0;
    --accent-blue: #007BFF;
    --accent-gradient-start: #0056b3;
    --accent-gradient-end: #007bff;
    --light-text-blue: #A0C4FF;
    --section-bg-dark: #06142A;
    --section-bg-light: #F8F9FA;
    --card-bg: #1E3A5B;
    --footer-bg: #0A1F3E;
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Open Sans', sans-serif;
}

body {
    font-family: var(--secondary-font);
    background-color: var(--primary-dark-blue);
    color: var(--secondary-light-gray);
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font);
    color: #ffffff;
    margin-bottom: 1.5rem;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }

p {
    color: var(--secondary-light-gray);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gradient-end);
}

.btn {
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.btn-gradient-primary {
    background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 35px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-gradient-primary:hover {
    background: linear-gradient(to right, var(--accent-gradient-end), var(--accent-gradient-start));
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    padding: 14px 35px;
    border-radius: 8px;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.fw-bold {
    font-weight: 700 !important;
}

.text-light-blue {
    color: var(--light-text-blue) !important;
}

.section-padding {
    padding: 100px 0;
}

.site-header {
    background-color: rgba(10, 31, 62, 0.85);
    backdrop-filter: blur(15px);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.site-header .navbar-brand {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.site-header .navbar-brand:hover {
    color: #fff;
}

.site-title {
    font-family: var(--primary-font);
    font-size: 1.4rem;
    line-height: 1.2;
}

.navbar-nav .nav-link {
    color: #fff;
    font-size: 1.15rem;
    padding: 12px 22px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-gradient-end);
    border-bottom: 2px solid var(--accent-gradient-end);
}

.navbar-nav .dropdown-toggle {
    cursor: pointer;
}

.navbar-nav .dropdown-menu {
    background-color: var(--primary-dark-blue);
    border: 1px solid rgba(0, 123, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 12px 0;
    margin-top: 15px;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    display: block;
}

.navbar-nav .dropdown-menu.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C 255%2C 255%2C 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-nav {
        background-color: rgba(10, 31, 62, 0.95);
        padding: 10px;
        margin-top: 10px;
        border-radius: 8px;
    }
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: none !important;
    }
    .navbar-nav .nav-link:hover {
        color: var(--accent-gradient-end);
        background-color: rgba(255, 255, 255, 0.1);
    }
    .navbar-nav .dropdown-menu {
        position: static;
        background-color: rgba(6, 20, 42, 0.9);
        border: none;
        box-shadow: none;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .navbar-nav .dropdown-menu.show {
        max-height: 300px;
    }
    .navbar-nav .dropdown-menu .dropdown-item {
        padding: 10px 15px;
        font-size: 1rem;
    }
    .phone-button {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(10, 31, 62, 0.95), rgba(10, 31, 62, 0.7)), url('kolokol-sevastopol.jpg') center center/cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 120px 0 100px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.hero-section .hero-cta-links {
    margin-top: 2rem;
}

.hero-section .btn-gradient-primary,
.hero-section .btn-outline-light {
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 10px;
}

.hero-visual-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    max-width: 550px;
    margin: 0 auto;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-sphere {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateSphere 20s infinite linear;
    filter: drop-shadow(0 0 30px rgba(0, 123, 255, 0.4));
}

.sphere-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2) 0%, rgba(0,123,255,0.1) 40%, rgba(10,31,62,0.8) 70%);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
    backface-visibility: hidden;
}

.sphere-face.front { transform: translateZ(275px); }
.sphere-face.back { transform: rotateY(180deg) translateZ(275px); }
.sphere-face.right { transform: rotateY(90deg) translateZ(275px); }
.sphere-face.left { transform: rotateY(-90deg) translateZ(275px); }
.sphere-face.top { transform: rotateX(90deg) translateZ(275px); }
.sphere-face.bottom { transform: rotateX(-90deg) translateZ(275px); }


@keyframes rotateSphere {
    from { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
    to { transform: perspective(1000px) rotateY(360deg) rotateX(360deg); }
}

.hero-section .col-lg-7 > *, .hero-section .col-lg-5 > * {
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-section .col-lg-7 .display-4 { animation: fadeInDown 1.2s ease-out 0.6s forwards; }
.hero-section .col-lg-7 .lead { animation: fadeInDown 1.2s ease-out 0.8s forwards; }
.hero-section .col-lg-7 .hero-cta-links { animation: fadeInUp 1.2s ease-out 1s forwards; }
.hero-section .col-lg-5 .hero-visual-wrapper { animation: fadeInRight 1.2s ease-out 0.9s forwards; }

.problem-section {
    background-color: var(--section-bg-dark);
    padding: 100px 0;
    text-align: center;
}

.problem-section h2 {
    margin-bottom: 50px;
}

.problem-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

.problem-card i {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.problem-card p {
    font-size: 1.05rem;
    color: var(--secondary-light-gray);
}

.problem-section .col-lg-3 {
    display: flex;
    justify-content: center;
}

.courses-section {
    background-color: var(--primary-dark-blue);
    padding: 100px 0;
    text-align: center;
}

.courses-section h2 {
    margin-bottom: 60px;
}

.course-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
}

.course-card img {
    width: 100%;
	border-radius: 10px;
    height: auto;
    margin-bottom: 20px;
}

.course-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.course-card p {
    font-size: 1rem;
    color: var(--secondary-light-gray);
    margin-bottom: 30px;
}

.course-card .btn-outline-light {
    padding: 10px 25px;
    font-size: 1rem;
}

.remote-training-section {
    background: linear-gradient(rgba(6, 20, 42, 0.9), rgba(6, 20, 42, 0.8)), url('../images/remote-bg.jpg') center center/cover no-repeat;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

.remote-training-section h2 {
    margin-bottom: 50px;
}

.remote-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.remote-card i {
    font-size: 2.5rem;
    color: var(--light-text-blue);
    margin-bottom: 20px;
}

.remote-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.remote-card p {
    font-size: 1.05rem;
    color: rgba(224, 224, 224, 0.9);
}

.protection-section {
    background-color: var(--section-bg-dark);
    padding: 100px 0;
    text-align: center;
}

.protection-section h2 {
    margin-bottom: 50px;
}

.protection-content {
    text-align: left;
}

.protection-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.protection-content .cta-link {
    font-size: 1.1rem;
    color: var(--light-text-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.protection-content .cta-link:hover {
    color: #fff;
}

.protection-image-wrapper {
    position: relative;
    text-align: center;
}

.protection-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.blog-preview-section {
    background-color: var(--primary-dark-blue);
    padding: 100px 0;
    text-align: center;
}

.blog-preview-section h2 {
    margin-bottom: 50px;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--secondary-light-gray);
    margin-bottom: 20px;
}

.blog-card-content .read-more-link {
    color: var(--light-text-blue);
    font-weight: bold;
    transition: color 0.3s ease;
}

.blog-card-content .read-more-link:hover {
    color: #fff;
    text-decoration: underline;
}

.blog-preview-section .btn-gradient-primary {
    margin-top: 20px;
}

.contacts-section {
    background-color: var(--section-bg-dark);
    padding: 100px 0;
    text-align: center;
}

.contacts-section h2 {
    margin-bottom: 50px;
}

.contact-info-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-right: 15px;
}

.contact-info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-info-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

.contact-info-card a {
    color: var(--secondary-light-gray);
    font-size: 1rem;
}

.contact-info-card a:hover {
    color: #fff;
}

.map-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--secondary-light-gray);
    opacity: 0.7;
}

.site-footer {
    background-color: var(--footer-bg);
    padding: 70px 0;
    margin-top: 100px;
    border-top: 4px solid var(--accent-blue);
}

.site-footer .footer-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 12px;
}

.site-footer .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--accent-gradient-end);
}

.site-footer .footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-nav-list li {
    margin-bottom: 12px;
}

.site-footer .footer-nav-list a {
    color: var(--secondary-light-gray);
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.site-footer .footer-nav-list a:hover {
    color: #fff;
    text-decoration: underline;
    transform: translateX(5px);
}

.site-footer p, .site-footer a {
    color: var(--secondary-light-gray);
    font-size: 1rem;
}

.site-footer .social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 1.8rem;
    color: var(--secondary-light-gray);
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
    color: #fff;
    transform: scale(1.15);
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.site-footer .copyright {
    font-size: 0.95rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-banner {
    background: linear-gradient(rgba(10, 31, 62, 0.8), rgba(10, 31, 62, 0.8)), url('../images/banner-fire.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
}

.program-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.program-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); }

.blog-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }


@media (max-width: 991.98px) {
    .site-header .navbar-brand { font-size: 1.5rem; }
    .site-title { font-size: 1.2rem; }
    .navbar-nav .nav-link { padding: 10px 15px; font-size: 1rem; }
    .phone-button { padding: 8px 15px; font-size: 1rem; }

    .hero-section { padding: 100px 0 80px 0; }
    .hero-section h1 { font-size: 3.2rem; }
    .hero-section .lead { font-size: 1.1rem; }
    .hero-section .btn-gradient-primary, .hero-section .btn-outline-light { padding: 12px 25px; font-size: 1.1rem; }

    .hero-visual-wrapper { height: 400px; max-width: 400px; }

    .section-padding { padding: 80px 0; }
    .problem-card, .course-card, .remote-card, .blog-card, .contact-info-card { margin-bottom: 20px; }
    .site-footer { padding: 50px 0; margin-top: 80px; }
}

@media (max-width: 767.98px) {
    .site-header { padding: 12px 0; }
    .site-header .navbar-brand { font-size: 1.3rem; }
    .site-title { font-size: 1.1rem; }

    .navbar-nav {
        background-color: var(--primary-dark-blue);
        padding: 10px;
        margin-top: 8px;
        border-radius: 5px;
    }
    .navbar-nav .nav-link { padding: 8px 12px; font-size: 1rem; border-bottom: none; }
    .navbar-nav .nav-link:hover { border-bottom: none; color: var(--accent-gradient-end); }

    .navbar-nav .dropdown-menu {
        position: static;
        background-color: rgba(10, 31, 62, 0.9);
        border: none;
        box-shadow: none;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .navbar-nav .dropdown-menu.show {
        max-height: 300px;
    }
    .navbar-nav .dropdown-menu .dropdown-item {
        padding: 10px 15px;
        font-size: 1rem;
    }
    .phone-button {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .hero-section { padding: 80px 0 60px 0; }
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section .lead { font-size: 1rem; }
    .hero-section .btn-gradient-primary, .hero-section .btn-outline-light { padding: 10px 20px; font-size: 1rem; width: 100%; }
    .hero-section .hero-cta-links { flex-direction: column; gap: 15px; }

    .hero-visual-wrapper { height: 300px; max-width: 300px; }

    .section-padding { padding: 60px 0; }
    .problem-card, .course-card, .remote-card, .blog-card, .contact-info-card { margin-bottom: 20px; }
    .site-footer { padding: 40px 0; margin-top: 60px; }
    .site-footer .footer-title { font-size: 1.3rem; margin-bottom: 1rem; }
    .site-footer .social-links { justify-content: center; }
}