* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #1f1f1f;
}

.site-section {
    width: 100%;
    padding: 56px 7%;
}

.module-inner {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.module-header {
    background: #0f3b2e;
    color: #ffffff;
    padding-top: 22px;
    padding-bottom: 22px;
}

.module-novel {
	background-color: #EBEBEB;
}

.site-section.module-autograph-ticker {
    position: relative;
    height: 54px;
    padding: 0;
    overflow: hidden;
    background: #0f3b2e;
    color: #ffffff;
}

.autograph-ticker-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: max-content;
    white-space: nowrap;
    transform: translate(100vw, -50%);
    animation: autograph-ticker 14s linear infinite;
    will-change: transform;
}

.autograph-ticker-track span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

@keyframes autograph-ticker {
    from {
        transform: translate(100vw, -50%);
    }

    to {
        transform: translate(-100%, -50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .autograph-ticker-track {
        left: 50%;
        max-width: calc(100% - 32px);
        white-space: normal;
        text-align: center;
        transform: translate(-50%, -50%);
        animation: none;
    }
}

.novel-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.15fr) minmax(290px, 0.9fr);
    gap: 38px;
    align-items: center;
}

.module-author {
    background: #948b77;
}

.module-publications {
    background: #f3efe6;
}

.module-social {
    background: #908573;
}

.module-footer {
    background: #0f3b2e;
    color: #ffffff;
    padding-top: 34px;
    padding-bottom: 34px;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.site-name {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
}

.main-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.main-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.main-menu a:hover {
    color: #f2c15b;
    border-bottom-color: #f2c15b;
}

.main-menu a.is-active {
    color: #f2c15b;
    border-bottom-color: #f2c15b;
}

h1 {
    font-size: clamp(38px, 5vw, 56px);
    margin-bottom: 15px;
    color: #12382d;
    line-height: 1.1;
}

h2 {
    font-size: clamp(32px, 4vw, 44px);
    text-align: center;
    margin-bottom: 38px;
    color: #12382d;
    line-height: 1.15;
}

h3 {
    font-size: clamp(24px, 3vw, 28px);
    margin-bottom: 25px;
    color: #12382d;
}

.light-title {
    color: #ffffff;
}

.subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #8b6f2d;
    margin-bottom: 25px;
}

p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.book-cover {
    text-align: center;
}

.book-cover img {
    width: min(260px, 80%);
    height: auto;
    display: inline-block;
}

.book-info {
    text-align: left;
}

.free-reading-promo {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.free-reading-promo img {
    display: block;
    width: 100%;
    height: auto;
}

.free-reading-button {
    position: absolute;
    left: 53%;
    bottom: 14%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 84%;
    min-height: 46px;
    padding: 12px 18px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 40px;
    background: #0f3b2e;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transform: translateX(-50%);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.free-reading-button:hover,
.free-reading-button:focus-visible {
    background: #f2c15b;
    color: #12382d;
    outline: none;
    transform: translateX(-50%) translateY(-2px);
}

.main-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 34px;
    background: #e67e22;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-radius: 40px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

.main-button:hover {
    background: #f6a623;
    transform: translateY(-2px);
}

.author-photo {
    text-align: center;
}

.author-photo img {
    width: min(300px, 90%);
    height: auto;
    display: inline-block;
    border-radius: 12px;
}

.author-text p {
    color: #ffffff;
    text-indent: 30px;
}

.publications-grid {
    align-items: stretch;
}

.publication-column {
    background: rgba(255,255,255,0.48);
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
}

.article-link {
    display: block;
    color: #245c44;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.article-link:hover {
    color: #0b57d0;
    transform: translateX(8px);
}

.social-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: center;
}

.social-content {
    text-align: center;
}

.social-content p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.social-icons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.22);
    transition: all 0.25s ease;
}

.social:hover {
    transform: translateY(-4px);
}

.facebook {
    background: #4da3c7;
}

.instagram {
    background: #d4a13b;
}

.email {
    background: #5c6bc0;
}

.email:hover {
    background: #3f51b5;
}

.phone {
    background: #2e7d32;
}

