:root {
    --primary: #0A1628;
    --secondary: #1B2D4F;
    --accent: #0077B6;
    --accent-light: #00B4D8;
    --accent-glow: #90E0EF;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --orange: #F97316;
    --green: #10B981;
    --gradient-blue: linear-gradient(135deg, #0077B6 0%, #00B4D8 50%, #90E0EF 100%);
    --gradient-dark: linear-gradient(180deg, #0A1628 0%, #1B2D4F 100%);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-top {
    background: var(--primary);
    padding: 8px 0;
    font-size: 13px;
    color: var(--gray-400);
}

.header-top-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contacts {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-contacts a {
    color: var(--gray-400);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.header-contacts a:hover {
    color: var(--accent-light);
}

.lang-switch {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px;
}

.lang-btn {
    padding: 4px 12px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: var(--accent);
    color: var(--white);
}

.header-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.header.scrolled .header-main {
    box-shadow: var(--shadow-md);
}

.header-main-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 92px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 14px;
}

.logo-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #0077B6 0%, #00B4D8 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 119, 182, 0.25);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.logo-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.6px;
    line-height: 1.05;
}

.logo-name span {
    color: var(--accent);
}

.logo-tagline {
    font-size: 11px;
    color: var(--gray-500);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--accent);
}

.nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
    background: var(--accent) !important;
    color: var(--white) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: #006299 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 150px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-bg-gradient {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 70%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(0, 119, 182, 0.15) 0%, transparent 70%);
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 119, 182, 0.15);
    border: 1px solid rgba(0, 119, 182, 0.3);
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.2px;
}

.hero h1 .highlight {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 17px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: #006299;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    position: relative;
}

.hero-stat::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-stat:last-child::after {
    display: none;
}

.hero-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.hero-stat-number span {
    color: var(--accent-light);
}

.hero-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.hero-card-main {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
}

.hero-card-main::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--gradient-blue);
    border-radius: 1px;
}

.hero-visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-visual-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 119, 182, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-icon i {
    font-size: 18px;
    color: var(--accent-light);
}

.hero-visual-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

.hero-visual-subtitle {
    font-size: 12px;
    color: var(--gray-500);
}

.hero-pipeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pipeline-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.pipeline-item:hover {
    background: rgba(0, 119, 182, 0.1);
    border-color: rgba(0, 119, 182, 0.2);
}

.pipeline-number {
    width: 32px;
    height: 32px;
    background: rgba(0, 119, 182, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-light);
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

.pipeline-text {
    font-size: 13px;
    color: var(--gray-300);
    font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
    padding: 90px 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 119, 182, 0.08);
    border-radius: 100px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== SERVICES ===== */
.services {
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 119, 182, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent);
}

.service-icon i {
    font-size: 22px;
    color: var(--accent);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s ease;
}

.service-card:hover .service-link {
    gap: 10px;
}

.service-detail-visual {
    border-radius: var(--radius-lg);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.service-detail-visual.has-photo {
    color: transparent;
}

.service-detail-visual.has-photo i {
    display: none;
}

.service-card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(0, 119, 182, 0.08);
    overflow: hidden;
}

.service-card-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== PROJECTS PREVIEW ===== */
.projects-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-image i {
    font-size: 44px;
    color: rgba(255, 255, 255, 0.2);
}

.project-image-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
}

.project-body {
    padding: 24px;
}

.project-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

.section-center-action {
    text-align: center;
}

/* ===== CONTACTS SHORT ===== */
.contacts-short {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.contacts-short::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 119, 182, 0.15) 0%, transparent 60%);
}

