/* =========================
   ОБЩИЕ НАСТРОЙКИ
========================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;
    color: #f4f0e6;

    background:
        radial-gradient(circle at top, #34302a 0%, #171614 42%, #080808 100%);

    background-attachment: fixed;
}

img {
    max-width: 100%;
}

a {
    color: #e2b84f;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

a:hover {
    color: #ffe08a;
}


/* =========================
   ШАПКА
========================= */

header {
    position: relative;

    width: 100%;
    padding: 34px 20px 30px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.96),
            rgba(35, 30, 20, 0.95)
        );

    border-bottom: 2px solid #b99236;

    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.55),
        inset 0 -1px 0 rgba(255, 224, 138, 0.18);
}

header::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -2px;

    width: 180px;
    height: 3px;

    transform: translateX(-50%);

    background: linear-gradient(
        90deg,
        transparent,
        #f0ca68,
        transparent
    );
}

header img {
    display: block;

    width: 100%;
    max-width: 400px;

    margin: 0 auto 22px;

    border: 3px solid #e9d7a1 !important;
    border-radius: 8px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.65),
        0 0 18px rgba(226, 184, 79, 0.16);
}

header h1 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 1px;

    color: #e5bd57;

    text-shadow:
        0 2px 2px #000,
        0 0 15px rgba(229, 189, 87, 0.24);
}

header p {
    margin: 16px 0 0;
    font-size: 15px;
}

header p span {
    display: inline-block;

    padding: 7px 13px !important;

    color: #241b08;
    font-weight: 700;

    background: linear-gradient(
        180deg,
        #fff6d8,
        #e8cd82
    ) !important;

    border: 1px solid #f5dfa2;
    border-radius: 999px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}


/* =========================
   ОСНОВНАЯ ЧАСТЬ
========================= */

main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;

    width: min(1160px, calc(100% - 40px));

    margin: 0 auto;
    padding: 48px 0 42px;
}

.content-page {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.content-page p {
    margin: 14px 0;
}

.content-page p a {
    display: inline;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    color: #d7b35a;
    font-size: 22px;
    font-weight: normal;
    text-decoration: none;
}

.content-page p a:hover {
    color: #f2d27d;
    text-decoration: underline;
}


/* =========================
   КАРТОЧКИ
========================= */

article {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 24px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(42, 39, 34, 0.97),
            rgba(17, 17, 17, 0.98)
        );

    border: 1px solid rgba(223, 183, 78, 0.62);
    border-radius: 14px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

article::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #705314,
        #f1d078,
        #705314
    );
}

article:hover {
    transform: translateY(-5px);

    border-color: #e7c35f;

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.58),
        0 0 22px rgba(226, 184, 79, 0.1);
}

article h2 {
    min-height: 58px;

    margin: 5px 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.12;

    color: #efd078;

    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8);
}


/* Ссылка, внутри которой находится изображение */

article a:first-of-type {
    display: block !important;

    width: 100%;

    margin: 0 auto 18px;

    border-radius: 10px;
    overflow: hidden;

    background: #0d0d0d;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}


/* Изображения карточек */

article a:first-of-type img {
    display: block !important;

    width: 100%;
    max-width: none !important;
    height: 310px !important;

    margin: 0 !important;

    object-fit: cover;
    object-position: center;

    border: 0 !important;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

article a:first-of-type:hover img {
    transform: scale(1.035);
    filter: brightness(1.08);
}


/* Кнопка-ссылка под фотографией */

article > a:last-of-type {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    margin-top: auto;
    padding: 12px 20px;

    color: #211907;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;

    background: linear-gradient(
        180deg,
        #f3d77c,
        #c49a38
    );

    border: 1px solid #ffe7a3;
    border-radius: 8px;

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

article > a:last-of-type:hover {
    color: #000;

    transform: translateY(-2px);

    background: linear-gradient(
        180deg,
        #ffe69b,
        #d9ac45
    );

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.42),
        0 0 14px rgba(231, 195, 95, 0.18);
}





/* =========================
   БЛОК С АВТОРСКИМИ ПРАВАМИ
========================= */

.article2 {
    grid-column: 1 / -1;

    min-height: auto;
    padding: 15px 20px;

    background: rgba(10, 10, 10, 0.78);

    border-color: rgba(226, 184, 79, 0.28);
    border-radius: 8px;
}

.article2::before {
    display: none;
}

.article2:hover {
    transform: none;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.46);
}

.article2 p {
    color: #bdb8ad;
    font-size: 12px !important;
    letter-spacing: 0.3px;
}


/* =========================
   ПОДВАЛ
========================= */

footer {
    padding: 26px 20px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #121212,
            #070707
        );

    border-top: 1px solid #8c6c26;

    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.35);
}

