/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #18406d;
    --primary-dark: #0D47A1;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-gray: #f5f5f5;
    --bg-light-blue: #E3F2FD;
    --border-color: #dddddd;
    --accent-orange: #FF5722;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* Header */
.header {
    background: var(--bg-white);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
}

/* Top Contacts Bar */
.top-contacts {
    background: var(--bg-gray);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.contacts-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.contacts-right {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}

.contacts-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.contacts-social .social-link img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.contacts-social .social-link:hover img {
    transform: scale(1.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.contact-item .label {
    color: var(--text-gray);
}

.contact-item .phone {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-item .email {
    color: var(--text-gray);
    font-size: 13px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary-blue);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(24, 64, 109, 0.9) 0%, rgba(24, 64, 109, 0.95) 100%), 
                url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: white;
    padding: 15px 0;
    position: relative;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .accent {
    font-weight: 400;
    font-size: 36px;
}

.hero-subtitle {
    font-size: 18px;
    text-align: left;
    line-height: 1.5;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background: #ff7700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

/* Features Section */
/* Functionality Section */
.functionality-section {
    padding: 15px 0;
    background: var(--bg-white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-top: -20px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.functionality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.func-card {
    background: var(--bg-gray);
    padding: 35px 25px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.func-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(24, 64, 109, 0.1);
    transform: translateY(-5px);
}

.func-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.func-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
    filter: brightness(1.3);
    transition: all 0.3s;
}

.func-card:hover .func-icon img {
    opacity: 1;
    filter: brightness(1.1);
    transform: scale(1.05);
}

.func-card h3 {
    font-size: 1.3rem;
    color: #18406d;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.func-list {
    list-style: none;
    padding: 0;
}

.func-list li {
    padding: 10px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
    position: relative;
    padding-left: 20px;
}

.func-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.func-list li strong {
    color: #18406d;
}

/* Use Cases Section */
.use-cases-section {
    margin-top: 60px;
    padding: 50px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-radius: 15px;
}

.use-cases-title {
    font-size: 2rem;
    color: #18406d;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.use-case-item {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.use-case-item:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 8px 25px rgba(24, 64, 109, 0.15);
    transform: translateY(-3px);
}

.use-case-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    opacity: 0.3;
    margin-bottom: 15px;
    line-height: 1;
}

.use-case-item h4 {
    font-size: 1.1rem;
    color: #18406d;
    margin-bottom: 12px;
    font-weight: 600;
}

.use-case-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 15px 0;
    background: linear-gradient(rgba(245, 247, 250, 0.95), rgba(245, 247, 250, 0.95)), url('../images/plugin-modules-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.how-it-works-content {
    margin-top: 50px;
}

/* Первый ряд - 3 шага */
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Грид с картинкой (2 ряда) + шаги 4 и 5 */
.image-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.how-it-works-image {
    position: relative;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
}

.how-it-works-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(24, 64, 109, 0.15);
}

/* Карточки шагов */
.step-card {
    padding: 15px;
    background: var(--bg-white);
    border-radius: 12px;
    transition: all 0.3s;
    border-top: 4px solid transparent;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step-card:hover {
    background: var(--bg-white);
    border-top-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(24, 64, 109, 0.15);
}

.step-card-large {
    padding: 40px 35px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #18406d 0%, #0066cc 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(24, 64, 109, 0.3);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-content h3 {
    font-size: 1.2rem;
    color: #18406d;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Why Section */
.why-section {
    padding: 15px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #18406d;
    margin-bottom: 15px;
    font-weight: 600;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.why-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-gray);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-icon {
    margin-bottom: 20px;
}

.why-icon img {
    width: 80px;
    height: auto;
    margin: 0 auto;
}

.why-item h3 {
    font-size: 16px;
    color: #18406d;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.why-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Target Section */
/* Technology Section */
.technology-section {
    padding: 15px 0;
    background: linear-gradient(rgba(245, 247, 250, 0.92), rgba(245, 247, 250, 0.92)), url('../images/plugin-modules-4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.tech-image {
    text-align: center;
    margin-bottom: 40px;
}

.tech-image img {
    max-width: 900px;
    margin: 0 auto;
}

/* Flexibility Block */
.flexibility-block {
    margin: 60px 0 0 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe9dc 100%);
    border-radius: 15px;
    border: 2px solid #ffd4b8;
}

.flexibility-title {
    font-size: 1.8rem;
    color: #18406d;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    font-weight: 600;
}

.flexibility-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.flexibility-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.flexibility-list {
    list-style: none;
    padding: 0;
}

.flexibility-list li {
    padding: 5px 0 5px 30px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.flexibility-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

.flexibility-list li strong {
    color: #18406d;
}

.flexibility-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(24, 64, 109, 0.15);
}



/* Contact Section */
.contact-section {
    padding: 15px 0;
    background-image: url('../images/contact-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    pointer-events: none;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    padding: 40px;
    border-radius: 10px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.robot-check {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 15px;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background-image: url('../images/footer-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 30px 0 20px;
    position: relative;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 64, 109, 0.85);
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo img {
    height: 35px;
}

.footer-company .company-name {
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: 600;
}

.footer-company .company-details {
    font-size: 0.8rem;
    margin: 3px 0;
    line-height: 1.4;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social .social-link img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s;
}

.footer-social .social-link:hover img {
    transform: scale(1.1);
}

.footer-contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    flex: 1;
}

.contact-column h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
}

.contact-column p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

.contact-column a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-column a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a {
    color: white;
    font-size: 13px;
    opacity: 0.8;
    transition: opacity 0.3s;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .functionality-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .steps-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    

}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .top-contacts {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-title .accent {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        text-align: center;
    }
    
    .functionality-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .use-cases-section {
        padding: 30px 20px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-top: -30px;
        margin-bottom: 30px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }

    
    .flexibility-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .flexibility-block {
        padding: 25px;
        margin: 40px 0 0 0;
    }
    
    .steps-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-steps-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 30px;
    }
    
    .how-it-works-image {
        grid-row: 1 / 2;
    }
    
    .step-card {
        padding: 25px 20px;
        gap: 12px;
    }
    
    .step-card-large {
        padding: 30px 25px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-main {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-contacts {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-logo-block {
        align-items: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
