:root {
    --page-bg: #f5ead2;
    --paper: rgba(255, 248, 232, 0.94);
    --paper-strong: rgba(255, 252, 242, 0.98);
    --text: #2b2118;
    --muted: #6f5b43;
    --accent: #8d4f1d;
    --accent-dark: #5d3213;
    --line: rgba(92, 62, 33, 0.18);
    --shadow: 0 18px 45px rgba(49, 30, 12, 0.16);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background-color: var(--page-bg);
    background-image: linear-gradient(rgba(245, 234, 210, 0.86), rgba(245, 234, 210, 0.92)), url("images/fon.png");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    line-height: 1.62;
}

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--accent);
}

.page {
    width: min(940px, calc(100% - 24px));
    margin: 0 auto;
    padding: 26px 0 44px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.top {
    padding: clamp(22px, 5vw, 48px) clamp(18px, 5vw, 58px) 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 253, 246, 0.98), rgba(255, 247, 225, 0.92));
}

.kicker {
    margin: 0 0 8px;
    font-size: clamp(30px, 7vw, 58px);
    line-height: 1.02;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    font-weight: 700;
    color: #312116;
    text-wrap: balance;
}

.book-title {
    margin: 0;
    font-size: clamp(20px, 4.4vw, 32px);
    line-height: 1.22;
    color: var(--accent-dark);
    font-weight: 700;
    text-wrap: balance;
}

.lead {
    max-width: 760px;
    margin: 22px auto 0;
    font-size: clamp(18px, 3.6vw, 24px);
    line-height: 1.42;
    color: #3b2a1b;
    text-wrap: pretty;
}

.hero {
    padding: 0 clamp(14px, 4vw, 34px) clamp(18px, 4vw, 34px);
    background: rgba(255, 248, 232, 0.86);
}

.hero img {
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(49, 30, 12, 0.18);
}

.content {
    padding: clamp(20px, 5vw, 46px) clamp(18px, 5vw, 58px) 28px;
    background: var(--paper-strong);
}

.slogan {
    margin: 0 0 20px;
    font-size: clamp(24px, 5vw, 38px);
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    color: #372313;
    text-wrap: balance;
}

p {
    margin: 0 0 16px;
    font-size: clamp(17px, 3.3vw, 20px);
}

.final-line {
    margin-top: 18px;
    text-align: center;
    font-size: clamp(20px, 4vw, 26px);
    line-height: 1.35;
    color: #3a2414;
}

.cta-wrap {
    text-align: center;
    margin: 30px 0 16px;
}

.cta {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    background: #7a431a;
    color: #fff9ed;
    text-decoration: none;
    font-size: clamp(18px, 3.8vw, 23px);
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 9px 22px rgba(93, 50, 19, 0.26);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.cta:hover {
    color: #fff;
    background: #9b5722;
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(93, 50, 19, 0.3);
}

.gallery-section {
    padding: 6px clamp(14px, 4vw, 34px) 28px;
    background: var(--paper-strong);
}

.gallery {
    width: min(640px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(49, 30, 12, 0.16);
    background: #ead8b9;
}

.expect {
    padding: 28px clamp(18px, 5vw, 58px);
    background: rgba(255, 250, 238, 0.96);
    border-top: 1px solid var(--line);
}

.section-title {
    margin: 0 0 16px;
    font-size: clamp(25px, 5vw, 36px);
    line-height: 1.2;
    text-align: center;
    color: #352212;
}

.expect-list {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: center;
}

.expect-list li {
    margin: 0 0 8px;
    font-size: clamp(18px, 3.6vw, 22px);
    line-height: 1.35;
}

.author {
    padding: 30px clamp(18px, 5vw, 58px) 36px;
    background: linear-gradient(180deg, rgba(255, 248, 232, 0.96), rgba(247, 231, 198, 0.96));
    border-top: 1px solid var(--line);
    text-align: center;
}

.author p {
    margin-bottom: 10px;
}

.author-name {
    font-size: clamp(21px, 4vw, 28px);
    font-weight: 700;
}

.series {
    font-size: clamp(19px, 3.6vw, 24px);
    font-weight: 700;
    color: var(--accent-dark);
}

.books {
    width: min(620px, 100%);
    margin: 16px auto 24px;
    padding: 0;
    list-style: none;
}

.books li {
    margin: 8px 0;
    font-size: clamp(17px, 3.3vw, 21px);
    line-height: 1.35;
}

.closing {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.closing-title {
    margin: 0 0 10px;
    font-size: clamp(20px, 4vw, 27px);
    line-height: 1.35;
    font-weight: 700;
}

.note {
    color: var(--muted);
    font-size: 15px;
    margin-top: 26px;
}


.to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d4af37;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.05);
    color: #d4af37;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all .3s ease;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 10px rgba(212, 175, 55, .4), 0 0 20px rgba(212, 175, 55, .2);
    transform: translateY(-3px);
}

.store-panel {
    text-align: center;
    margin: 30px auto 18px;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 246, 224, 0.72);

    width: 100%;
    max-width: 860px;
}

.store-title {
    margin: 0 0 8px;
    font-size: clamp(20px, 4vw, 27px);
    line-height: 1.25;
    font-weight: 700;
    color: #352212;
}

.store-note {
    margin: 0 0 16px;
    font-size: clamp(16px, 3vw, 18px);
    line-height: 1.4;
    color: var(--muted);
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(93, 50, 19, 0.24);
    background: #fff4dc;
    color: #5d3213;
    text-decoration: none;
    font-size: clamp(16px, 3.1vw, 19px);
    font-weight: 700;
    line-height: 1.15;
}

.store-link:hover {
    background: #fff9ed;
    color: var(--accent);
}

.store-link.primary {
    background: #7a431a;
    color: #fff9ed;
    border-color: #7a431a;
    box-shadow: 0 7px 18px rgba(93, 50, 19, 0.22);
}

.store-link.primary:hover {
    background: #9b5722;
    color: #fff;
}

@media (max-width: 560px) {
    body {
        background-attachment: scroll;
    }

    .page {
        width: min(100% - 14px, 940px);
        padding-top: 8px;
    }

    .top {
        padding-top: 24px;
    }

    .hero {
        padding-left: 10px;
        padding-right: 10px;
    }

    .content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .gallery {
        gap: 9px;
    }

    .cta {
        width: min(100%, 330px);
    }

    .store-panel {
        margin-top: 24px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .store-links {
        gap: 8px;
    }

    .store-link {
        flex: 1 1 calc(50% - 8px);
        min-width: 132px;
    }

    .store-link.primary {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .to-top {
        right: 15px;
        bottom: 15px;
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}