:root {
      --main: #f4e9d0;
    --accent: #8b0000;        /* кроваво-красный */
    --second-accent: #d4af37; /* золотой */
}

body {
    margin: 0;
    background-color: var(--main);
    overflow-x: hidden;
      background: url("foto/About-bg.png") no-repeat center center fixed;
    background-size: cover;
}

/* На странице "О проекте" не привязываем видимость контента к анимации из "Тело главной.css" */
.hero-content {
    opacity: 1;
    transform: none;
    animation: none;
}

.top-space, .bottom-space {
    height: 60px;
    background-color: var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.bottom-space {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 0;
}

/* Основной блок */
.about-box {
    background: var(--main);
    padding: 60px;
    width: 87%;
    max-width: 800px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    border-radius: 2px;
    animation: fadeIn 1s ease;
}

.zag {
    margin-bottom: 40px;
    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;
}

.zag:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    left: 0;
    bottom: -15px;
    background: var(--second-accent);
}

.zag: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;
}

/* текст */

.highlight-text a {
    color: black;
    text-decoration: none;
}
.highlight-textt a:hover {
    color: var(--accent);
    text-decoration: none;
}
.highlight-text span {
    color: black;
    font-weight: bold;
    border-bottom: 1px solid var(--second-accent);
}
.highlight-text {
    font-size: 20px;
    line-height: 1.6;
 }

 

.description {
      text-align: justify;

     margin: 15px 0;
}

/* список */
.sections-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.section-item {
    padding: 12px 25px;
    width: 500px;
    border-left: 4px solid var(--second-accent);
    text-align: left;
    font-size: 18px;
    transition: 0.3s;
    color: #ddd;
    background:var(--accent);
}

.section-item:hover {
    transform: translateX(10px);
        background: var(--second-accent);
}

/* анимация */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}