:root {
    --primary: #00a2ff;
    --primary-dark: #007bc4;
    --dark-bg: #11141a;
    --nav-bg: #0a0f1d; /* Темно-синий глубокий фон для навигации */
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text-dark);
}

/* Переменная угла для анимации вращения */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    to {
        --angle: 360deg;
    }
}

/* Шапка сайта — Темный стильный Glassmorphism */
header {
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: transparent;
    padding: 0;
}

.logo img {
    height: 78px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.logo img:hover {
    transform: scale(1.03);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 10px;
}

/* Навигация — Кнопки с яркой вращающейся обводкой */
.nav-link {
    text-decoration: none;
    color: #e2e8f0; /* Светлый текст на темном фоне */
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
}

/* Слой неоновой вращающейся обводки */
.nav-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: conic-gradient(from var(--angle), transparent 40%, var(--primary) 75%, #00f0ff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateBorder 2.5s linear infinite;
    pointer-events: none;
}

.nav-link i {
    color: var(--primary);
    font-size: 15px;
    transition: transform 0.3s ease;
}

/* Эффект при наведении */
.nav-link:hover {
    color: #ffffff;
    background: rgba(0, 162, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.25);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1; /* Активация яркой обводки */
}

.nav-link:hover i {
    transform: scale(1.2);
    color: #00f0ff;
}

/* Переключатель языков (Адаптирован под темный стиль) */
.lang-dropdown-wrapper {
    position: relative;
    margin-left: 10px;
}

.lang-dropdown-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    transition: var(--transition);
}

.lang-dropdown-btn:hover {
    background: rgba(0, 162, 255, 0.2);
    border-color: var(--primary);
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.lang-dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    min-width: 140px;
    overflow: hidden;
    z-index: 1001;
}

.lang-dropdown-wrapper:hover .lang-dropdown-menu {
    display: flex;
}

.lang-dropdown-menu a {
    text-decoration: none;
    padding: 11px 16px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.lang-dropdown-menu a:hover {
    background: var(--primary);
    color: #ffffff;
}

.burger-menu {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #ffffff;
}

/* Слайдер */
.slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-top: 90px;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    background: linear-gradient(180deg, rgba(10, 15, 29, 0.6) 0%, rgba(10, 15, 29, 0.85) 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.slide-content {
    color: #fff;
    max-width: 750px;
}

.slide-content h2 {
    font-size: 46px;
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.slide-content p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 162, 255, 0.3);
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 162, 255, 0.4);
}

.slider-nav {
    position: absolute;
    bottom: 35px;
    right: 5%;
    display: flex;
    gap: 12px;
}

.slider-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Общие заголовки секций */
.section {
    padding: 90px 20px;
    max-width: 1250px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-dark);
}

.section-title p {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* Блок "О нас" */
.about-wrapper {
    background: #ffffff;
    color: var(--text-dark);
    padding: 60px;
    border-radius: 24px;
    margin: 80px auto;
    max-width: 1250px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.about-wrapper::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 162, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text h3 {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--text-dark);
}

.about-text > p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 25px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateX(8px);
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 162, 255, 0.12);
}

.feature-item i {
    color: var(--primary);
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 162, 255, 0.12);
}

.service-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Форма обратной связи */
.contact-wrapper {
    background: #ffffff;
    color: var(--text-dark);
    padding: 60px;
    border-radius: 24px;
    margin: 80px auto;
    max-width: 1250px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 162, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 800;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(8px);
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 162, 255, 0.1);
}

.info-item i {
    color: var(--primary);
    font-size: 22px;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 15px;
}

.info-item p {
    margin: 0;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text-dark);
    outline: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 162, 255, 0.15);
    transform: translateY(-2px);
}

textarea.form-control {
    height: 130px;
    resize: none;
}

.btn-submit {
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 162, 255, 0.25);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 162, 255, 0.38);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(5px) scale(1.1);
}

/* Футер */
footer {
    background: #060911;
    color: #94a3b8;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-container p {
    margin-top: 15px;
    line-height: 1.6;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links li i {
    color: var(--primary);
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    text-align: center;
    font-size: 14px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .burger-menu { display: block; }
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: #0a0f1d;
        flex-direction: column;
        padding: 40px 20px;
        transition: var(--transition);
    }
    .nav-menu.active { left: 0; }
    .about-grid, .contact-grid, .footer-container { grid-template-columns: 1fr; }
    .about-wrapper, .contact-wrapper { padding: 30px 20px; }
    .slide-content h2 { font-size: 30px; }
}