.phone:hover {
    background: #1b5e20;
}

.social-photo {
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
}

.social-photo img {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;

    mask-image: radial-gradient(
        ellipse at center,
        rgba(0,0,0,1) 55%,
        rgba(0,0,0,0.85) 70%,
        rgba(0,0,0,0) 100%
    );

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        rgba(0,0,0,1) 55%,
        rgba(0,0,0,0.85) 70%,
        rgba(0,0,0,0) 100%
    );
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-content a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

.footer-content a:hover {
    color: #f2c15b;
    text-decoration: underline;
}

.footer-content p {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 15px;
}

.copy-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2c5e3f;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.copy-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================
   RESPONSIVE TABLET
   ====================================== */

@media screen and (max-width:1024px){

    .site-section{
        padding:50px 5%;
    }

    .header-inner{
        grid-template-columns:1fr;
        text-align:center;
        gap:25px;
    }

    .main-menu{
        justify-content:center;
    }

    .two-columns{
        gap:30px;
    }

    .novel-layout{
        grid-template-columns:minmax(220px, 0.8fr) minmax(360px, 1.2fr);
        gap:34px;
    }

    .free-reading-promo{
        grid-column:1 / -1;
        max-width:340px;
    }

    .social-layout{
        grid-template-columns:1fr;
        text-align:center;
    }

    .social-photo{
        justify-content:center;
    }

    .social-photo img{
        width:220px;
    }
}

/* ======================================
   RESPONSIVE PHONE
   ====================================== */

@media screen and (max-width:768px){

    body{
        overflow-x:hidden;
    }

    .site-section{
        padding:35px 20px;
    }

    .site-section.module-autograph-ticker{
        height:50px;
        padding:0;
    }

    .autograph-ticker-track span{
        font-size:16px;
    }

    .two-columns{
        grid-template-columns:1fr;
        gap:25px;
    }

    .novel-layout{
        grid-template-columns:1fr;
        gap:30px;
    }

    .free-reading-promo{
        grid-column:auto;
        max-width:330px;
    }

    .free-reading-button{
        min-height:44px;
        padding:11px 16px;
        font-size:15px;
    }

    .header-inner{
        grid-template-columns:1fr;
        text-align:center;
        gap:20px;
    }

    .main-menu{
        justify-content:center;
        gap:15px;
    }

    .main-menu a{
        font-size:16px;
    }

    .site-name{
        font-size:28px;
    }

    h1{
        font-size:38px;
        text-align:center;
    }

    h2{
        font-size:28px;
        line-height:1.25;
        margin-bottom:25px;
    }

    h3{
        font-size:22px;
    }

    p{
        font-size:17px;
        line-height:1.6;
    }

    .book-info{
        text-align:center;
    }

    .book-cover img{
        width:180px;
    }

    .author-photo img{
        width:220px;
    }

    .author-text p{
        text-align:left;
        text-indent:0;
    }

    .publication-column{
        padding:20px;
    }

    .article-link{
        font-size:16px;
    }

    .social-layout{
        grid-template-columns:1fr;
        gap:20px;
    }

    .social-photo{
        justify-content:center;
    }

    /* НАЙ-ВАЖНОТО */
    .social-photo img{
        width:200px;

        mask-image:none;
        -webkit-mask-image:none;
    }

    .footer-links{
        flex-direction:column;
        gap:10px;
    }
}

/* ======================================
   VERY SMALL PHONE
   ====================================== */

@media screen and (max-width:480px){

    .main-menu{
        flex-direction:column;
        gap:8px;
    }

    h1{
        font-size:32px;
    }

    h2{
        font-size:24px;
    }

    .book-cover img{
        width:150px;
    }

    .free-reading-promo{
        width:min(100%, 300px);
    }

    .free-reading-button{
        max-width:88%;
        padding:10px 14px;
        font-size:14px;
    }

    .author-photo img{
        width:180px;
    }

    .social{
        width:42px;
        height:42px;
    }
}

/* Модули на началната страница */
.module-bookstore-preview {
    background: #908573;
}

