/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0f172a;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    /* Новый фон: цвет + картинка робота сверху */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 40px;
}

/* ===== ШАПКА ===== */
.site-header {
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.logo-accent {
    color: #3b82f6; /* Синий акцентный цвет */
}

.tagline {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== УСЛУГИ ===== */
.services {
    margin-bottom: 60px;
}

.services h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}


.service-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
}

/* ===== О НАС ===== */
.about {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
}

.about h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.1rem;
    color: #334155;
}

/* ===== ФОРМА ===== */
.cta {
    margin-bottom: 60px;
}

.cta h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.cta > p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.order-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    display: block;
    width: 100%;
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(to right, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(29, 78, 216, 0.3);
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 20px;
}

/* ===== СТРАНИЦА "СПАСИБО" ===== */
.thank-you-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.thank-you-card {
    text-align: center;
    padding: 50px;
}

.checkmark {
    font-size: 4rem;
    margin-bottom: 30px;
}

.thank-you-card h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.order-id {
    color: #3b82f6;
    font-weight: 700;
}

.confirm-text {
    font-size: 1.2rem;
    color: #555;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.back-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.back-link a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ===== ПОДВАЛ ===== */
.site-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-note {
    font-style: italic;
    margin-top: 5px;
    color: #cbd5e1;
}

.main-hero {
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.6) 70%,
        rgba(255, 255, 255, 0) 100%
    ), url("/static/img/robot-bg.jpg"); /* <- УКАЖИ ИМЯ СВОЕЙ КАРТИНКИ */
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    color: #0f172a; /* Глубокий тёмный цвет текста */
    text-align: center;
    padding: 140px 40px 60px 40px; /* Увеличил отступы для воздуха */
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px; /* Фиксируем высоту, чтобы робот не "уплывал" */
}

/* Заголовки - супер-чёткие и жирные */
.main-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 0 0 10px #fff, 0 0 20px #60a5fa, 0 0 30px #3b82f6; /* Усиленное свечение */
}

/* Лого - массивное */
.main-hero .logo {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #fff, 0 0 20px #93c5fd;
}

/* Подзаголовки - читаемые и с акцентом */
.main-hero .tagline {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #ffffff,
             0 0 15px #ffffff,
             0 0 20px #60a5fa,
             0 0 25px #3b82f6;
    color: #000000;
}

.main-hero .hero-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.6;
    max-width: 800px;
    text-shadow: 0 0 6px #ffffff,
             0 0 12px #ffffff,
             0 0 18px #93c5fd,
             0 0 22px #3b82f6;
    color: #000000;
}

.main-hero .logo-accent {
    color: #60a5fa;
    text-shadow: 0 0 4px #000000,   /* 1. Чёрная размытая обводка со всех сторон */
                 0 0 6px #000000,   /* 2. Чуть шире чёрная обводка */
                 0 0 15px #60a5fa,  /* 3. Голубое свечение */
                 0 0 25px #3b82f6;  /* 4. Синее свечение */
}

/* ===== АДАПТИВНОСТЬ ===== */
/* Уменьшаем отступ сверху для больших экранов */
@media (min-width: 769px) {
    .services h2 {
        margin-top: 140px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 50px 25px 25px 25px;
    }
    .logo {
        font-size: 2.8rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    /* Сдвигаем стрелки за пределы слайдов на мобильных */
    .swiper-button-next,
    .swiper-button-prev {
        transform: scale(0.7); /* Немного уменьшаем размер */
    }
    .swiper-button-next {
        right: -5px; /* Сдвигаем правую стрелку чуть вправо за границу */
    }
    .swiper-button-prev {
        left: -5px; /* Сдвигаем левую стрелку чуть влево за границу */
    }
    /* === АДАПТИВНОСТЬ ДЛЯ БЛОКА С РОБОТОМ (main-hero) === */
    .main-hero {
        padding: 40px 20px;
        min-height: 350px;
        background-position: center top;
    }
    .main-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    .main-hero .logo {
        font-size: 2.2rem;
    }
    .main-hero .tagline {
        font-size: 1rem;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    .main-hero .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    /* Адаптивность для карусели НЕ ДОБАВЛЯЕМ — она уже есть ниже в Swiper-блоке */
}

/* СТИЛИ ДЛЯ КАРУСЕЛИ SWIPER (ФИНАЛЬНАЯ ВЕРСИЯ) */
.services-swiper-container {
    width: 100%;
    padding: 50px 0;
    overflow: hidden;
}
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}
/* СЛАЙД: задаём ФИКСИРОВАННУЮ ширину, на которую будет опираться Swiper */
.swiper-slide {
    width: 320px !important; /* Та же ширина, что у карточки (320px, 350px, 380px) */
    height: auto;
    padding: 1px;
    box-sizing: border-box;
}
/* КАРТОЧКА: занимает всю ширину слайда */
.swiper-slide .service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 20px;
    width: 100%; /* 100% от ширины слайда (320px) */
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    justify-content: space-around;
    align-items: center;
}
/* КНОПКИ */
.swiper-button-next,
.swiper-button-prev {
    color: #3b82f6;
    border-radius: 50%;
    width: 44px;
    height: 44px;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* ГАРАНТИРОВАННЫЕ ПРАВКИ ДЛЯ СТРЕЛОК НА МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        transform: scale(0.6) !important;
        width: 35px !important;
        height: 35px !important;
    }
    .swiper-button-next {
        right: 0px !important;
    }
    .swiper-button-prev {
        left: 0px !important;
    }
    /* Дополнительно: уменьшаем слайды для надёжности */
    .swiper-slide {
        width: 280px !important;
        padding: 5px;
    }
}

/* Фикс для телефонов в альбомной ориентации */
@media (max-width: 768px) and (orientation: landscape) {
    .services h2 {
        margin-top: 40px !important; /* Или любое другое небольшое значение */
        color: #ffffff !important; /* Делаем текст белым, если нужно */
        text-shadow: 0 0 5px #000000; /* Добавляем чёрную тень для контраста */
    }
}

/* СИЛЬНЫЙ ФИКС высоты блока с роботом НА МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .main-hero {
        min-height: 380px !important; /* Принудительно задаём высоту */
    }
}