:root {
      --main: #f4e9d0;
    --accent: #8b0000;
    --second-accent: #d4af37;
}


/* ОБЩИЕ СТИЛИ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--accent);
    background: url("foto/norm-prav/norm-prav bg.jpeg") no-repeat center center fixed;
    background-size: cover;
}


/* ОСНОВНОЙ КОНТЕЙНЕР */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* УНИВЕРСАЛЬНЫЙ БЛОК */
.section-box {
    max-width: 1100px;
    margin: 40px auto;
    background: #f4e9d0; /* мягкий светлый фон под золото */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ХЕДЕР */
header {
    background: var(--main);
    display: flex;
    align-items: center;
    padding: 10px;
}

.menu-btn {
    background: var(--accent);
    color: white;
    padding: 10px;
    margin-right: 20px;
    cursor: pointer;
}

nav a {
    color: var(--second-accent);
    margin: 0 15px;
    text-decoration: none;
    font-size: 10px;
}
.card span {
    font-size: 13px;
}
.card span {
    font-size: 13px;
    line-height: 1.3;
    padding: 5px 8px;
    width: 90%;
}
.card span {
    font-size: clamp(10px, 1vw, 13px);
}
/* HERO */
.liza {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.liza-content {
    max-width: 800px;
    text-align: center;
}

/* ЗАГОЛОВОК */
.liza h1 {
    display: inline-block;
    margin: 0 auto 40px;
    position: relative;
    color: #fff;
    background: var(--accent);
    font-size: 2.5em;
    padding: 10px 40px;
    line-height: 1;
}

/* линия */
.liza h1:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    left: 0;
    bottom: -15px;
    background: var(--second-accent);
}

/* треугольник */
.liza h1:after {
    content: "";
    position: absolute;
    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;
}

.block h2{
    text-align: center;
    font-size: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--second-accent);
}

/* текст */
.liza p {
    margin-top: 15px;
    color: black;
    font-size: 20px;
}
p {
    text-align: center;
}
/* АЛФАВИТ */
.alphabet-section {
    padding: 20px;
}

/* БУКВЫ */
.letter {
    text-align: center;
    font-size: 32px;
    color: var(--accent);
    margin: 15px auto 10px;
    position: relative;
}

.letter::after {
    content: "";
    display: block;
    width: 50%;
    height: 2px;
    background: var(--second-accent);
    margin: 5px auto 0;
}

/* КАРТОЧКА */
.person-card {
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    align-items: flex-start;
    background: #f4e9d0;
    border-radius: 15px;
    padding: 20px;
    border-left: 6px solid var(--accent);
    
}

/* ФОТО */
.photo {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

/* ТЕКСТ */
.info {
    flex: 1;
}

.info p {
    margin: 5px 0;
    line-height: 1.4;
}

/* МЕДАЛЬ */
.medal {
    width: 70px;
    margin-left: 20px;
}

/* ГАЛЕРЕЯ */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; /* чуть компактнее */
    justify-items: center;
    margin-top: 30px;
}
.block a{
    color: #000000;
}
.block p{
    color: #000000;
    margin-bottom: 25px;
}

.card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 5px; /* было больше → стало аккуратно */
   background:var(--accent);
    border-radius: 10px;
}

.block:nth-child(2) .card:nth-child(5) {
    grid-column: 1 / 2; /* в ту же колонку, что и первая */
}

.card img {
    width: 100%;
    height: 240px; /* можно 170–190 */
    object-fit: contain;
    background:var(--accent);
    border-radius: 3px;
}


/* ХОВЕР */
.card span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.card:hover img {
    filter: brightness(40%);
    border: 3px solid var(--second-accent);
}

.card:hover span {
    opacity: 1;
}



