/* --- 1. ОБЩИЕ СТИЛИ (Reset & Base) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Обязательно для прижатия футера */
}

body {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column; /* Делаем тело сайта колонкой */
    min-height: 100vh;
}

/* ГЛАВНЫЙ СЕКРЕТ: заставляет контент растягиваться и толкать футер вниз */
main {
    flex: 1 0 auto;
    padding-top: 60px; /* Компенсируем фиксированную шапку, чтобы контент не залезал под неё */
}

a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: oklch(70.7% 0.165 254.624);
    cursor: pointer;
}

/* --- 2. HEADER (ШАПКА) --- */
.header {
    width: 100%;
    height: 60px;
    background-color: oklch(21% .034 264.665);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.header-title {
    color: rgb(255, 255, 255);
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header-title:hover {
    color: oklch(70.7% 0.165 254.624);
}

.navigation-buttons {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navigation-buttons li a {
    font-weight: 500;
}

/* --- 3. HERO SECTION (ГЛАВНЫЙ ЭКРАН) --- */
.hero {
    width: 100%;
    min-height: 50vh; 
    background: linear-gradient(to bottom right, oklch(63.843% 0.16048 252.105), oklch(64.794% 0.2461 330.191));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 2rem;
    flex-direction: column;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem); /* Адаптивный размер шрифта */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    max-width: 600px;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.button-CV {
    background: transparent;
    border: 2px solid #ffffff;
    padding: 12px 30px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.button-CV:hover {
    background-color: #ffffff;
    color: oklch(50% 0.2 300);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* --- 4. FEATURES (КАРТОЧКИ) --- */
.features {
    padding: 5rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.features-content {
    margin-bottom: 3rem;
}

.features h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    /* Оставляем только адаптивную сетку */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-item {
    border: #bebebe solid 1px;
    padding: 2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

.features-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.features-description {
    color: #777474;
    margin: 15px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.features-button {
    background: transparent;
    border: 2px solid #000;
    padding: 10px 25px;
    border-radius: 12px;
    color: #000;
    font-weight: 600;
    transition: 0.3s;
    align-self: center;
}

.features-button:hover {
    background: #000;
    color: #fff;
}

/* --- 5. FOOTER (ПОДВАЛ) --- */
.footer {
    flex-shrink: 0; /* Чтобы футер не сжимался */
    width: 100%;
    background-color: oklch(21% .034 264.665);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem; /* Хорошие отступы сверху и снизу */
    gap: 10px;
}

.footer-text-2{
    color: #636262 !important   ;
}

.footer-text, .footer-text-2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-align: center;
}



.footer-link {
    color: oklch(70.7% 0.165 254.624) ;
    font-weight: bold;
    margin-top: 5px;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .header{
        height: auto;
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .navigation-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 25px;
    } 
}

@media (max-width: 415px) {
    main{
        padding-top: 120px; /* Увеличиваем отступ для мобильных устройств */
    }
}

/* Стили для анимации печати */
.hero-description {
    min-height: 3.2em; /* Резервируем место, чтобы контент не прыгал при появлении текста */
    display: inline-block;
}

.cursor {
    font-weight: bold;
    color: #ffffff;
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}