/* about page */
/* Основной контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Секция основателя */
.founder {
    padding: clamp(2rem, 6vw, 6rem) 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.founder__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.founder__image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: clamp(12px, 2vw, 20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
    max-height: 600px;
}

.founder__image:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.founder__content {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 2rem);
}

.founder__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.founder__text {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    max-width: 65ch;
    color: rgba(255, 255, 255, 0.9);
}

/* Секция команды */
.team {
    padding: 6rem 0;
    background: white;
}

.team__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text);
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.team-member {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.team-member__icon {
    width: 80px;
    height: 80px;
    margin: 2rem auto;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.team-member__content {
    padding: 1.5rem;
    text-align: center;
}

.team-member__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-member__description {
    font-size: 0.9rem;
    color: #64748b;
}

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

/* Адаптивность */
@media (max-width: 968px) {
    .founder__container {
        grid-template-columns: 1fr;
    }

    .founder__image {
        max-width: min(100%, 500px);
        margin: 0 auto;
        aspect-ratio: 4/3;
    }

    .founder__content {
        text-align: center;
        align-items: center;
    }

    .founder__text {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .founder {
        padding: 2rem 0;
    }

    .founder__title {
        font-size: 1.75rem; /* Уменьшил размер заголовка */
        margin-bottom: 1rem;
    }

    .founder__text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .team__title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .team-member {
        transform: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .founder__title {
        font-size: 1.5rem;
    }

    .team__grid {
        gap: 1rem;
    }

    .founder__image {
        aspect-ratio: 1/1;
        transform: none;
    }
    
    .founder__image:hover {
        transform: none;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    .founder {
        background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    }
}

/* Поддержка отключенной анимации */
@media (prefers-reduced-motion: reduce) {
    .founder__image {
        transform: none;
        transition: none;
    }
    
    .founder__image:hover {
        transform: none;
    }
}