.contacts-short-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contacts-short-content h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.contacts-short-content p {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 28px;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-item:hover {
    background: rgba(0, 119, 182, 0.1);
    border-color: rgba(0, 119, 182, 0.3);
    transform: translateX(4px);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 119, 182, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon i {
    font-size: 18px;
    color: var(--accent-light);
}

.contact-item-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item-value {
    font-size: 15px;
    color: var(--white);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 320px;
}

.footer h4 {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--accent-light);
}

/* Стили для современной кнопки Telegram */
.tg-btn-footer {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    background: rgba(0, 180, 216, 0.12) !important;
    border: 1px solid rgba(0, 180, 216, 0.3) !important;
    border-radius: 100px !important;
    color: var(--white) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    height: auto !important;
}

.tg-btn-footer i {
    color: #00B4D8 !important;
    font-size: 16px !important;
}

.tg-btn-footer:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
}

/* ===== MOBILE ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   INNER PAGES
   ========================================= */

.page-header {
    background: var(--gradient-dark);
    padding: 150px 0 40px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-header .container {
    display: flex;
    flex-direction: column;
}

.breadcrumbs {
    order: 1;
    font-size: 13px;
    color: var(--gray-400);
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
}

.breadcrumbs a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs span {
    margin: 0 8px;
    color: var(--gray-600);
}

.page-title {
    order: 2;
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    letter-spacing: -1px;
}

.page-header+.section {
    padding-top: 50px;
}

/* About */
.about-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.about-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.license-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.license-card i {
    font-size: 40px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.license-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.license-card p {
    font-size: 13px;
    color: var(--gray-500);
}

/* Services page */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-content .service-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 119, 182, 0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.service-detail-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.service-detail-content p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

.service-features li i {
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}

.service-detail.reverse .service-detail-visual {
    order: 2;
}

/* Contacts page */
.contacts-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contacts-info-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contacts-info-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-row-icon i {
    font-size: 16px;
    color: var(--accent);
}

.contact-row-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-row-value {
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.contact-row-value:hover {
    color: var(--accent);
}

.contacts-form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contacts-form-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.contacts-form-card .form-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    transition: all 0.2s;
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.form-note {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 16px;
    text-align: center;
    line-height: 1.6;
}

.form-note a {
    color: var(--accent);
    text-decoration: none;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--gray-400);
    border: 1px solid var(--gray-200);
}

.map-placeholder i {
    font-size: 48px;
    color: var(--gray-300);
}

/* =========================================
   PROJECTS PAGE
   ========================================= */

.projects-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card-full {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.project-card-full:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.project-card-full .project-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.project-card-full .project-image.has-photo {
    background-color: #1B2D4F;
}

.project-card-full .project-image .project-image-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 48px;
}

.project-card-full .project-image.has-photo .project-image-fallback {
    display: none;
}

.project-card-full .project-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-full h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.project-card-full p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.project-meta {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-500);
}

.project-meta-item i {
    color: var(--gray-400);
    font-size: 12px;
}

/* =========================================
   VACANCIES PAGE
   ========================================= */

.vacancies-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.vacancies-list>.admin-add-wrap {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 8px;
}

.vacancy-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    position: relative;
}

.vacancy-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.vacancy-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vacancy-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1.3;
    padding-right: 70px;
}

.vacancy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 16px;
}

.vacancy-meta span {
    font-size: 13px;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    padding: 6px 10px;
    border-radius: 100px;
}

.vacancy-meta i {
    color: var(--accent);
    font-size: 12px;
}

.vacancy-info p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.vacancy-card .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 13px;
}

.vacancies-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
    background: var(--gray-50);
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius-lg);
}

.vacancies-empty i {
    font-size: 48px;
    color: var(--gray-300);
    margin-bottom: 16px;
    display: block;
}

.vacancies-empty h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 20px;
}

/* ===== TEXT CONTENT (Политики, Статьи) ===== */
.text-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.text-content h2 {
    font-size: 24px;
    color: var(--primary);
    margin: 32px 0 16px;
}

.text-content p {
    margin-bottom: 16px;
    color: var(--gray-600);
}

.text-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
    color: var(--gray-600);
}

.text-content li {
    margin-bottom: 8px;
}

