* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    background: #f7f4ef;
    color: #2b2b2b;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ================= ШАПКА ================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    border-bottom: 1px solid #e8e3d8;
    position: sticky;
    top: 0;
    background: rgba(247,244,239,0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2b2b2b;
}

nav a {
    color: #7a7468;
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: #a89676;
}

/* ================= ГЛАВНЫЙ БЛОК ================= */
.hero {
    padding: 140px 60px 120px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    background: linear-gradient(rgba(247,244,239,0.85), rgba(247,244,239,0.95)),
                url('images/hero-bg.jpg') center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-label {
    color: #a89676;
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 72px;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #2b2b2b;
}

.typed {
    color: #a89676;
}

.cursor {
    color: #a89676;
    font-weight: 300;
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-desc {
    font-size: 19px;
    color: #6b665d;
    max-width: 560px;
    margin-bottom: 45px;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    background: #2b2b2b;
    color: #f7f4ef;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
    font-weight: 600;
}

.btn:hover {
    background: #a89676;
    transform: translateX(5px);
}

/* ================= ЧАСТИЦЫ ================= */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: #a89676;
    opacity: 0.15;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0); }
    100% { transform: translateY(-100px) translateX(50px); }
}

/* ================= ОБЩЕЕ ================= */
section {
    padding: 100px 60px;
}

.section-head {
    margin-bottom: 60px;
}

.section-label {
    color: #a89676;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

h2 {
    font-size: 52px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 700;
    color: #2b2b2b;
}

.section-desc {
    color: #8b8578;
    font-size: 17px;
    max-width: 500px;
}

/* ================= ПОЯВЛЕНИЕ ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= РАБОТЫ ================= */
.works {
    background: #efeae0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1300px;
}

.work-card {
    background: #f7f4ef;
    border: 1px solid #e8e3d8;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform-style: preserve-3d;
}

.work-card:hover {
    box-shadow: 0 25px 50px rgba(43,43,43,0.12);
    border-color: #a89676;
}

.work-preview {
    height: 240px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    background-size: cover;
    background-position: top center;
    transition: 0.4s;
}

.work-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 50%);
    transition: 0.4s;
}

.work-card:hover .work-preview::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 50%);
}

.work-tag {
    background: rgba(255,255,255,0.95);
    color: #2b2b2b;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 15px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.work-info {
    padding: 30px 25px 35px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.work-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #2b2b2b;
}

.work-info p {
    color: #8b8578;
    font-size: 14px;
    margin-bottom: 20px;
    flex: 1;
}

.work-link {
    color: #a89676;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
    align-self: flex-start;
}

.work-link:hover {
    color: #2b2b2b;
    letter-spacing: 2px;
}

/* ================= О СЕБЕ ================= */
.about {
    background: #f7f4ef;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.about-photo {
    height: 550px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.about-text h2 {
    margin-bottom: 30px;
}

.about-text p {
    color: #6b665d;
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-link {
    color: #a89676;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 15px;
    transition: 0.3s;
    border-bottom: 1px solid #a89676;
    padding-bottom: 3px;
}

.about-link:hover {
    color: #2b2b2b;
    border-bottom-color: #2b2b2b;
}

/* ================= НАВЫКИ ================= */
.skills {
    background: #efeae0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1300px;
}

.skill {
    padding: 30px 0;
    border-top: 2px solid #2b2b2b;
}

.skill-num {
    color: #a89676;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.skill h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #2b2b2b;
}

.skill p {
    color: #8b8578;
    font-size: 14px;
    line-height: 1.6;
}

/* ================= КОНТАКТЫ ================= */
.contacts {
    background: #f7f4ef;
    text-align: center;
}

.contacts .section-head {
    text-align: center;
}

.contacts .section-desc {
    margin: 0 auto;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    background: #efeae0;
    border: 1px solid #e8e3d8;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.contact-card:hover {
    border-color: #a89676;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(168,150,118,0.15);
}

.contact-label {
    color: #a89676;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-value {
    font-size: 22px;
    font-weight: 700;
    color: #2b2b2b;
    letter-spacing: -0.5px;
}

.big-btn {
    display: inline-block;
    padding: 22px 60px;
    background: #2b2b2b;
    color: #f7f4ef;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.3s;
}

.big-btn:hover {
    background: #a89676;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(168,150,118,0.3);
}

/* ================= ПОДВАЛ ================= */
footer {
    background: #2b2b2b;
    color: #8b8578;
    padding: 60px 40px 30px;
    text-align: center;
}

.footer-logo {
    color: #f7f4ef;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-text {
    color: #a89676;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.copyright {
    padding-top: 25px;
    border-top: 1px solid #3a3a3a;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ================= АДАПТИВ ================= */
@media (max-width: 900px) {

    header {
        padding: 20px 25px;
        flex-direction: column;
        gap: 15px;
    }

    nav a {
        margin: 0 10px;
        font-size: 13px;
    }

    .hero {
        padding: 80px 25px 70px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero-desc {
        font-size: 16px;
    }

    section {
        padding: 60px 25px;
    }

    h2 {
        font-size: 34px;
    }

    .section-desc {
        font-size: 15px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .work-preview {
        height: 200px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-photo {
        height: 350px;
    }

    .about-text p {
        font-size: 15px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill {
        padding: 25px 0;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 25px;
    }

    .contact-value {
        font-size: 18px;
    }

    .big-btn {
        padding: 18px 40px;
        font-size: 13px;
    }

    footer {
        padding: 50px 25px 25px;
    }

    .work-card {
        transform: none !important;
    }
}