footer p {
    margin: 0;
}

footer span {
    display: inline-block;

    padding: 10px 16px !important;

    background: transparent !important;

    border: 1px solid rgba(226, 184, 79, 0.46);
    border-radius: 8px;
}

footer a {
    color: #e5bd57;
    font-size: 16px;
    font-weight: 700;
}

footer a:hover {
    color: #ffe397;
}


/* =========================
   ПЛАНШЕТЫ
========================= */

@media (max-width: 900px) {

    header {
        padding: 26px 18px 25px;
    }

    header img {
        max-width: 360px;
        margin-bottom: 18px;
    }

    main {
        width: min(760px, calc(100% - 28px));

        gap: 20px;

        padding-top: 34px;
    }

    article {
        padding: 19px;
    }

    article h2 {
        min-height: 50px;
        margin-bottom: 16px;
    }

    article a:first-of-type img {
        height: 260px !important;
    }
}


/* =========================
   ТЕЛЕФОНЫ
========================= */

@media (max-width: 650px) {

    body {
        background-attachment: scroll;
    }

    header {
        padding: 20px 12px 22px;
    }

    header img {
        width: min(100%, 340px);

        margin-bottom: 16px;

        border-width: 2px !important;
    }

    header h1 {
        font-size: 34px;
    }

    header p {
        margin-top: 12px;
        font-size: 13px;
    }

    main {
        display: block;

        width: min(100% - 22px, 520px);

        padding: 26px 0 30px;
    }

    article {
        margin-bottom: 20px;
        padding: 17px;

        border-radius: 11px;
    }

    article h2 {
        min-height: auto;

        margin: 4px 0 15px;

        font-size: 27px;
    }

    article a:first-of-type {
        margin-bottom: 14px;
    }

    article a:first-of-type img {
        height: auto !important;
        max-height: 390px;

        object-fit: contain;

        background: #111;
    }

    article > a:last-of-type {
        min-height: 45px;

        padding: 11px 14px;

        font-size: 16px;
    }

    .article2 {
        margin-top: 6px;
        margin-bottom: 0;
    }

    footer {
        padding: 22px 12px;
    }

    footer span {
        padding: 9px 11px !important;
    }

    footer a {
        font-size: 14px;
        line-height: 1.4;
    }
}


/* =========================
   ОЧЕНЬ УЗКИЕ ЭКРАНЫ
========================= */

@media (max-width: 380px) {

    header h1 {
        font-size: 29px;
    }

    header p span {
        padding: 6px 9px !important;
    }

    article {
        padding: 14px;
    }

    article h2 {
        font-size: 24px;
    }
}

/* =========================================
   ВНУТРЕННИЕ СТРАНИЦЫ — ABBA, АГНЕТА И Т. Д.
   Этот блок обязательно должен быть последним
========================================= */

main > .content-page {
    grid-column: 1 / -1;
    justify-self: center;

    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    text-align: center;
}

/* Все строки списка */

.content-page p {
    width: 100%;
    margin: 14px 0;
    padding: 0;

    text-align: center;
}

/* Обычные текстовые ссылки, а не кнопки */

.content-page p a,
.content-page p:first-of-type a,
.content-page a:first-of-type,
.content-page a:last-of-type {
    display: inline !important;

    width: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #d7b35a !important;
    font-size: 22px;
    font-weight: normal;
    line-height: 1.4;

    background: none !important;
    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;
    overflow: visible !important;

    text-decoration: none;
    transform: none !important;
}

.content-page p a:hover,
.content-page a:first-of-type:hover,
.content-page a:last-of-type:hover {
    color: #f2d27d !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;

    text-decoration: underline;
}

/* Внутренняя страница при наведении не подпрыгивает */

.content-page:hover {
    transform: none;
}


/* Телефон */

@media (max-width: 650px) {

    main > .content-page {
        width: 100%;
        max-width: none;
    }

    .content-page p a,
    .content-page p:first-of-type a,
    .content-page a:first-of-type,
    .content-page a:last-of-type {
        font-size: 18px;
    }
}

/* =========================
   ЗАГОЛОВКИ РАЗДЕЛОВ
========================= */

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 40px 0 25px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: bold;
    line-height: 1.2;

    color: #efd078;

    text-shadow:
        0 2px 2px rgba(0,0,0,.8);
}

.section-title::before,
.section-title::after {
    content: "";

    flex: 1;
    max-width: 120px;
    height: 2px;

    margin: 0 20px;

    background: linear-gradient(
        to right,
        transparent,
        #d9b35a,
        transparent
    );
}
/* =========================
   YouTube
========================= */

.video-container {
    width: 100%;
    max-width: 500px;      /* можешь поставить 650 или 750 */
    margin: 18px auto 35px;
}

.video-container iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 10px;
}