:root {
    --primary: #0a5c8e;
    --primary-dark: #074269;
    --primary-light: #2c7cb0;
    --secondary: #f0f4f8;
    --accent: #e67e22;
    --text-dark: #1a2a3a;
    --text-light: #4a5a6a;
    --white: #ffffff;
    --gray-bg: #f9fafc;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - стили из первого файла */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Навигация - из первого файла */
.nav {
    flex: 1;
    margin-left: 48px;
}

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-list > li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-list a:hover {
    color: var(--primary);
}

/* Выпадающее меню - из первого файла */
.nav-item-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-weight: 400;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background: var(--gray-bg);
    color: var(--primary);
    padding-left: 24px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.dropdown-goto a {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-goto a:hover {
    background: var(--gray-bg);
    color: var(--primary-dark);
}

/* Кнопка консультации - из первого файла */
.header-actions {
    margin-left: auto;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Спецификации продукта - из первого файла */
.product-specs {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.spec-badge {
    background: var(--gray-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

/* Мобильная навигация - из первого файла */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        margin-left: 0;
        padding: 80px 24px 24px;
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .nav-list > li {
        width: 100%;
    }

    .nav-list a {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
    }

    /* Мобильные выпадающие меню */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: var(--gray-bg);
        border-radius: 6px;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu li a {
        padding: 8px 16px;
    }

    .dropdown-divider {
        margin: 8px 0;
    }

    /* Кнопка консультации в мобильном меню */
    .nav-footer {
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid var(--border);
    }

    .nav-consultation-btn {
        display: block;
        text-align: center;
        width: 100%;
    }

    /* Скрываем десктопную кнопку на мобильных */
    .desktop-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .nav-footer {
        display: none;
    }
}

/* Hero Section - из второго файла */
.hero {
    padding: 20px 0 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(10,92,142,0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: left;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-image img {
    width: 100%;
    max-width: 500px;
}

/* Section Header - из второго файла */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(10,92,142,0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Technologies Grid - из второго файла */
.technologies {
    padding: 80px 0;
    background: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.tech-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.tech-icon {
    width: 100%;
    height: 260px;
    background: rgba(10,92,142,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.tech-icon img {
    width: 100%;
    height: auto;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.tech-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.link-arrow {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.link-arrow:hover {
    gap: 8px;
    letter-spacing: 0.5px;
}

.tech-cta {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.tech-cta p {
    margin-bottom: 16px;
    color: var(--text-light);
}

/* Industries Grid - из второго файла */
.industries {
    padding: 80px 0;
    background: var(--gray-bg);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.industry-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.industry-image {
    height: 200px;
    overflow: hidden;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.industry-card:hover .industry-image img {
    transform: scale(1.05);
}

.industry-content {
    padding: 24px;
}

.industry-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.industry-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Integration Section - из второго файла */
.integration {
    padding: 80px 0;
    background: var(--white);
}

.integration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.integration-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.integration-content p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.integration-features {
    list-style: none;
    margin-bottom: 32px;
}

.integration-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.integration-features i {
    color: var(--primary);
    font-size: 1.2rem;
}

.integration-image img {
    width: 100%;
    border-radius: 20px;
}

/* Cases Section - из второго файла */
.cases {
    padding: 80px 0;
    background: var(--gray-bg);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.case-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.case-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-content {
    padding: 24px;
}

.case-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.case-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.case-stats {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--primary);
}

.case-stats i {
    margin-right: 6px;
}

.cases-cta {
    text-align: center;
}

/* Service Section - из второго файла */
.service {
    padding: 80px 0;
    background: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-image img {
    width: 100%;
    border-radius: 20px;
}

.service-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.service-content > p {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.service-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.service-feature i {
    font-size: 1.5rem;
    color: var(--primary);
}

.service-feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.service-feature p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Resources Section - из второго файла */
.resources {
    padding: 80px 0;
    background: var(--gray-bg);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.resource-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.resource-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.resource-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* ROI Calculator - из второго файла */
.roi-calculator {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.calculator-card {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 32px;
    padding: 48px;
    backdrop-filter: blur(10px);
}

.calculator-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.calculator-content p {
    margin-bottom: 32px;
    opacity: 0.9;
}

.calculator-form .form-group {
    margin-bottom: 20px;
}

.calculator-form input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255,255,255,0.95);
}

.calculator-result {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    text-align: center;
}

.calculator-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.calculator-stats .stat {
    text-align: center;
}

.calculator-stats .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--white);
}

.calculator-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Consultation Form - из второго файла */
.consultation-form {
    padding: 80px 0;
    background: var(--white);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--gray-bg);
    border-radius: 32px;
    padding: 48px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.form-header p {
    color: var(--text-light);
}

.kp-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.kp-form .form-group {
    margin-bottom: 0;
}

.kp-form input, .kp-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.kp-form input:focus, .kp-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,92,142,0.1);
}

.kp-form .full-width {
    grid-column: 1 / -1;
}

.kp-form button {
    width: 100%;
    margin-top: 20px;
}

/* Footer - из первого файла */
.footer {
    background: #0f1a24;
    color: #b0c4de;
    padding: 48px 0 24px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #b0c4de;
    text-decoration: none;
    line-height: 2;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #2a3a48;
    margin-top: 48px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
}

/* Дополнительные кнопки из второго файла */
.btn-large {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline-small {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline-small:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-primary-small {
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary-small:hover {
    background: var(--primary-dark);
}

/* Responsive из второго файла (дополнение к мобильным стилям) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .integration-grid,
    .service-grid,
    .calculator-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .hero-stats {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .tech-grid,
    .industries-grid,
    .cases-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .kp-form .form-row {
        grid-template-columns: 1fr;
    }

    .calculator-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-container {
        padding: 32px 24px;
    }
}