/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Базовые стили */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1 {
    font-family: 'Bebas Neue Cyrillic', sans-serif;
    color: #141453;
    font-size: clamp(28px, 5vw, 45px);
    letter-spacing: 2px;
    padding: 0;
    margin: 15px 0;
    line-height: 0.9;
    animation: fadeInUp 0.8s ease-out;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #141453;
    font-size: clamp(14px, 2.5vw, 18px);
    letter-spacing: 0.5px;
    line-height: 1.5;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #141453;
    font-size: clamp(12px, 2vw, 16px);
}

.spacer {
    height: 15px;
    width: 100%;
}

.color-1 {
    color: #3F3BFF;
}

.color-1bg {
    background-color: #3F3BFF;
    background: linear-gradient(135deg, #3F3BFF 0%, #5A56FF 100%);
    position: relative;
    overflow: hidden;
}

.color-1bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.color-2 {
    color: #FF688A;
}

.color-2bg {
    background-color: #FF688A;
}

.white-text {
    color: white;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.content-section {
    min-height: auto;
    padding: 40px 20px;
}

.underline {
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-color: #FF688A;
}

.underline-thick {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 15px;
    text-decoration-color: #FF688A;
}

.underline-color {
    text-decoration: underline;
    text-decoration-color: #FF688A;
    text-underline-offset: 8px;
}

/* Карточки преимуществ */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInLeft 0.8s ease-out;
    max-width: 400px;
}

/* Hover только для устройств с курсором */
@media (hover: hover) and (pointer: fine) {
    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(63, 59, 255, 0.3);
    }
}

/* Для touch-устройств - активный эффект вместо hover */
@media (hover: none) and (pointer: coarse) {
    .feature-card:active {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }
    
    .submit-btn:active {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(63, 59, 255, 0.2);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    margin: 40px 0;
}

/* Форма обратной связи */
.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #141453;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3F3BFF;
}

.submit-btn {
    background: linear-gradient(135deg, #3F3BFF 0%, #FF688A 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

/* Список функций */
.features-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.features-list h2 {
    position: relative;
    padding-left: 30px;
    margin: 15px 0;
}

.features-list h2::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FF688A;
    font-weight: bold;
    font-size: 20px;
}

/* Адаптивность */
@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        max-width: 800px;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 15px;
        min-height: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .feature-card {
        margin: 10px 0;
        max-width: none;
    }
    
    .contact-form {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    h1 {
        font-size: clamp(24px, 6vw, 35px);
    }
    
    h2 {
        font-size: clamp(12px, 3vw, 16px);
    }
}

@media (max-width: 480px) {
    section {
        padding: 30px 10px;
    }
    
    .features-grid {
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px;
        margin: 5px 0;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 25px;
    border-radius: 15px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 350px;
    word-wrap: break-word;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.notification .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification .close-btn:hover {
    opacity: 1;
}

.notification .icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
}

/* Адаптивность для уведомлений */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}