:root {
    --primary: #6366f1;
    --secondary: #4f46e5;
    --accent: #06b6d4;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --success: #10b981;
    --bg: #ffffff;
    --text: #1e293b;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #0f172a;
    --shadow: rgba(99, 102, 241, 0.1);
    --border: #e2e8f0;
}

.dark-theme {
    --primary: #818cf8;
    --secondary: #6366f1;
    --accent: #22d3ee;
    --light: #1e293b;
    --dark: #f1f5f9;
    --gray: #94a3b8;
    --bg: #0f172a;
    --text: #f1f5f9;
    --card-bg: #1e293b;
    --header-bg: #1e293b;
    --footer-bg: #020617;
    --shadow: rgba(0, 0, 0, 0.4);
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contacts-header {
    display: flex;
    align-items: center;
}

.contacts-header a {
    margin-left: 15px;
    color: var(--primary);
    text-decoration: none;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: var(--light);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 100px 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1e88e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* О нас */
.about {
    padding: 80px 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

/* Карусель преимуществ */
.benefits-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    height: 400px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    position: relative;
    box-sizing: border-box;
} 

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, #10b981, #059669);
}

.carousel-slide:nth-child(4) {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.carousel-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.carousel-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.carousel-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: white;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-arrow.prev {
    left: 15px;
}

.carousel-arrow.next {
    right: 15px;
}

/* Статический блок преимуществ для мобильных */
.benefits-static {
    display: none;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.benefit-item p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Управление видимостью для разных устройств */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Мобильная версия */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    /* Скрываем карусель на мобильных */
    .desktop-only {
        display: none;
    }
    
    /* Показываем статический блок на мобильных */
    .mobile-only {
        display: block;
    }
    
    .benefits-static {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .benefit-item {
        background: var(--card-bg);
        border-radius: 12px;
        padding: 25px 20px;
        text-align: center;
        box-shadow: 0 5px 15px var(--shadow);
        border: 1px solid var(--border);
        transition: all 0.3s ease;
    }
    
    .benefit-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px var(--shadow);
    }
    
    .benefit-icon {
        font-size: 2.5rem;
        color: var(--primary);
        margin-bottom: 15px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .benefit-item h3 {
        font-size: 1.2rem;
        color: var(--secondary);
        margin-bottom: 12px;
        font-weight: 600;
    }
    
    .benefit-item p {
        color: var(--text);
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0;
    }
}

/* Для очень маленьких мобильных */
@media (max-width: 480px) {
    .benefits-static {
        gap: 15px;
    }
    
    .benefit-item {
        padding: 20px 15px;
    }
    
    .benefit-icon {
        font-size: 2rem;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .benefit-item h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .benefit-item p {
        font-size: 0.9rem;
    }
}

/* Роудмэп */
.roadmap {
    padding: 80px 0;
}

.roadmap-steps {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 40px 0;
}

.roadmap-steps::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--accent);
}

.step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 30px;
    z-index: 1;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-bottom: 20px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.highlight {
    background: linear-gradient(120deg, #c084fc, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Команда */
.team {
    padding: 80px 0;
    background-color: var(--light);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.member {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--border);
}

.member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.member-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

.member-info p {
    color: var(--gray);
    margin-bottom: 15px;
}

.member-contacts {
    display: flex;
    gap: 10px;
}

.member-contacts a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Модальное окно с детальной информацией */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.modal {
    background-color: var(--card-bg);
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
    position: relative;
    border: 1px solid var(--border);
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    z-index: 10;
}

.modal-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.modal-photo {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
}

.modal-info h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.modal-info .position {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-info .bio {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text);
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item i {
    color: var(--primary);
    width: 20px;
}

.detail-item span {
    color: var(--text);
}

/* Форма запроса */
.contact-form {
    padding: 80px 0;
}

form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: var(--bg);
    color: var(--text);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}

textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--secondary);
}

/* Контакты */
.contacts {
    padding: 80px 0;
    background-color: var(--light);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

.contact-details p {
    color: var(--text);
}

/* Подвал */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.footer-logo p {
    color: #bbb;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--header-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px var(--shadow);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    nav ul li {
        margin: 15px 0;
        text-align: center;
    }
    
    nav ul li a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
    }
    
    /* Улучшаем шапку */
    .header-content {
        padding: 12px 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .contacts-header {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .roadmap-steps::before {
        left: 25px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        margin-right: 20px;
        font-size: 1.2rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .step {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .roadmap-steps::before {
        left: 25px;
        top: 0;
        bottom: 0;
    }
}  

@media (max-width: 768px) {
    .modal {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-photo {
        width: 150px;
        height: 150px;
        margin: 0 auto 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-info .position {
        font-size: 1.1rem;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    form {
        padding: 25px;
        margin: 0 10px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    input, textarea, select {
        padding: 10px;
        font-size: 16px; /* Предотвращает зум в iOS */
    }
    
    .btn-submit {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        min-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Улучшения для тач-устройств */
@media (hover: none) and (pointer: coarse) {
    .member:hover {
        transform: none; /* Убираем hover-эффекты на тач-устройствах */
    }
    
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Увеличиваем область клика для интерактивных элементов */
    nav ul li a,
    .carousel-dot,
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
