﻿:root {
    --main: #f4e9d0;          /* тёмный */
    --accent: #8b0000;        /* кроваво-красный */
    --second-accent: #d4af37; /* золотой */
}

body {
    background: url('foto/index-bg.png') no-repeat center center fixed;
    background-size: cover;

}
/* ===== ГЛАВНЫЙ БЛОК ===== */
* {
    font-family: 'Merriweather', serif;
}

.hero {
    display: flex;
    height: calc(100vh - 80px);
}

/* левая часть */
.hero-content {
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    
border-radius: 12px;
    padding: 40px;

    /* анимация */
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
}

/* заголовок */
.hero-content h1 {
    background: var(--accent);
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 50px;
}

.hero-content h1 {
    position: relative;
    color: var(--second-accent);
    background: var(--accent);
    font-size: 2.5em;
    font-weight: normal;
    padding: 10px 40px;
    display: inline-block;
    line-height: 1;

    animation: fadeUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-content h1:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    left: 0;
    bottom: -15px;
    background: var(--second-accent);
}

.hero-content h1:after {
    content: "";
    position: absolute;
    height: 0;
    width: 80%;
    border-top: 10px solid var(--accent);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    left: 50%;
    transform: translateX(-50%);
    bottom: -25px;
}

/* текст */
.hero-content p {
    font-size: 18px;
 
    max-width: 800px;
    margin-bottom: 10px;

    animation: fadeUp 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-content a {
    color: black;
    text-decoration: none;
}
.hero-content a:hover {
    color: var(--accent);
    text-decoration: none;
}
.hero-content span {
    color: black;
    font-weight: bold;
    border-bottom: 1px solid var(--second-accent);
}
.hero-buttons {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* разделитель */
.divider {
    width: 80px;
    height: 4px;
    background: var(--second-accent);
    border-radius: 2px;
    margin: 30px auto;
}

/* меню внутри hero */
.hero-menu {
    margin-top: 40px;
    padding: 20px;
}

.hero-menu .portfolio-item {
    max-width: 260px;
}

/* ===== АНИМАЦИЯ ===== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        height: auto;
    }

    .hero-content {
        width: 100%;
        padding: 60px 20px;
    }
}

@keyframes pulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

