body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.header-content .contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-content .contact-info span {
    font-size: 16px;
    color: #666;
}

.header-content .contact-info a {
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
}

.header-content .contact-info a:hover {
    text-decoration: underline;
}

.hero {
    background: url('main.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Затемнение на 35% */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 1008px;
    padding: 0 20px;
}

.section-white {
    background-color: #ffffff;
}

.section-light-gray {
    background-color: #f5f5f5;
}

.contact-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.contact-button img {
    width: 24px;
    height: 24px;
}

.contact-modal,
.chatbot-modal {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.contact-modal-header,
.chatbot-modal-header {
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.contact-modal-header button,
.chatbot-modal-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.contact-modal-header button:hover,
.chatbot-modal-header button:hover {
    transform: rotate(90deg);
}

.contact-modal-body,
.chatbot-modal-body {
    max-height: 350px;
    overflow-y: auto;
    padding: 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-option {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.contact-option:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.chatbot-message {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.chatbot-message.user {
    background-color: #007bff;
    color: white;
    margin-left: 20%;
    align-self: flex-end;
}

.chatbot-message.bot {
    background-color: #e9ecef;
    color: #333;
    margin-right: 20%;
    align-self: flex-start;
}

.chatbot-message:hover {
    transform: scale(1.02);
}

.chatbot-modal-footer {
    padding: 15px 20px;
    background-color: #ffffff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-modal-footer .initial-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.chatbot-modal-footer .initial-inputs input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.chatbot-modal-footer input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-modal-footer input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.chatbot-modal-footer button {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.chatbot-modal-footer button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.input-icon {
    position: relative;
}

.input-icon-img {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
}

.input-icon input,
.input-icon textarea {
    padding-left: 40px;
    width: 100%;
}

.form-label {
    display: block;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-question {
    cursor: pointer;
    padding: 1rem;
    font-weight: 500;
    position: relative;
}

.faq-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 0 1rem 1rem;
    color: #666;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.process-step-number {
    background-color: #007bff;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.process-step img {
    width: 60px;
    height: 60px;
}

.swiper {
    width: 100%;
    padding-bottom: 30px;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

.swiper-pagination {
    bottom: 10px !important;
}

/* Спиннер для кнопки */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    header {
        display: none;
    }

    .hero {
        height: 100vh;
    }

    .hero-content {
        max-width: 90%;
        padding: 0 16px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.875rem;
    }

    .hero-content button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .contact-button {
        padding: 10px 20px;
        font-size: 14px;
        bottom: 16px;
        right: 16px;
    }

    .contact-button img {
        width: 20px;
        height: 20px;
    }

    .contact-modal,
    .chatbot-modal {
        width: 90%;
        right: 5%;
        bottom: 70px;
    }

    .contact-modal-header,
    .chatbot-modal-header {
        padding: 12px 16px;
    }

    .contact-modal-header h3,
    .chatbot-modal-header h3 {
        font-size: 16px;
    }

    .contact-modal-header button,
    .chatbot-modal-header button {
        font-size: 16px;
    }

    .contact-modal-body,
    .chatbot-modal-body {
        max-height: 300px;
        padding: 16px;
    }

    .contact-option {
        padding: 8px;
        font-size: 14px;
    }

    .chatbot-message {
        font-size: 12px;
        padding: 8px 12px;
    }

    .chatbot-modal-footer {
        padding: 12px 16px;
    }

    .chatbot-modal-footer input[type="text"] {
        font-size: 12px;
        padding: 8px;
    }

    .chatbot-modal-footer button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .chatbot-modal-footer .initial-inputs input {
        font-size: 12px;
        padding: 8px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    p,
    .text-lg,
    .text-xl {
        font-size: 0.875rem !important;
    }

    .service-card {
        padding: 16px;
    }

    .service-card img {
        width: 40px;
        height: 40px;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .process-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .process-step img {
        width: 48px;
        height: 48px;
    }

    .swiper-slide {
        padding: 16px;
    }

    .swiper-slide img {
        width: 40px;
        height: 40px;
    }

    .faq-question {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .faq-arrow {
        font-size: 12px;
        right: 0.75rem;
    }

    .faq-answer {
        padding: 0 0.75rem 0.75rem;
    }

    .form-label {
        font-size: 14px;
    }

    .input-icon input,
    .input-icon textarea {
        padding: 8px 8px 8px 32px;
        font-size: 14px;
    }

    .input-icon-img {
        left: 8px;
        width: 20px;
        height: 20px;
    }

    footer p {
        font-size: 14px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .header-content {
        padding: 10px 20px;
    }

    .hero {
        height: 60vh;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .contact-modal {
        width: 350px;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p,
    .text-lg,
    .text-xl {
        font-size: 1rem !important;
    }

    .process-step {
        gap: 1.25rem;
    }

    .swiper-slide {
        padding: 18px;
    }
}
}