@import url('https://fonts.googleapis.com/css2?family=Marck+Script&display=swap');

:root {
    --ink: #10254a;
    --blue: #315ca7;
    --paper: #eef6fb;
    --white: #fffdf8;
    --gold: #e6b94f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: #d8eaf5;
    background-image: url('watercolor-paper-v2.png');
    background-position: center 570px;
    background-size: 1180px auto;
    background-repeat: repeat-y;
    background-blend-mode: multiply;
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 1.35vw, 24px);
    line-height: 1.72;
}

.winter-banner {
    position: relative;
    min-height: 570px;
    padding: 38px clamp(18px, 5vw, 72px) 40px;
    overflow: hidden;
    background: url('banner_2.webp') center / cover no-repeat;
    text-align: center;
}

.winter-banner::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: '';
    background: linear-gradient(180deg, rgba(7, 25, 63, .08), rgba(7, 25, 63, .28));
    pointer-events: none;
}

.winter-banner > * { position: relative; z-index: 2; }

.banner-title,
.subtitle,
h2,
.news-caption {
    font-family: 'Marck Script', cursive;
}

.banner-title {
    max-width: 14ch;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(58px, 7vw, 96px);
    font-weight: 400;
    line-height: .95;
    text-shadow: 0 3px 18px #071936;
}

.subtitle {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(46px, 5vw, 70px);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 3px 14px #071936;
}

.subtitle-small {
    margin: 12px auto 0;
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.35;
    text-shadow: 0 2px 12px #071936;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1040px;
    margin: 54px auto 0;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 999px;
    background: rgba(8, 31, 78, .82);
    box-shadow: 0 8px 24px rgba(5, 19, 48, .24);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 17px;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: transform .2s, background .2s;
}

.btn:hover { transform: translateY(-2px); background: rgba(23, 63, 133, .92); }
.icon { width: 22px; height: 22px; filter: invert(1); }

.logo-link { position: absolute; top: 14px; left: 16px; z-index: 10; }
.site-logo { display: block; width: 96px; height: 96px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 5px 20px rgba(4,19,47,.32); object-fit: cover; }

.news-big-button { max-width: 1160px; margin: 25px auto 0; text-align: right; }
.news-image-wrapper { position: relative; display: inline-block; }
.news-image-button { display: block; width: clamp(210px, 22vw, 320px); border: 3px solid rgba(255,255,255,.82); border-radius: 34% 66% 42% 58% / 55% 38% 62% 45%; box-shadow: 0 12px 35px rgba(4,19,47,.28); }
.news-caption { position: absolute; right: 18px; bottom: 10px; color: #fff; font-size: 28px; text-shadow: 0 2px 10px #000; }

section {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(68px, 9vw, 120px) clamp(22px, 5vw, 64px);
    text-align: center;
}

section::after {
    position: absolute;
    inset: 22px 10px;
    z-index: -1;
    border-radius: 46% 54% 49% 51% / 52% 46% 54% 48%;
    background: rgba(255, 253, 248, .2);
    content: '';
    pointer-events: none;
}

section + section::before {
    display: block;
    width: min(260px, 45vw);
    height: 3px;
    margin: 0 auto clamp(55px, 7vw, 85px);
    content: '';
    background: linear-gradient(90deg, transparent, rgba(49,92,167,.45), transparent);
}

h2 {
    margin: 0 0 34px;
    color: var(--ink);
    font-size: clamp(48px, 5.5vw, 74px);
    font-weight: 400;
    line-height: 1;
}

section p {
    max-width: 800px;
    margin: 28px auto 0;
    text-align: left;
}

.book-wrapper {
    position: relative;
    display: flex;
    max-width: 850px;
    align-items: flex-end;
    justify-content: center;
    margin: 25px auto 0;
}

.book-wrapper .section-img {
    width: min(74vw, 690px);
    height: auto;
    margin: 0;
    border-radius: 3% 6% 4% 5%;
    box-shadow: 0 22px 45px rgba(18, 48, 92, .2);
    transform: rotate(1.2deg);
}

.book-wrapper .character-left {
    position: relative;
    z-index: 2;
    width: min(24vw, 250px);
    height: auto;
    margin-right: -55px;
    filter: drop-shadow(0 14px 12px rgba(18,48,92,.18));
    transform: rotate(-5deg);
}

.read-button,
.review-button {
    display: inline-block;
    margin-top: 30px;
    padding: 13px 30px;
    border: 2px solid rgba(49,92,167,.4);
    border-radius: 50% 45% 48% 42% / 45% 55% 42% 50%;
    background: var(--blue);
    box-shadow: 0 8px 20px rgba(18,48,92,.18);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 19px;
    text-decoration: none;
    transform: rotate(-1deg);
}

.author-wrapper {
    display: flex;
    max-width: 720px;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 7vw, 80px);
    margin: 18px auto 42px;
}

