/* Герой секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    /* background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, rgba(10, 10, 10, 0) 70%); */
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.product-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: grid;
    gap: 3rem;
    align-items: center;
}

.product-description {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--text-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 110%;
    max-width:1000px;
    border-radius: 20px;
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); */
    /* border: 10px solid var(--card-bg); */
    /* transform: perspective(1000px) rotateY(-10deg); */
    transition: transform 0.5s ease;
}

.menu-profile-image {
    width: 110%;
    max-width:1000px;
    border-radius: 20px;
    transition: transform 0.5s ease;
    display: none;
}

.hero-image:hover .profile-image {
    transform: perspective(1000px) rotateY(0deg);
}

.experience-badge {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    background: linear-gradient(135deg, var(--accent), #4895ef);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
    z-index: 2;
}

.experience-years {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Секции */
.section {
    padding: 6rem 5%;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    /* display: inline-block; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
}

.section-title::after {
    content: '';
    text-align: center;
    position: absolute;
    bottom: -10px;
    left: 35%;
    width: 30%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
    border-radius: 3px;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Обо мне */
.about-content {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.signature {
    font-family: 'Brush Script MT', cursive;
    font-size: 2rem;
    color: var(--accent);
    margin-top: 1rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Услуги */
.services {
    background-color: var(--darker-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(67, 97, 238, 0.3);
}

.service-icon {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    text-align: center;
    color: var(--text-muted);
}

/* Образование */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
    text-align: left;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-year {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--accent);
    color: white;
    font-weight: bold;
    border-radius: 20px;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: calc(100% + 2rem);
}

.timeline-item:nth-child(even) .timeline-year {
    left: calc(100% + 2rem);
}

.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(67, 97, 238, 0.2);
}

/* Отзывы */
.testimonials {
    background-color: var(--darker-bg);
}

.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -1rem;
    font-size: 4rem;
    color: rgba(67, 97, 238, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.author-position {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-info {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: white;
    /* color: red; */
    transform: translateY(-3px);
}

/* Дополнения для секции "Команда" */
.team {
    background-color: var(--darker-bg);
    padding: 6rem 5%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(67, 97, 238, 0.3);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--accent);
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
}

.team-position {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .product-description {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .profile-image{
        display: none;
    }

    .menu-profile-image{
        display: flex;
    }

    /* Герой секция */
    .hero {
        padding: 10rem 5% 3rem;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .profile-image {
        width: 100%;
        max-width: 400px;
    }
    
    .experience-badge {
        position: relative;
        bottom: 0;
        left: 0;
        margin: 1rem auto;
        width: 120px;
    }
    
    /* Секции */
    .section {
        padding: 4rem 5%;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-title::after {
        left: 25%;
        width: 50%;
    }
    
    /* О компании */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        text-align: center;
    }
    
    /* Продукт */
    .product-content {
        padding: 1rem;
        gap: 2rem;
    }
    
    .product-description {
        text-align: center;
    }
    
    .product-description ul {
        text-align: left;
        padding-left: 1.5rem;
    }
    
    /* Команда */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Контакты */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    /* Таймлайн */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0 0 0 50px;
        text-align: left;
    }
    
    .timeline-year {
        left: 0;
        right: auto;
        transform: translateY(-50%) translateX(-50%);
        width: 80px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: 20px;
        right: auto;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    /* Услуги */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    /* Очень маленькие экраны */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 5%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-image {
        max-width: 300px;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Таймлайн улучшения для очень маленьких экранов */
    .timeline-item {
        padding: 0 0 0 40px;
    }
    
    .timeline-year {
        width: 70px;
        height: 30px;
        line-height: 30px;
        font-size: 0.8rem;
        left: 15px;
    }
}

/* Планшеты в портретной ориентации */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Плавные анимации для появления элементов */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}