.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0 60px;
    min-height: 70vh;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #6c8cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 20px;
    color: #8892b0;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-content .subtitle span {
    color: #6c8cff;
    -webkit-text-fill-color: #6c8cff;
}

.hero-content .description {
    font-size: 18px;
    color: #ccd6f6;
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #6c8cff;
    color: #0b0d15;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #8aa6ff;
    transform: translateY(-3px);
    color: #0b0d15;
}

.btn-outline {
    background: transparent;
    color: #ccd6f6;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: 1.5px solid rgba(108, 140, 255, 0.3);
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    border-color: #6c8cff;
    background: rgba(108, 140, 255, 0.08);
    transform: translateY(-3px);
    color: #fff;
}

/* ===== AVATAR / КРУГ ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-circle {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1f33, #0b0d15);
    border: 2px solid rgba(108, 140, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    font-weight: 800;
    color: #6c8cff;
    box-shadow: 0 0 80px rgba(108, 140, 255, 0.08);
    position: relative;
    user-select: none;
}

.avatar-circle .initials {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #6c8cff, #a0b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.avatar-circle .badge {
    font-size: 14px;
    color: #8892b0;
    -webkit-text-fill-color: #8892b0;
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* ===== СТАТИСТИКА ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 20px 0 40px;
    max-width: 500px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.stat-item .number {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.stat-item .label {
    font-size: 13px;
    color: #8892b0;
    margin-top: 2px;
}

/* ===== ПРОЕКТЫ ===== */
.projects-section {
    padding: 60px 0 20px;
}

.projects-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.projects-section h2 span {
    color: #6c8cff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 30px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 140, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card .icon {
    align-items: center;
    text-align: center;
    margin-bottom: 12px;
    display: block;
}

.project-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.project-card .domain {
    color: #6c8cff;
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
}

.project-card .domain i {
    margin-right: 6px;
}

.project-card p {
    color: #8892b0;
    font-size: 15px;
    line-height: 1.6;
}

.project-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.project-card .tags span {
    background: rgba(108, 140, 255, 0.12);
    color: #6c8cff;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* ===== СТЕК ===== */
.stack-section {
    padding: 60px 0 20px;
}

.stack-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.stack-section h2 span {
    color: #6c8cff;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.stack-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccd6f6;
}

.stack-item:hover {
    border-color: #6c8cff;
    background: rgba(108, 140, 255, 0.06);
    transform: translateY(-3px);
}

.stack-item .fa-brands,
.stack-item .fa-solid {
    color: #6c8cff;
    font-size: 18px;
}

/* ===== КОНТАКТ ===== */
.contact-section {
    padding: 60px 0 20px;
}

.contact-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-section h2 span {
    color: #6c8cff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 28px;
    align-items: start;
}

.contact-info p {
    color: #8892b0;
    font-size: 17px;
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ccd6f6;
    font-size: 17px;
    transition: color 0.3s, transform 0.2s;
}

.contact-links a:hover {
    color: #6c8cff;
    transform: translateX(4px);
}

.contact-links a i {
    width: 24px;
    color: #6c8cff;
    font-size: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
    margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6c8cff;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form button {
    background: #6c8cff;
    color: #0b0d15;
    padding: 14px 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
    background: #8aa6ff;
    transform: translateY(-2px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content .description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        max-width: 100%;
        justify-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-info p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .avatar-circle {
        width: 220px;
        height: 220px;
    }

    .avatar-circle .initials {
        font-size: 48px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-item .number {
        font-size: 22px;
    }

    .stack-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }
}

/*=============================================
                Ошибки формы
 ==============================================*/
/* ===== LABEL ДЛЯ ФОРМЫ ===== */
.contact-form .form-group {
    margin-bottom: 6px;
    position: relative;
}

.contact-form label {
    display: block;
    color: #ccd6f6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.contact-form label .required-star {
    color: #ff6b6b;
    margin-left: 2px;
}

/* ===== СТИЛИ ДЛЯ ПОЛЕЙ ===== */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6c8cff;
    box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.1);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

/* ===== ОШИБКИ ===== */
.contact-form .form-group.has-error input,
.contact-form .form-group.has-error textarea {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.05);
}

.contact-form .form-group.has-error input:focus,
.contact-form .form-group.has-error textarea:focus {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.contact-form input.error-input,
.contact-form textarea.error-input {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.05);
}

.contact-form .form-error {
    color: #ff6b6b;
    font-size: 13px;
    padding: 6px 0 12px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-form .form-error i {
    font-size: 14px;
}

.contact-form .form-error-general {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    color: #ff8a8a;
}