/* Дополнительные отступы для мобильной версии */
@media (max-width: 768px) {
    .hero-actions {
        margin-bottom: 30px; /* Добавляем отступ после кнопок */
    }
    
    .hero-actions .btn {
        margin-bottom: 10px; /* Отступ между кнопками, если они в колонку */
    }
    
    /* Если кнопки в ряд на планшетах */
    .hero-actions {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        margin-bottom: 40px; /* Увеличиваем отступ на маленьких экранах */
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Убираем нижний отступ у последней кнопки, чтобы не было двойного */
    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }
} 

/* Основные переменные */
:root {
    --red: #e31b23;
    --dark-red: #b0000b;
    --black: #1a1a1a;
    --dark-gray: #2d2d2d;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #6c6c6c;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 25px rgba(227, 27, 35, 0.15);
    --transition: all 0.3s ease;
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
}

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

/* Типографика */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80px, 20vw);
    height: 3px;
    background: var(--red);
}

/* Цветовые акценты */
.red-text { color: var(--red); }
.black-text { color: var(--black); }
.white-text { color: var(--white); }

/* Кнопки */
.btn {
    display: inline-block;
    padding: clamp(10px, 3vw, 12px) clamp(20px, 5vw, 30px);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: clamp(0.9rem, 3vw, 1rem);
    white-space: nowrap;
    text-align: center;
}

.btn-red {
    background: var(--red);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-red:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--red);
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: clamp(12px, 4vw, 15px) clamp(30px, 8vw, 40px);
    font-size: clamp(1rem, 4vw, 1.1rem);
    width: 100%;
    max-width: 300px;
}

/* Шапка и навигация */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--red);
    font-family: 'Roboto Mono', monospace;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--black);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2rem);
}

.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s;
    font-size: clamp(0.9rem, 2vw, 1rem);
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--red);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
}

/* Переключатель языка */
.lang-switcher {
    display: flex;
    gap: 0.3rem;
    background: var(--light-gray);
    padding: 0.2rem;
    border-radius: 30px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--gray);
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--red);
    color: var(--white);
}

/* Главный экран */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 80px 5% 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--white) 50%, var(--red) 50%);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--red);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-right: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.hero-location .location-icon {
    font-size: 1.3rem;
}

.hero-location .location-text {
    font-weight: 500;
    color: var(--dark-gray);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.badge {
    background: var(--light-gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 500;
    color: var(--black);
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-photo {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame {
    width: min(350px, 70vw);
    height: min(450px, 90vw);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--white);
    background: var(--white);
    position: relative;
}

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

/* Обо мне */
.about {
    padding: clamp(60px, 10vw, 100px) 5%;
    background: var(--light-gray);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text .about-quote {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    font-weight: 500;
    color: var(--red);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--dark-gray);
    line-height: 1.8;
}

/* Образование */
.about-education {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.education-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--dark-gray);
    flex-wrap: wrap;
    text-align: center;
}

.education-icon {
    font-size: 1.3rem;
}

/* Опыт */
.experience {
    padding: clamp(60px, 10vw, 100px) 5%;
    background: var(--black);
}

.experience .section-title {
    color: var(--white);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.exp-card {
    background: var(--white);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    height: 100%;
}

.exp-card:hover {
    transform: translateY(-10px);
}

.exp-card.ambassador {
    border-top: 4px solid var(--red);
}

.exp-company {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.exp-company img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--light-gray);
    object-fit: contain;
}

.exp-company h3 {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    margin-bottom: 0.2rem;
}

.exp-position {
    color: var(--red);
    font-weight: 600;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.exp-period {
    color: var(--gray);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    margin-bottom: 1rem;
    font-family: 'Roboto Mono', monospace;
}

.exp-desc {
    list-style: none;
}

.exp-desc li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: clamp(0.9rem, 2.5vw, 0.95rem);
    line-height: 1.5;
}

.exp-desc li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--red);
}

/* Пет-проекты */
.projects {
    padding: clamp(60px, 10vw, 100px) 5%;
    background: var(--white);
}

.projects-coming-soon {
    text-align: center;
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
    background: var(--light-gray);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: clamp(3rem, 8vw, 4rem);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.projects-coming-soon h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--black);
    margin-bottom: 1rem;
}

.projects-coming-soon p {
    color: var(--gray);
    font-size: clamp(1rem, 3vw, 1.1rem);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Контакты */
.contact {
    padding: clamp(60px, 10vw, 100px) 5%;
    background: linear-gradient(135deg, var(--red) 0%, #b0000b 100%);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title::after {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.contact-info p {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(0.8rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    word-break: break-word;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    border-color: var(--white);
}

.contact-link .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.contact-cta p {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Футер */
.footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2rem);
}

.footer p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    opacity: 0.9;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        background: var(--white);
        padding-top: 20px;
        gap: 2rem;
    }
    
    .hero::before {
        display: none;
    }
    
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    
    .hero-title {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .hero-location {
        justify-content: center;
    }
    
    .hero-photo {
        order: 1;
    }
    
    .photo-frame {
        margin: 0 auto;
    }
    
    .about-text {
        text-align: left;
    }
    
    .about-text .about-quote {
        text-align: left;
    }
    
    .education-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .exp-company {
        flex-direction: column;
        text-align: center;
    }
    
    .exp-company img {
        margin-bottom: 0.5rem;
    }
    
    .contact-link:hover {
        transform: none;
    }
    
    .contact-cta .btn-large {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .badge {
        white-space: normal;
        text-align: center;
        width: 100%;
    }
    
    .contact-links {
        width: 100%;
    }
    
    .contact-link {
        width: 100%;
    }
}

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

.hero-content, .hero-photo, .about-content, .exp-card {
    animation: fadeIn 0.8s ease-out forwards;
}
