/* Основные стили и сброс */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #2A41E8;
    --secondary-color: #E9F0FF;
    --accent-color: #FF5A5F;
    --text-color: #4A4A4A;
    --text-light: #7A7A7A;
    --bg-light: #FFFFFF;
    --bg-dark: #F9FAFE;
    --shadow-soft: 0 10px 30px rgba(42, 65, 232, 0.07);
    --shadow-strong: 0 15px 40px rgba(42, 65, 232, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.2rem;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

section {
    padding: 100px 0;
}

section:nth-child(odd) {
    background-color: var(--bg-dark);
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

/* Кнопки */
.cta-button, .service-button, .submit-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.cta-button:before, .service-button:before, .submit-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.cta-button:hover:before, .service-button:hover:before, .submit-button:hover:before {
    left: 100%;
}

.cta-button:hover, .service-button:hover, .submit-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: var(--bg-light);
}

.service-button {
    padding: 10px 24px;
    font-size: 12px;
}

/* Шапка и навигация */
header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 35px;
}

.nav-link {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Hero секция */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, rgba(42, 65, 232, 0.8) 0%, rgba(56, 84, 236, 0.75) 100%), url('../img/1ccCKz.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(200px, -300px);
}

.hero-section:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-200px, 200px);
}

.hero-section h1, .hero-section p {
    color: var(--bg-light);
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    margin-bottom: 20px;
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content {
    max-width: 600px;
    margin-bottom: 40px;
    position: relative;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 35px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-strong);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.hero-image {
    display: none; /* Скрываем изображение, так как теперь оно используется как фон */
}

/* О компании */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.about-image:before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* Преимущества */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(42, 65, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background-color: var(--primary-color);
}

.benefit-icon i {
    width: 40px;
    height: 40px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon i {
    filter: brightness(0) invert(1);
}

.benefit-expertise {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A41E8'%3E%3Cpath d='M12 2L1 21h22L12 2zm0 4l7.53 13H4.47L12 6zm-1 5v4h2v-4h-2zm0 6v2h2v-2h-2z'/%3E%3C/svg%3E");
}

.benefit-personalized {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A41E8'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.benefit-technology {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A41E8'%3E%3Cpath d='M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z'/%3E%3C/svg%3E");
}

.benefit-confidentiality {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A41E8'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-card h3, .service-card ul {
    padding: 0 25px;
}

.service-card h3 {
    margin-top: 25px;
    color: #333;
}

.service-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.service-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.service-card ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.service-card .service-button {
    display: block;
    margin: auto auto 25px;
    width: fit-content;
    margin-top: auto;
}

/* Отзывы */
.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 30px 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    min-width: 320px;
    flex: 1;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.testimonial-content {
    position: relative;
    margin-bottom: 25px;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.testimonial-author p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    position: relative;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    padding-right: 30px;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question:after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
    padding-bottom: 25px;
    max-height: 500px;
}

/* Форма контактов */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.contact-info:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    margin-top: 3px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.contact-address {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A41E8'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.contact-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A41E8'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.contact-email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A41E8'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

/* Стили для ошибок формы */
.form-errors {
    background-color: rgba(255, 90, 95, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.error-message {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.error-message:last-child {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e1e1e1;
    background-color: var(--bg-light);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 65, 232, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.5;
}

.submit-button {
    width: 100%;
    margin-top: 15px;
    padding: 16px;
}

/* Карта */
.map-section {
    padding: 0;
    position: relative;
}

.map-container {
    position: relative;
    height: 450px;
}

.map-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    z-index: 10;
    max-width: 350px;
    box-shadow: var(--shadow-soft);
}

.static-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3);
}

.static-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.map-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-light);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    box-shadow: var(--shadow-soft);
}

/* Подвал */
footer {
    background-color: #2B2D42;
    color: var(--bg-light);
    padding: 70px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
}

.footer-col h3 {
    color: var(--bg-light);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-col p, .footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col a:hover {
    color: var(--bg-light);
    padding-left: 5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-bottom {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background-color: #22243b;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    max-width: 380px;
    z-index: 1000;
    display: none;
    border-top: 4px solid var(--primary-color);
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s ease forwards;
}

.cookie-popup p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-accept {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.cookie-accept:hover {
    background-color: var(--accent-color);
}

.cookie-info {
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.cookie-info:hover {
    background-color: var(--text-light);
    color: var(--bg-light);
}

/* Анимации */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 150px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image,
    .contact-form {
        margin-top: 40px;
    }
    
    section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        height: calc(100vh - 70px);
        transition: var(--transition);
        padding: 30px 20px;
        box-shadow: var(--shadow-soft);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .hero-section {
        padding-top: 130px;
        padding-bottom: 80px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 25px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .benefits-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        min-width: 280px;
    }
    
    .map-overlay {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding-top: 120px;
        padding-bottom: 70px;
        background-position: right center;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 350px;
    }
    
    .cookie-popup {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: calc(100% - 30px);
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
} 