.module-bookstore-preview > .module-inner > h2,
.module-social .social-content h2 {
    color: #ffffff;
}

.module-social .social-content p {
    color: #ffffff;
}

.module-latest-blog {
    background: #f3efe6;
}

.home-blog-card {
    display: grid;
    grid-template-columns: minmax(280px, 42%) 1fr;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.home-blog-visual {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    background: #d8d8d8;
    text-decoration: none;
}

.home-blog-visual img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.home-blog-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.22) 38%, rgba(0, 0, 0, 0) 72%);
    pointer-events: none;
}

.home-blog-image-title {
    position: absolute;
    right: 28px;
    bottom: 24px;
    left: 28px;
    z-index: 2;
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
}

.home-blog-card:hover .home-blog-visual img,
.home-blog-visual:focus-visible img {
    filter: brightness(0.95);
    transform: scale(1.055);
}

.home-blog-visual:focus-visible {
    outline: 4px solid #f2c15b;
    outline-offset: -4px;
}

.home-blog-content {
    padding: 32px;
}

.home-blog-meta {
    margin: 0;
    color: #8b6f2d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.home-blog-content h3 {
    margin: 10px 0 16px;
    font-size: clamp(24px, 3vw, 31px);
    line-height: 1.18;
}

.home-blog-content h3 a {
    color: #12382d;
    text-decoration: none;
}

.home-blog-content h3 a:hover,
.home-blog-content h3 a:focus-visible {
    text-decoration: underline;
}

.home-blog-content > p:last-child {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.55;
}

.home-books-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-book-card {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 14px;
    min-height: 235px;
    padding: 15px;
    border: 1px solid rgba(15, 59, 46, 0.13);
    border-radius: 13px;
    background: #ffffff;
    color: #1f1f1f;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-book-card:hover,
.home-book-card:focus-visible {
    border-color: #e67e22;
    outline: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.home-card-image-wrap {
    display: block;
    width: 105px;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    background: #e8e4da;
}

.home-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-card-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 12px;
    text-align: center;
}

.home-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.home-card-copy strong {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 7px;
    color: #12382d;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: normal;
}

.home-card-copy span {
    color: #6c6253;
    line-height: 1.35;
}

.home-card-prices {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
    font-size: 18px;
}

.home-card-copy .home-card-regular-price {
    position: relative;
    color: #12382d;
    font-weight: 700;
}

.home-card-copy .home-card-regular-price.has-new-price::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -4%;
    width: 108%;
    height: 2px;
    border-radius: 2px;
    background: #c62828;
    transform: rotate(-7deg);
}

.home-card-copy .home-card-new-price {
    color: #c45f0a;
    font-weight: 800;
}

.home-card-copy .home-card-price-unavailable {
    color: #c45f0a;
    font-weight: 700;
}

.home-card-additional-text {
    display: -webkit-box;
    grid-column: 1 / -1;
    min-height: calc(3 * 1.4em);
    max-height: calc(3 * 1.4em);
    overflow: hidden;
    color: #151515;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-books-message {
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: #12382d;
    text-align: center;
    font-weight: 700;
}

@media screen and (max-width: 1180px) {
    .home-books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-book-card {
        grid-template-columns: 95px minmax(0, 1fr);
        column-gap: 13px;
    }

    .home-card-image-wrap {
        width: 95px;
        height: 130px;
    }
}

@media screen and (max-width: 1024px) {
    .home-blog-card {
        grid-template-columns: 1fr;
    }

    .home-blog-visual {
        min-height: 270px;
    }
}

@media screen and (max-width: 768px) {
    .home-books-grid {
        grid-template-columns: 1fr;
    }

    .home-blog-content {
        padding: 26px 22px;
    }

    .home-blog-content > p:last-child {
        font-size: 17px;
    }
}

@media screen and (max-width: 520px) {
    .home-book-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .home-card-image-wrap {
        width: 90px;
        height: 125px;
    }

    .home-blog-visual {
        min-height: 220px;
    }

    .home-blog-image-title {
        right: 20px;
        bottom: 18px;
        left: 20px;
        font-size: 29px;
    }
}
