@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("../../accepts/fonts/fontawesome/webfonts/fa-solid-900.woff2") format("woff2"),
         url("../../accepts/fonts/fontawesome/webfonts/fa-solid-900.ttf") format("truetype"); 
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("../../accepts/fonts/fontawesome/webfonts/fa-brands-400.woff2") format("woff2"),
         url("../../accepts/fonts/fontawesome/webfonts/fa-brands-400.ttf") format("truetype"); 
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("../../accepts/fonts/fontawesome/webfonts/fa-regular-400.woff2") format("woff2"),
         url("../../accepts/fonts/fontawesome/webfonts/fa-regular-400.ttf") format("truetype"); 
}

.fas {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    text-align: center;
}

.header {
    margin-bottom: 40px;
    z-index: 20;
    padding: 0 20px;
    max-width: 1260px;
    animation: fadeIn 1s ease-out;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    background: linear-gradient(45deg, #6ecbf5, #a56cf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.9;
    color: #e2e8f0;
    margin: 0 auto 30px;
    line-height: 1.6;
    max-width: 700px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
    animation: slideUp 1s ease-out;
}

.feature-card {
    background: transparent;
    border-radius: 15px;
    width: 280px;
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
    min-width: 210px;
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.feature-card.flipped .feature-card-inner {
    transform: rotateY(180deg);
}

.feature-card-front, 
.feature-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card-front {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover .feature-card-front {
    background: rgba(25, 33, 52, 0.6);
}

.feature-card-back {
    background: rgba(8, 12, 25, 0.98); /* Ещё темнее и менее прозрачный */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 203, 245, 0.3);
    transform: rotateY(180deg);
    overflow-y: auto;
    text-align: center;
    padding: 25px;
}

.feature-card-back ul {
    list-style-type: none;
    padding: 0;
    width: 100%;
}

.feature-card-back li {
    background: rgba(15, 23, 42, 0.4);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.feature-card-back li:hover {
    background: rgba(110, 203, 245, 0.2);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #6ecbf5, #a56cf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #6ecbf5;
}

.feature-desc {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* CTA button */
.cta-button {
    background: linear-gradient(45deg, #6ecbf5 0%, #a56cf9 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 50px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(110, 203, 245, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 20;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    box-shadow: 0 12px 35px rgba(110, 203, 245, 0.6);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::after {
    left: 100%;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-align: left;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #6ecbf5;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #6ecbf5, #a56cf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.modal-icon {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #6ecbf5, #a56cf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.form-input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.7);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6ecbf5;
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(45deg, #6ecbf5 0%, #a56cf9 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(110, 203, 245, 0.4);
    width: 100%;
    margin-top: 10px;
}

.submit-button:hover {
    box-shadow: 0 8px 25px rgba(110, 203, 245, 0.6);
}

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

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    z-index: 15;
}

@media (max-width: 768px) {
    .features {
        gap: 20px;
    }
    
    .feature-card {
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 320px;
    }
    
    .cta-button {
        padding: 16px 40px;
        font-size: 1.3rem;
    }
    
    .modal {
        padding: 30px 20px;
    }
}