body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    /* background: #1e1e1e; */
    background: #1a1a1a;
    color: #fff;
}

header {
    background: #2a2a2a;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav a:hover {
    color: #ff6f1f;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background: #1a1a1a;
    position: relative;
}

.hero img {
    border-radius: 15px;
    max-width: 300px;
    border: 8px solid #ff6f1f;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin-right: 40px;
}

.hero-text {
    max-width: 600px;
    background: #2c2c2c;
    padding: 25px 30px;
    border-radius: 15px;
    color: #fff;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.name-box {
    background: #dcdcdc;
    color: #1e1e1e;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 20px;
}

.name-box h1 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
}

.name-box h3 {
    margin-top: 8px;
    font-size: 1rem;
    font-style: italic;
}

.hero-text p {
    margin: 20px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.hero-text a.button {
    display: inline-block;
    background-color: #ff6f1f;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hero-text a.button:hover {
    background-color: #fff;
    color: #ff6f1f;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    display: inline-block;
    background-color: #ff6f1f;
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.2rem;
    margin: 0 8px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #fff;
    color: #ff6f1f;
}

.services {
    background: #1a1a1a;
    padding: 5px 20px;
    text-align: center;
    margin-top: -20px;
}

.services h2 {
    color: #ff6f1f;
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.service-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-box {
    background: #2c2c2c;
    padding: 25px;
    border-radius: 12px;
    width: 220px;
    transition: transform 0.3s;
}

/* .service-box:hover {
    transform: translateY(-5px);
} */

.service-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 111, 31, 0.5);
}


.service-box i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ff6f1f;
}

.service-box h4 {
    margin: 10px 0;
    font-weight: bold;
}

.service-box a {
    color: #ff6f1f;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.footer {
    background: #2a2a2a;
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 40px;
}

.footer::after {
    content: "\00A9 Вячеслав Горовецкий, 2025";
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #aaa;
}

.portfolio {
    max-width: 1200px;
    margin: 50px auto 0 auto;
    padding: 0 20px 40px 20px;
}

.portfolio-title {
    color: #ff6f1f;
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1100px) {
    .portfolio-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .portfolio-items {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .portfolio-box {
        padding: 18px 8px 14px 8px;
    }
}

@media (max-width: 700px) {
    .portfolio {
        padding: 0 5px 30px 5px;
    }

    .portfolio-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-box {
        padding: 18px 8px 14px 8px;
    }
}

.portfolio-box {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 28px 24px 20px 24px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.portfolio-box:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 24px 0 rgba(255, 111, 31, 0.13);
}

.portfolio-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ff6f1f;
    font-size: 1.2em;
}

.portfolio-box p {
    margin: 0 0 10px 0;
    color: #fff;
}

.portfolio-box .button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 24px;
    background: #ff6f1f;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    min-width: 0;
    width: auto;
    font-size: 1rem;
    box-sizing: border-box;
    text-align: center;
    max-width: 180px;
}

.portfolio-box .button:hover {
    background: #ff8c42;
}

.portfolio-box strong {
    display: inline-block;
    min-width: 80px;
    font-weight: bold;
    color: #ff6f1f;
    letter-spacing: 0.5px;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.more-link {
    color: #ff6f1f;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}