.author-photo {
    width: clamp(250px, 31vw, 380px);
    height: clamp(250px, 31vw, 380px);
    border: 8px solid rgba(255,253,248,.88);
    border-radius: 48% 52% 44% 56% / 54% 44% 56% 46%;
    box-shadow: 0 18px 38px rgba(18,48,92,.2);
    object-fit: cover;
    transform: rotate(2deg);
}

.author-wrapper .character-left {
    width: clamp(190px, 24vw, 290px);
    height: auto;
    filter: drop-shadow(0 13px 11px rgba(18,48,92,.18));
    transform: rotate(-7deg);
}

section:nth-of-type(3) .section-img {
    display: block;
    width: min(78vw, 720px);
    height: auto;
    margin: 20px auto 36px;
    border: 10px solid rgba(255,253,248,.8);
    box-shadow: 0 18px 42px rgba(18,48,92,.18);
    transform: rotate(-1.2deg);
}

.reviews-grid {
    display: grid;
    gap: clamp(46px, 7vw, 86px);
    max-width: 900px;
    margin: 40px auto 0;
}

.reviews-grid article { display: grid; align-items: center; gap: 28px; }
.reviews-grid article:nth-child(even) { direction: rtl; }
.reviews-grid article > * { direction: ltr; }
.reviews-grid p { margin: 0; text-align: center; font-size: clamp(22px, 2vw, 29px); line-height: 1.5; }
.reviews-grid .section-img { width: 100%; max-height: 520px; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(18,48,92,.16)); }
.reviews-grid article:nth-child(1) .section-img { transform: rotate(2deg); }
.reviews-grid article:nth-child(2) .section-img { transform: rotate(-2deg); }
.reviews-grid article:nth-child(3) .section-img { transform: rotate(1deg); }

#review-help { max-width: 900px; }
#review-help > p { text-align: center; }
#review-help ol { max-width: 670px; margin: 30px auto; text-align: left; font-size: clamp(19px, 1.35vw, 23px); }
#review-help li + li { margin-top: 9px; }

.site-footer { position: relative; z-index: 4; padding: 45px 20px 70px; color: var(--ink); font-family: Arial, sans-serif; font-size: 17px; text-align: center; }
.site-footer a { display: inline-block; margin: 0 9px; color: var(--ink); }

.snow-container { position: fixed; inset: 0; z-index: 9999; height: 100dvh; overflow: hidden; pointer-events: none; }
.snowflake { position: absolute; top: -30px; width: 30px; height: 30px; background: url('snowflake-gold.png') center / contain no-repeat; animation: fall linear infinite; }
@keyframes fall { from { transform: translateY(-10vh) rotate(0); } to { transform: translateY(110vh) rotate(180deg); } }

@media (min-width: 760px) {
    .reviews-grid article { grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr); }
}

@media (max-width: 700px) {
    body {
        background-position: center 0;
        background-size: 820px auto;
        font-size: 20px;
        line-height: 1.68;
    }
    .winter-banner { min-height: 0; padding: 108px 12px 44px; }
    .banner-title { font-size: clamp(34px, 11vw, 48px); overflow-wrap: anywhere; }
    .subtitle { font-size: 38px; }
    .subtitle-small { font-size: 21px; }
    .site-logo { width: 82px; height: 82px; }
    .buttons { margin-top: 34px; gap: 10px; }
    .btn { min-height: 44px; padding: 9px 14px; font-size: 15px; }
    .news-big-button { margin-top: 30px; text-align: center; }
    .news-image-button { width: min(72vw, 300px); }
    section { padding: 62px 20px; }
    h2 { font-size: clamp(43px, 13vw, 58px); }
    section p { font-size: 20px; }
    .book-wrapper .section-img { width: 82vw; }
    .book-wrapper .character-left { width: 28vw; margin-right: -34px; }
    .author-wrapper { gap: 10px; }
    .author-photo { width: min(56vw, 255px); height: min(56vw, 255px); border-width: 5px; }
    .author-wrapper .character-left { width: min(34vw, 160px); }
    section:nth-of-type(3) .section-img { width: 100%; border-width: 6px; }
    .reviews-grid { gap: 64px; }
    .reviews-grid article { gap: 18px; }
    .reviews-grid .section-img { max-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
    .snowflake { animation: none; display: none; }
    * { scroll-behavior: auto !important; }
}
