/* Очищенный CSS. Заменяет исходный файл целиком. */

/* Базовые стили */

body {
    background-color: #07111f;
    color: #f4e6c3;
    font-family: Georgia, serif;
    margin: 0;
}

/* Шапка и навигация */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 130px;
    height: 130px;
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-weight: bold;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(1.12) contrast(1.28);
}

.brand-logo:hover {
    transform: scale(1.14);
    filter: brightness(1.12) contrast(1.28) saturate(1.35);
}

.brand-logo img {
    width: 110%;
    height: 110%;
    object-fit: contain;
    transform: translate(-3px, -11px);
    transition: filter .6s ease, transform .6s ease;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
}

.brand-divider {
    display: flex;
    align-items: center;
    width: 260px;
    margin-top: 5px;
}

.brand-divider span {
    flex: 1;
    height: 2px;
    background: #be8e3a;
    opacity: .75;
}

.brand-divider b {
    margin: 0 12px;
    color: #be8e3a;
    font-size: 18px;
    font-weight: 400;
}

.brand-text h1 {
    margin: 0;
    font-size: 65px;
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: 10px;
    text-transform: uppercase;
    background: linear-gradient( to bottom, #fff4cf 0%, #e8c98b 38%, #be8e3a 82%, #f0d59b 100% );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 0 rgba(255, 245, 210, 0.25), 0 3px 8px rgba(0, 0, 0, 0.55);
}

.brand-text p {
    margin: 2px 0 0;
    font-size: 19px;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient( to bottom, #f7e6bd 0%, #be8e3a 85%, #f0d59b 100% );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.main-nav {
    display: flex;
    gap: 80px;
    margin-left: 500px;
    margin-right: 80px;
}

.nav-link {
    color: #f4e6c3;
    text-decoration: none;
    font-size: 19px;
    letter-spacing: 2px;
    text-transform: none;
    transition: 0.3s;
}

.nav-link:hover {
    color: #be8e3a;
}

/* Главный экран и книги */

.hero {
    position: relative;
    background-image: url("../images/backgrounds/hero.png");
    background-size: cover;
    background-position: center -150px;
    background-repeat: no-repeat;
    padding-top: 80px;
    box-sizing: border-box;
    min-height: 1400px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient( to bottom, rgba(7,17,31,1) 0%, rgba(7,17,31,0.9) 15%, rgba(7,17,31,0.55) 40%, rgba(7,17,31,0.2) 70%, rgba(7,17,31,0) 100% );
}

.book-ring {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.book-card {
    position: absolute;
    width: 170px;
    height: 170px;
    border: 2px solid #b98a42;
    border-radius: 50%;
    background: rgba(6, 13, 24, 0.88);
    color: #f4e6c3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    overflow: hidden;
    isolation: isolate;
}

.book-one {
    top: 6%;
    left: 50%;
    background: transparent;
}

.book-two {
    top: 22%;
    left: 84%;
}

.book-three {
    top: 61%;
    left: 92%;
}

.book-four {
    top: 90%;
    left: 69%;
}

.book-five {
    top: 90%;
    left: 31%;
}

.book-six {
    top: 61%;
    left: 8%;
}

.book-seven {
    top: 22%;
    left: 16%;
}

.book-card:hover {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1.4);
    transition: .35s;
}

.book-ring::before {
    content: "";
    position: absolute;
    inset: 120px;
    border: 2px solid rgba(206, 156, 71, 0.65);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(216,178,110,.25), 0 0 25px rgba(216,178,110,.12), inset 0 0 18px rgba(216,178,110,.05);
    animation: ring-breathe 4s ease-in-out infinite;
}

.aspiron-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    animation: orbit-spin 10s linear infinite;
}

.aspiron-shadow {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 120px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient( to right, rgba(216,178,110,0), rgba(216,178,110,.06) 40%, rgba(216,178,110,.18) 70%, rgba(216,178,110,.55) 100% );
    filter: blur(10px);
    box-shadow: 0 0 14px rgba(216, 178, 110, 0.28), 0 0 28px rgba(216, 178, 110, 0.14);
    animation: shadow-breathe 2.4s ease-in-out infinite;
}

.book-watermark {
    position: absolute;
    top: 50%;
    left: 46%;
    width: 128%;
    height: 128%;
    transform: translate(-50%, -53%);
    object-fit: contain;
    opacity: .16;
    filter: grayscale(1) brightness(.75) contrast(0.6);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: normal;
}

.book-number {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.book-status {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: max-content;
    color: #d8b26e;
    font-size: 15px;
    font-weight: 600;
    z-index: 2;
}

.book-ornament {
    position: absolute;
    left: 50%;
    bottom: 15px;
    width: 72px;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateX(-50%);
    z-index: 2;
    justify-content: center;
}

.book-ornament::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 32px;
    height: 1px;
    background: #d8b26e;
    opacity: .75;
    right: 100%;
    margin-right: -17px;
}

.book-ornament::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 32px;
    height: 1px;
    background: #d8b26e;
    opacity: .75;
    left: 100%;
    margin-left: -17px;
}

