/* Автопрефиксы добавлены, gap заменён на margin fallback */
/* Base styles */
.clickable-link{

color:#000;}
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    /* Добавьте или измените эти строки: */
    min-height: 150px; /* Минимальная высота, например, 150px */
    resize: vertical; /* Разрешить пользователю изменять размер только по вертикали */
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.2);
}

:root {
    --primary: #1e73be;
    --primary-dark: #165a9c;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fff;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 115, 190, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(30, 115, 190, 0.1);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--secondary);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--gray);
}

/* --- Header Layout --- */
header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed; /* Keep it fixed at the top */
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content { /* Applied to .container inside header */
    display: flex;
    justify-content: space-between; /* Distributes items along the line */
    align-items: center; /* Vertically aligns items in the center */
    flex-wrap: nowrap; /* Prevent wrapping on large screens */
    gap: 20px; /* Space between main elements */
}

/* --- Logo --- */
.header-content .logo { /* Specificity for header logo */
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.8rem;
    flex-shrink: 0; /* Prevent shrinking */
    /* Remove justify-content: center; align-items: center; from here as it's now handled by header-content */
}

.logo-image { /* General logo image styles */
    border-radius: 12px;
    transition: transform 0.3s ease;
    margin-right: 15px;
}

.logo-image:hover {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text { /* General logo text styles */
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap; /* Keep logo text on one line */
}

.logo-text span {
    color: var(--primary);
    font-weight: 700;
}

/* --- Main Navigation (centered) --- */
.main-nav {
    flex-grow: 1; /* Allows navigation to take up available space */
    display: flex;
    justify-content: center; /* Centers the navigation links */
}

.main-nav ul { /* Targeting ul inside main-nav */
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Align items vertically if they have different heights */
    gap: 30px; /* Space between menu items */
}

.main-nav ul li a.nav-link { /* Nav link styles */
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
    padding: 5px 0; /* Add padding for better hover area */
}

.main-nav ul li a.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav ul li a.nav-link:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a.nav-link:hover {
    color: var(--primary);
}

/* --- Right Controls (Phone & Language) --- */
.header-right-controls { /* New wrapper for phone and language */
    display: flex;
    align-items: center;
    gap: 20px; /* Space between phone and language switcher */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Phone Number Button */
.nav-phone { /* Specificity for nav-phone in header-right-controls */
    display: flex;
    align-items: center;
    background: var(--primary);
    color: white !important; /* Force white text */
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap; /* Keep phone number on one line */
    transition: var(--transition);
}

.nav-phone i {
    margin-right: 8px;
}

.nav-phone:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 115, 190, 0.3);
}

.nav-phone::after { /* Remove underline for phone button */
    display: none;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden; /* Ensures rounded corners */
}

.lang-switcher .lang-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-switcher .lang-option img {
    margin-right: 5px;
    border-radius: 2px; /* Slight roundness for flags */
}

.lang-switcher .lang-option.active {
    background-color: var(--primary); /* Use primary color for active */
    color: white;
}

.lang-switcher .lang-option:not(.active):hover {
    background-color: var(--light-gray); /* Light gray for hover */
    color: #333;
}


/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    color: var(--secondary);
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: 15px;
    position: relative; /* Необходимо для работы z-index */
    z-index: 1002; /* Сделайте его выше, чем z-index хедера (1000) и меню (999) */
}


/* --- Language Modal Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Center vertically and horizontally */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8em;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 36px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

.modal-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.modal-lang-switcher .lang-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    border: 2px solid #007bff;
    border-radius: 8px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-lang-switcher .lang-option img {
    margin-bottom: 10px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modal-lang-switcher .lang-option span {
    margin-top: 5px;
}

.modal-lang-switcher .lang-option:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,123,255,0.2);
}

.modal-lang-switcher .lang-option.active {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* Animation for modal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Form Message Styles */
.form-message {
    display: none;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
    animation: fadeIn 0.5s ease;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Hero section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.circle {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.tech-image {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Services section */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    padding: 30px;
    text-align: center;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(30, 115, 190, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.service-card ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--light-gray);
    display: flex;
    align-items: center;
}

.service-card ul li:before {
    content: "\2713"; /* Check if this char is correct for checkmark or replace with unicode */
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 20px;
}

/* About section */
.about {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
}

.dots {
    position: absolute;
    width: 100%;
    height: 100%;
   
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: 1;
    border-radius: 15px;
}
.logo2{
width: 500px; 
height: auto;
}
.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    position: relative;
    z-index: 2;
    transform: rotate(-3deg);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 5px;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

/* Advantages section */
.advantages {
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.advantage-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(30, 115, 190, 0.1);
    margin-bottom: 15px;
    line-height: 1;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Contact section */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.contact .container {
    display: grid;
       grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.contact-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-form h2 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.contact-form p {
    color: var(--gray);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.2);
}

.contact-info h2 {
    margin-bottom: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: white;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4,
.footer-contacts h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contacts h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contacts ul {
    list-style: none;
}

.footer-contacts ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-contacts ul li i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-methods i {
    font-size: 2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.payment-methods i:hover {
    opacity: 1;
}

/* WhatsApp button */
.whatsapp-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.whatsapp-chat a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-chat a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive styles */
@media (max-width: 992px) {
    /* Hide desktop specific elements */
    .main-nav,
    .header-right-controls {
 
    }

    /* Show mobile menu toggle */
    .menu-toggle {
        display: block;
    }

    /* Adjust header container for mobile */
    .header-content {
        justify-content: space-between; /* Logo left, toggle right */
        padding: 0 15px; /* Add some horizontal padding */
    }

    /* Adjust logo size for smaller screens */
    .header-content .logo .logo-image {
        width: 60px;
        height: 48px;
        margin-right: 8px; /* Reduce margin */
    }
    .header-content .logo .logo-text {
        font-size: 1.5em;
    }

    /* Hero section adjustments */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .about .container {
        flex-direction: column;
    }

    .contact .container {
        grid-template-columns: 1fr;
    }

    /* Mobile Navigation Specific Styles (when active) */
    nav ul#menu { /* This targets the actual menu list */
        position: fixed;
        top: 80px; /* Adjust based on your header height */
        left: -100%; /* Initially off-screen */
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: left 0.5s ease; /* Smooth slide-in */
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 25px;
        z-index: 999; /* Ensure it's above other content */
        height: calc(100vh - 80px); /* Take full height minus header */
        overflow-y: auto; /* Enable scrolling for long menus */
    }

    nav ul#menu.active {
        left: 0; /* Slide in */
    }

    nav ul#menu li {
        margin: 0; /* Remove default list item margins */
    }

    /* Ensure phone and language switcher are visible and styled correctly in the mobile menu */
    nav ul#menu .nav-phone {
        display: flex; /* Override display: none from desktop styles */
        margin: 20px auto 10px auto; /* Center it with top/bottom margin */
        width: fit-content; /* Adjust width to content */
    }

    nav ul#menu .lang-switcher {
        display: flex; /* Override display: none from desktop styles */
        justify-content: center;
        margin: 10px auto 20px auto; /* Center it with top/bottom margin */
        width: fit-content; /* Adjust width to content */
    }
}

@media (max-width: 768px) {
    /* Styles already handled by 992px breakpoint, or can be refined here if needed */
    .section-title {
        font-size: 2rem;
    }
.logo2{
width: 300px; 
height: 300px;
}
.image-frame {
    position: relative;
    width: 100%;
    max-width: 300px;
    max-height: 300px;
}

}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}