/* ===== FORM ALERTS ===== */
.form-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.form-alert-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.form-alert-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.form-alert-close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
}

.form-alert-close:hover {
    opacity: 1;
}

/* =========================================
   RESPONSIVE АДАПТИВ
   ========================================= */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .about-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .licenses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail,
    .service-detail.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail.reverse .service-detail-visual {
        order: 0;
    }

    .service-detail-visual {
        height: 240px;
        font-size: 64px;
    }

    .service-detail-content h2 {
        font-size: 26px;
    }

    .contacts-page-grid {
        grid-template-columns: 1fr;
    }

    .projects-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vacancies-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .vacancies-list {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .nav {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: left 0.3s ease;
        padding-bottom: 64px;
    }

    .nav.active {
        left: 0;
    }

    .nav a {
        font-size: 18px;
        font-weight: 600;
    }

    body.menu-open {
        overflow: hidden;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-main-inner {
        height: 76px;
        padding: 0 16px;
    }

    .logo {
        gap: 12px;
    }

    .logo-icon,
    .logo-img {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .logo-name {
        font-size: 18px;
        letter-spacing: -0.4px;
    }

    .logo-tagline {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-stat::after {
        display: none;
    }

    .hero-stat-number {
        font-size: 26px;
    }

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .about-short-content h2,
    .contacts-short-content h2 {
        font-size: 26px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-preview-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .page-header {
        padding: 110px 0 32px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-header+.section {
        padding-top: 40px;
    }

    .licenses-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        height: 280px;
    }

    .projects-page-grid {
        grid-template-columns: 1fr;
    }

    .vacancy-card {
        min-height: auto;
        padding: 24px;
    }

    .vacancy-info h3 {
        font-size: 18px;
        padding-right: 60px;
    }

    .vacancy-card .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* =========================================
       АККУРАТНЫЙ МОБИЛЬНЫЙ ФУТЕР И КОНТАКТЫ
       ========================================= */

    /* 1. Скрываем ненужный колонтитул "Услуги" на телефоне */
    .footer-col-services {
        display: none !important;
    }

    /* 2. Сетка футера для Компании и Контактов */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        text-align: center !important;
    }

    /* 3. Делаем ссылки ГОРИЗОНТАЛЬНО (в строчку) с переносом */
    .footer-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px 16px !important;
    }

    .footer-links li {
        margin-bottom: 0 !important;
    }

    /* 4. Нижняя часть футера (Копирайт, Политики, Telegram) */
    .footer-bottom {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
        padding-top: 24px !important;
    }

    /* Поднимаем Telegram НАВЕРХ над копирайтом и политиками */
    .footer-socials {
        order: -1 !important;
        /* Ключевое свойство для поднятия наверх */
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    /* Политики */
    .footer-legal {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
    }

    /* Поведение контактов на главной и внутренней странице */
    .contacts-short-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-item-value,
    .contact-row-value {
        word-break: break-word;
        white-space: normal;
    }

    .contacts-info-card,
    .contacts-form-card {
        padding: 24px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-row {
        gap: 12px;
    }

    .contact-row-icon {
        width: 36px;
        height: 36px;
    }
}

/* ===== МОБИЛЬНЫЙ ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА ===== */
.lang-select-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .lang-select-mobile {
        display: block !important;
        margin-left: auto;
        margin-right: 8px;
        padding: 6px 22px 6px 10px;
        font-size: 12px;
        font-weight: 700;
        color: var(--primary);
        background-color: var(--gray-100);
        border: 1px solid var(--gray-300);
        border-radius: 6px;
        outline: none;
        cursor: pointer;
        font-family: 'Inter', sans-serif;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%200077B6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
        background-repeat: no-repeat;
        background-position: right 6px center;
        min-width: 52px;
        max-width: 64px;
        flex-shrink: 0;
    }

    .mobile-menu-btn {
        margin-left: 0;
        flex-shrink: 0;
    }
}