.book-cover {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
    object-position: center 45%;
}

.book-one .book-title {
    font-size: 12px;
    width: 60%;
    left: 38%;
    text-align: center;
    white-space: nowrap;
    z-index: 3;
    text-shadow: 0 0 4px rgba(0,0,0,.9), 0 2px 8px rgba(0,0,0,.9);
}

/* Карточки мира */

.world-cards {
    position: absolute;
    left: 50%;
    bottom: 80px;
    width: min(1600px, 94%);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    z-index: 4;
}

.world-card {
    min-height: 300px;
    background: rgba(5, 13, 24, 0.92);
    border: 1px solid rgba(216, 178, 110, 0.75);
    color: #f4e6c3;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.world-card-image {
    height: 215px;
    background-color: rgba(245, 173, 49, 0.08);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.5s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.world-card-content {
    padding: 27px 22px 24px;
    text-align: center;
    background: linear-gradient( to bottom, #0b1422, #050b14 );
}

.world-card-content h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.world-card-content p {
    margin: 0;
    color: rgba(244, 230, 195, 0.75);
    font-size: 15px;
    line-height: 1.55;
}

.academy-image {
    background-image: url("../images/world/academy.png");
    background-position: center 90%;
}

.beasts-image {
    background-image: url("../images/world/beasts.png");
    background-position: center 30%;
}

.magic-image {
    background-image: url("../images/world/magic.png");
    background-position: center;
}

.places-image {
    background-image: url("../images/world/places.png");
    background-position: center 70%;
}

.lore-image {
    background-image: url("../images/world/lore.png");
    background-position: center 60%;
}

.world-card:hover {
    transform: translateY(-8px);
    border-color: rgba(216, 178, 110, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 18px rgba(216, 178, 110, 0.22);
}

.world-card:hover .world-card-image {
    transform: scale(1.04);
}

.world-card:hover .world-card-content h2 {
    color: #d8b26e;
}

/* Нижняя часть главной страницы */

.home-bottom {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: stretch;
    padding-right: 24px;
    box-sizing: border-box;
}

.latest-revelations, .about-author {
    min-width: 0;
}

/* Новости */

.latest-revelations {
    width: min(1400px, 92%);
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
    background: transparent;
    border: none;
}

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 24px;
}

.latest-header h2 {
    margin: 0;
    color: #d8b26e;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.latest-link {
    color: rgba(244, 230, 195, 0.75);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.latest-link:hover {
    color: #d8b26e;
}

.latest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.news-card {
    min-height: 330px;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #0b1625;
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(216, 178, 110, 0.45);
}

.news-image {
    background-color: rgba(216, 178, 110, 0.06);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 210px;
    flex-shrink: 0;
}

.news-content {
    padding: 22px 24px 26px;
}

.news-date {
    display: block;
    margin-bottom: 10px;
    color: rgba(216, 178, 110, 0.75);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-content h3 {
    margin: 0 0 12px;
    color: #f4e6c3;
    font-weight: 400;
    font-size: 23px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.news-content p {
    margin: 0 0 18px;
    color: rgba(244, 230, 195, 0.78);
    font-size: 15px;
    line-height: 1.65;
}

.read-more {
    color: #d8b26e;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-book-image {
    background-image: url("../images/news/news-book.png");
    background-position: center 35%;
}

.news-academy-image {
    background-image: url("../images/news/academy1.png");
    background-position: center 60%;
}

.news-beast-image {
    background-image: url("../images/news/beasts1.png");
    background-position: center 35%;
}

.latest-grid > a.news-card {
    color: inherit;
    text-decoration: none;
}

.project-status {
    margin-bottom: 10px;
    display: inline-block;
    margin: 0;
    padding: 6px 10px;
    color: #e5c58a;
    background: rgba(216, 178, 110, 0.09);
    border: 1px solid rgba(216, 178, 110, 0.3);
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.latest-grid .news-content p {
    margin-bottom: 0;
}

.latest-grid > a.news-card:focus-visible {
    outline: 2px solid #d8b26e;
    outline-offset: 4px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 16px;
}

.project-date {
    color: rgba(244, 230, 195, 0.55);
    font-size: 12px;
    line-height: 1.4;
}

.latest-grid .news-card {
    cursor: default;
}

.latest-grid .news-card:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Автор — ширина фото задаётся в .author-content и .author-photo */

.about-author {
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 28px;
    background: #0b1625;
    border: 1px solid rgba(216, 178, 110, 0.16);
    border-top: 2px solid rgba(216, 178, 110, 0.6);
    border-radius: 8px;
    box-shadow: none;
}

.author-header {
    display: block;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(216, 178, 110, 0.18);
    position: relative;
}

.author-header h2 {
    margin: 0;
    color: #d8b26e;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.author-link {
    color: rgba(244, 230, 195, 0.75);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.author-content {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.author-photo {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
    height: auto;
    min-height: 0;
    align-self: start;
    padding: 5px;
    object-fit: contain;
    object-position: center;
    background: #07111f;
    border: 1px solid rgba(216, 178, 110, 0.35);
    border-radius: 6px;
    box-shadow: none;
}

.author-text h3 {
    margin: 0 0 18px;
    font-weight: 400;
    margin-bottom: 18px;
    color: #e5c58a;
    font-size: 27px;
}

.author-text p {
    margin: 0 0 16px;
    color: rgba(244, 230, 195, 0.78);
    font-size: 15px;
    line-height: 1.75;
}

.author-text p:last-child {
    margin-bottom: 0;
}

.author-header::after {
    content: "◇";
    position: absolute;
    left: 0;
    bottom: -9px;
    padding-right: 10px;
    background: #0b1625;
    color: #d8b26e;
    font-size: 17px;
    line-height: 17px;
}

.author-text p:first-of-type {
    color: #d8b26e;
    font-style: italic;
}

.author-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
}

/* Подписка */

.mailing-list {
    width: min(1400px, 92%);
    margin: 20px auto 0;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 100px;
    gap: 28px;
    align-items: center;
    background: rgba(5, 13, 24, 0.96);
    border: 1px solid rgba(216, 178, 110, 0.65);
    box-sizing: border-box;
}

.mailing-text h2 {
    margin: 0 0 8px;
    color: #d8b26e;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mailing-text p {
    margin: 0;
    color: rgba(244, 230, 195, 0.7);
    font-size: 14px;
    line-height: 1.55;
}

.mailing-form {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 14px;
}

.mailing-form input, .mailing-form button {
    min-height: 48px;
    box-sizing: border-box;
    font-family: Georgia, serif;
}

.mailing-form input {
    width: 100%;
    padding: 0 16px;
    color: #f4e6c3;
    background: rgba(2, 8, 17, 0.82);
    border: 1px solid rgba(216, 178, 110, 0.32);
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mailing-form input::placeholder {
    color: rgba(244, 230, 195, 0.42);
}

.mailing-form input:focus {
    border-color: rgba(216, 178, 110, 0.9);
    box-shadow: 0 0 14px rgba(216, 178, 110, 0.15);
}

.mailing-form button {
    padding: 0 20px;
    color: #f4e6c3;
    background: rgba(10, 24, 42, 0.9);
    border: 1px solid rgba(216, 178, 110, 0.45);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mailing-form button:hover {
    background: rgba(216, 178, 110, 0.14);
    border-color: #d8b26e;
    box-shadow: 0 0 16px rgba(216, 178, 110, 0.16);
}

.mailing-logo {
    display: block;
    width: 102px;
    height: 102px;
    margin-left: auto;
    object-fit: contain;
    opacity: 1.0;
}

/* Подвал */

.site-footer {
    width: min(1400px, 92%);
    margin: 0 auto;
    padding: 22px 6px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(244, 230, 195, 0.5);
    font-size: 12px;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(216, 178, 110, 0.18);
    box-sizing: border-box;
}

.site-footer p {
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 22px;
}

.footer-nav a {
    color: rgba(244, 230, 195, 0.55);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #d8b26e;
}

@keyframes ring-breathe {
    0%,100% {
        box-shadow: 0 0 10px rgba(216,178,110,.25), 0 0 25px rgba(216,178,110,.12), inset 0 0 18px rgba(216,178,110,.05);
        border-color: rgba(216,178,110,.60);
    }

    50% {
        box-shadow: 0 0 18px rgba(216,178,110,.45), 0 0 40px rgba(216,178,110,.20), inset 0 0 30px rgba(216,178,110,.12);
        border-color: rgba(216,178,110,.85);
    }

}

@keyframes orbit-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }

}

@keyframes shadow-breathe {
    0%, 100% {
        opacity: 0.45;
        transform: translateX(-50%) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15);
    }

}

@media (max-width: 700px) {
    .author-content {
        grid-template-columns: 1fr;
    }
}

/* Footer with emblem */
.site-footer {
    width: min(1400px, 92%);
    margin: 40px auto 0;
    padding: 0 0 28px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    border: none;
    text-align: center;

    color: rgba(244, 230, 195, 0.6);
    font-size: 13px;
    line-height: 1.6;
}

.footer-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    width: min(700px, 100%);
    margin-bottom: 6px;
}

.footer-emblem {
    display: block;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    object-fit: contain;
}

.footer-line {
    flex: 1;
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        rgba(216, 178, 110, 0.65)
    );
}

.footer-line:last-child {
    background: linear-gradient(
        to right,
        rgba(216, 178, 110, 0.65),
        transparent
    );
}

.site-footer p {
    margin: 0;
}

.footer-nav {
    display: flex;
    justify-content: center;
}

.footer-nav a {
    color: #d8b26e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #f4e6c3;
}

.footer-nav a:focus-visible {
    outline: 1px solid #d8b26e;
    outline-offset: 5px;
}

.footer-ornament {
    width: min(850px, 100%);
    gap: 24px;
}

.footer-emblem {
    width: 110px;
    height: 110px;
}

#author-email {
    color: #d8b26e;
    user-select: text;
}

.footer-nav .contact-toggle {
    appearance: none;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;

    color: #d8b26e;
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.5px;

    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-nav .contact-toggle:hover {
    color: #f4e6c3;
}

.footer-nav .contact-toggle:focus-visible {
    outline: 1px solid #d8b26e;
    outline-offset: 5px;
}

#author-email {
    color: #d8b26e;
    font-size: 13px;
    user-select: text;
}

.footer-nav [hidden] {
    display: none;
}

a.book-card {
    text-decoration: none;
    cursor: pointer;
}

a.book-card:focus-visible {
    outline: 2px solid #f4e6c3;
    outline-offset: 5px;
}