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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Armenian', 'Segoe UI', 'Arial Unicode MS', Tahoma, Geneva, Verdana, sans-serif;
    background: url('Fon.jpg') center center / cover no-repeat fixed;
    background-size: cover;
    color: #333;
    position: relative;
}

/* Падающие снежинки по всему сайту */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    top: -50px;
    color: white;
    font-size: 1.2em;
    font-family: Arial, sans-serif;
    opacity: 0.6;
}

.snowflake:nth-child(1) {
    left: 10%;
    animation: snowfall 8s linear infinite;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation: snowfall 10s linear infinite;
    animation-delay: 1s;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation: snowfall 12s linear infinite;
    animation-delay: 2s;
}

.snowflake:nth-child(4) {
    left: 40%;
    animation: snowfall 9s linear infinite;
    animation-delay: 0.5s;
}

.snowflake:nth-child(5) {
    left: 50%;
    animation: snowfall 11s linear infinite;
    animation-delay: 1.5s;
}

.snowflake:nth-child(6) {
    left: 60%;
    animation: snowfall 13s linear infinite;
    animation-delay: 0.8s;
}

.snowflake:nth-child(7) {
    left: 70%;
    animation: snowfall 9s linear infinite;
    animation-delay: 2.5s;
}

.snowflake:nth-child(8) {
    left: 80%;
    animation: snowfall 11s linear infinite;
    animation-delay: 1.2s;
}

.snowflake:nth-child(9) {
    left: 90%;
    animation: snowfall 10s linear infinite;
    animation-delay: 0.3s;
}

.snowflake:nth-child(10) {
    left: 15%;
    animation: snowfall 12s linear infinite;
    animation-delay: 3s;
}

.snowflake:nth-child(11) {
    left: 25%;
    animation: snowfall 9s linear infinite;
    animation-delay: 1.8s;
}

.snowflake:nth-child(12) {
    left: 35%;
    animation: snowfall 11s linear infinite;
    animation-delay: 0.7s;
}

.snowflake:nth-child(13) {
    left: 45%;
    animation: snowfall 13s linear infinite;
    animation-delay: 2.2s;
}

.snowflake:nth-child(14) {
    left: 55%;
    animation: snowfall 10s linear infinite;
    animation-delay: 1.5s;
}

.snowflake:nth-child(15) {
    left: 65%;
    animation: snowfall 9s linear infinite;
    animation-delay: 0.5s;
}

.snowflake:nth-child(16) {
    left: 75%;
    animation: snowfall 12s linear infinite;
    animation-delay: 2.8s;
}

.snowflake:nth-child(17) {
    left: 85%;
    animation: snowfall 11s linear infinite;
    animation-delay: 1s;
}

.snowflake:nth-child(18) {
    left: 5%;
    animation: snowfall 10s linear infinite;
    animation-delay: 0.2s;
}

.snowflake:nth-child(19) {
    left: 95%;
    animation: snowfall 13s linear infinite;
    animation-delay: 3.5s;
}

.snowflake:nth-child(20) {
    left: 50%;
    animation: snowfall 9s linear infinite;
    animation-delay: 2s;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Дополнительные слои снега */
.snowflakes-large {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.snowflake-large {
    position: absolute;
    top: -50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2em;
    font-family: Arial, sans-serif;
    opacity: 0.5;
    animation: snowfallLarge 12s linear infinite;
}

.snowflake-large:nth-child(1) { left: 5%; animation-delay: 0s; }
.snowflake-large:nth-child(2) { left: 15%; animation-delay: 1.5s; }
.snowflake-large:nth-child(3) { left: 25%; animation-delay: 3s; }
.snowflake-large:nth-child(4) { left: 35%; animation-delay: 0.8s; }
.snowflake-large:nth-child(5) { left: 45%; animation-delay: 2.2s; }
.snowflake-large:nth-child(6) { left: 55%; animation-delay: 1s; }
.snowflake-large:nth-child(7) { left: 65%; animation-delay: 2.5s; }
.snowflake-large:nth-child(8) { left: 75%; animation-delay: 0.5s; }
.snowflake-large:nth-child(9) { left: 85%; animation-delay: 2.8s; }
.snowflake-large:nth-child(10) { left: 95%; animation-delay: 1.2s; }

@keyframes snowfallLarge {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) translateX(80px) rotate(720deg);
        opacity: 0;
    }
}

.snowflakes-small {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
}

.snowflake-small {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8em;
    font-family: Arial, sans-serif;
    opacity: 0.4;
    animation: snowfallSmall 6s linear infinite;
}

.snowflake-small:nth-child(1) { left: 3%; animation-delay: 0s; }
.snowflake-small:nth-child(2) { left: 12%; animation-delay: 0.5s; }
.snowflake-small:nth-child(3) { left: 22%; animation-delay: 1s; }
.snowflake-small:nth-child(4) { left: 32%; animation-delay: 1.5s; }
.snowflake-small:nth-child(5) { left: 42%; animation-delay: 0.3s; }
.snowflake-small:nth-child(6) { left: 52%; animation-delay: 0.8s; }
.snowflake-small:nth-child(7) { left: 62%; animation-delay: 1.2s; }
.snowflake-small:nth-child(8) { left: 72%; animation-delay: 0.6s; }
.snowflake-small:nth-child(9) { left: 82%; animation-delay: 1.5s; }
.snowflake-small:nth-child(10) { left: 92%; animation-delay: 0.2s; }
.snowflake-small:nth-child(11) { left: 8%; animation-delay: 1.8s; }
.snowflake-small:nth-child(12) { left: 18%; animation-delay: 0.4s; }
.snowflake-small:nth-child(13) { left: 28%; animation-delay: 1.1s; }
.snowflake-small:nth-child(14) { left: 38%; animation-delay: 0.7s; }
.snowflake-small:nth-child(15) { left: 48%; animation-delay: 1.3s; }

@keyframes snowfallSmall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(100vh) translateX(30px) rotate(180deg);
        opacity: 0;
    }
}

/* Праздничная гирлянда */
.garland {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(139, 35, 43, 0.1) 20%,
        rgba(139, 35, 43, 0.2) 50%,
        rgba(139, 35, 43, 0.1) 80%,
        transparent 100%
    );
    z-index: 1001;
    pointer-events: none;
}

.light {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8B232B;
    box-shadow: 
        0 0 10px rgba(139, 35, 43, 0.8),
        0 0 20px rgba(139, 35, 43, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.8);
    animation: twinkle 2s ease-in-out infinite;
    opacity: 0.8;
}

.light-1 { left: 1%; animation-delay: 0s; }
.light-2 { left: 8%; animation-delay: 0.2s; }
.light-3 { left: 15%; animation-delay: 0.4s; }
.light-4 { left: 22%; animation-delay: 0.6s; }
.light-5 { left: 29%; animation-delay: 0.8s; }
.light-6 { left: 36%; animation-delay: 1s; }
.light-7 { left: 43%; animation-delay: 1.2s; }
.light-8 { left: 50%; animation-delay: 1.4s; }
.light-9 { left: 57%; animation-delay: 1.6s; }
.light-10 { left: 64%; animation-delay: 1.8s; }
.light-11 { left: 71%; animation-delay: 0s; }
.light-12 { left: 78%; animation-delay: 0.3s; }
.light-13 { left: 85%; animation-delay: 0.6s; }
.light-14 { left: 92%; animation-delay: 0.9s; }
.light-15 { left: 98%; animation-delay: 1.5s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Затемнение над фоном для читаемости */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.05) 30%,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 70%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Эффект инея снизу - убран */
body::after {
    content: none;
}

/* Верхняя навигационная панель */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(20, 106, 61, 0.95) 0%, rgba(0, 150, 0, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Убраны декоративные zigzag элементы для более чистого дизайна */

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 8px;
}

.author-name {
    font-size: 1.96em;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-family: 'Caveat', 'Patrick Hand', 'Kalam', cursive;
    letter-spacing: 0.5px;
    transform: none;
    display: block;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-btn {
    text-decoration: none;
    color: white;
    font-size: 1.08em;
    transition: all 0.2s ease;
    font-weight: 500;
    padding: 6px 6px;
    border-radius: 8px;
    background: #FF0019;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: normal;
    line-height: 1.3;
}

.nav-btn:hover {
    background: #CC0014;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-btn.active {
    background: #CC0014;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-btn-map {
    background: #FF0019;
    color: white !important;
    padding: 6px 6px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 1.08em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: normal;
    line-height: 1.3;
}

.nav-btn-map:hover {
    background: #CC0014;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Секции */
.section {
    padding: 120px 20px 80px;
    min-height: 100vh;
    scroll-margin-top: 70px;
}

/* Секция 1: Главная */
.section-hero {
    background: url('Fon.jpg') center center / cover no-repeat fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.355);
    pointer-events: none;
    z-index: 0;
}

.section-hero::after { content: none; }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 95%;
    width: 100%;
    padding: 0 clamp(20px, 2.5%, 60px);
    margin: 0 auto;
}

/* Книги */
.books-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 4vw, 60px);
    margin-bottom: 50px;
    flex-wrap: wrap;
    width: 100%;
}

.old-book-wrapper {
    flex: 0 0 21%;
    max-width: 270px;
    position: relative;
}

.old-book-simple {
    flex: 0 0 auto;
    width: clamp(220px, 18vw, 320px);
    max-width: 100%;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.old-book-simple img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.2);
    display: block;
}

.old-book-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: float 3s ease-in-out infinite;
}

.arrow-container {
    flex: 0 0 auto;
    position: relative;
    width: clamp(280px, 22vw, 400px);
    max-width: 100%;
    height: clamp(150px, 15vh, 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Главный заголовок (2 строки) */
.main-title-text {
    text-align: center;
    z-index: 2;
    background: white;
    padding: 11.6px 14.5px;
    border-radius: 15px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.title-line1 {
    color: #146A3D;
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.9),
        0 0 4px rgba(255, 255, 255, 0.7),
        1.5px 1.5px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: 'Caveat', 'Patrick Hand', 'Kalam', cursive;
}

.title-line2 {
    color: #146A3D;
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.9),
        0 0 4px rgba(255, 255, 255, 0.7),
        1.5px 1.5px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 3px;
    white-space: nowrap;
    font-family: 'Caveat', 'Patrick Hand', 'Kalam', cursive;
}

/* Подзаголовок */
.subtitle-text {
    color: #146A3D;
    font-size: 1.8em;
    font-weight: 900;
    text-align: center;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.9),
        0 0 4px rgba(255, 255, 255, 0.7),
        1.5px 1.5px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    margin-top: 5px;
    font-family: 'Caveat', 'Patrick Hand', 'Kalam', cursive;
    background: white;
    padding: 16px 20px;
    border-radius: 15px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.green-arrow {
    width: 100%;
    height: 100%;
    position: relative;
}

.green-arrow::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    width: 8px;
    height: 70%;
    background: linear-gradient(135deg, #009600, #009600);
    transform: translateX(-50%);
    border-radius: 4px;
    animation: pulse 2s ease-in-out infinite;
}

.green-arrow::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 0;
    width: 0;
    height: 0;
    border-right: 20px solid #009600;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    animation: pulse 2s ease-in-out infinite;
}

.new-book-wrapper {
    flex: 0 0 auto;
    width: clamp(280px, 25vw, 450px);
    max-width: 100%;
    position: relative;
}

.new-book-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: float 3s ease-in-out infinite 0.5s;
}

.book-front {
    position: relative;
    width: 100%;
    transform: none;
}

.book-front img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.3);
    display: block;
}

.book-spine {
    position: absolute;
    right: -25px;
    top: 0;
    bottom: 0;
    width: 25px;
    background: linear-gradient(to right, 
        rgba(30, 30, 30, 0.9),
        rgba(80, 80, 80, 0.7),
        rgba(120, 120, 120, 0.5));
    border-radius: 0 8px 8px 0;
    transform-origin: left center;
    transform: perspective(1000px) rotateY(65deg);
}

.book-shadow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent);
    filter: blur(20px);
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes snow {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.section-hero-title-link {
    display: inline-block;
    text-decoration: none;
    color: #146A3D;
    font-size: 3.5em;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.9),
        0 0 4px rgba(255, 255, 255, 0.7),
        1.5px 1.5px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    background: white;
    padding: 16px 20px;
    border-radius: 15px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-hero-title-link:hover {
    transform: translateY(-3px);
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 50px rgba(255, 215, 0, 0.6),
            0 0 80px rgba(255, 215, 0, 0.4),
            3px 3px 10px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 
            0 0 40px rgba(255, 255, 255, 1),
            0 0 70px rgba(255, 215, 0, 0.8),
            0 0 100px rgba(255, 215, 0, 0.6),
            3px 3px 15px rgba(0, 0, 0, 0.7),
            0 0 0 2px rgba(255, 255, 255, 0.3);
    }
}

/* Таймер обратного отсчета */
.timer-section {
    margin-bottom: 40px;
}

.timer-label {
    display: inline-block;
    font-size: 1.2em;
    color: #146A3D;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.9),
        0 0 4px rgba(255, 255, 255, 0.7),
        1.5px 1.5px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    background: white;
    padding: 16px 20px;
    border-radius: 15px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    padding: 15px 15px;
    min-width: 80px;
    min-height: 100px;
    width: 80px;
    height: 100px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.timer-item span:first-child {
    font-size: 3.5em;
    font-weight: bold;
    color: #146A3D;
    margin-bottom: 5px;
}

.timer-label-small {
    font-size: 1.95em;
    color: #6B7280;
    margin-top: -15px;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.timer-item:nth-child(1),
.timer-item:nth-child(2),
.timer-item:nth-child(3) {
    width: 106px;
    height: 113px;
    min-width: 106px;
    min-height: 113px;
    padding: 16px 20px;
}

.timer-item:nth-child(3) {
    width: 116px;
    min-width: 116px;
    padding: 16px 22px;
}

.timer-item:nth-child(3) .timer-label-small {
    font-size: 1.56em;
}

.timer-item:nth-child(4) .timer-label-small {
    display: none;
}

/* Информация о событии */
.event-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.info-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 248, 240, 0.95) 100%);
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1.1em;
    color: #2c3e50;
    font-weight: 600;
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.4);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
}

.info-item-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-item-link:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 150, 0, 0.3);
}

/* Общие стили для секций */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3em;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-weight: 700;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.9),
        0 0 4px rgba(255, 255, 255, 0.7),
        1.5px 1.5px 4px rgba(0, 0, 0, 0.3);
}

/* Заголовок "Նախորդ շնորհանդեսներ" */
h2.section-title-presentations {
    font-size: 3em;
    text-align: center;
    margin-bottom: 50px;
    color: #000000 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
}

/* Секция 2: Книги */
.section-books {
    background: url('Fon.jpg') center center / cover no-repeat fixed;
    position: relative;
}

.section-books::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 0;
}

.section-books .container {
    position: relative;
    z-index: 1;
}

.books-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px 26px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.book-item {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.book-item:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.3);
}

.books-left .book-item:nth-child(1):hover,
.books-left .book-item:nth-child(3):hover {
    transform: translateX(-0.5cm) translateY(-10px);
}

.book-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.books-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    transform: scale(0.7) translateX(-4px);
    align-self: start;
    margin-top: -100px;
}

.books-left .book-item:nth-child(1),
.books-left .book-item:nth-child(3) {
    transform: translateX(-0.5cm);
}

.book-featured {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-featured .book-label {
    position: absolute;
    top: calc(-40px - 1cm);
    left: 50%;
    transform: translateX(-50%) translateY(-0.5cm);
    background: #FF0019;
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 2.2em;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 0, 25, 0.4);
    z-index: 2;
}

.book-featured-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    max-width: 450px;
    transform: translate(100px, calc(160px + 1.5cm));
    margin: 0 auto;
}

.book-featured-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-featured-wrapper:hover img {
    transform: translateY(-10px);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.4);
}

.book-placeholder {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 10px;
    padding: 200px 20px;
    text-align: center;
    border: 2px solid #ddd;
    transition: transform 0.3s ease;
}

.book-placeholder:hover {
    transform: translateY(-5px);
}

.book-text {
    font-size: 1.5em;
    color: #999;
    font-weight: 600;
}

/* Секция 3: Презентации */
.section-presentations {
    background: url('Fon.jpg') center center / cover no-repeat fixed;
    position: relative;
}

.section-presentations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 0;
}

.presentations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.presentation-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    border-radius: 10px;
    padding: 20px;
    padding-top: 80px;
    text-align: center;
    border: 2px solid #ccc;
    transition: transform 0.3s ease;
    min-height: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.presentation-placeholder:hover {
    transform: translateY(-5px);
}

.presentation-label {
    font-size: 2em;
    color: #333;
    font-weight: 700;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

.presentation-text {
    font-size: 1.5em;
    color: #999;
    font-weight: 600;
}

.presentation-photos {
    cursor: pointer;
    overflow: hidden;
}

.photo-main-wrapper {
    margin-top: 5px;
    width: 100%;
    height: calc(100% - 5px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.photo-main {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.presentation-photos:hover .photo-main {
    transform: scale(1.05);
}

.presentation-videos {
    cursor: pointer;
    overflow: hidden;
}

.video-main-wrapper {
    margin-top: 5px;
    width: 100%;
    height: calc(100% - 5px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-main {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.presentation-videos:hover .video-main {
    transform: scale(1.02);
}

/* Стрелки навигации для главного видео (все версии) */
.video-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 2em;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 100;
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.video-nav-arrow:hover {
    opacity: 1;
}

.video-nav-prev {
    left: 10px;
}

.video-nav-next {
    right: 10px;
}

/* Убеждаемся что стрелки кликабельны */
.video-main-wrapper:hover .video-nav-arrow {
    opacity: 1;
}

.video-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Кнопка Play/Pause для главного видео (все версии) */
.video-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 3em;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
    padding-left: 5px;
    opacity: 0.8;
}

.video-play-btn:hover {
    opacity: 1;
}

.video-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.video-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Стрелки навигации для главного фото (только мобильная версия) */
.photo-nav-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 2em;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 100;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.photo-nav-prev {
    left: 10px;
}

.photo-nav-next {
    right: 10px;
}

.photo-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.photo-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Модальное окно для фотографий */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.photo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: zoom 0.3s;
}

.photo-modal-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.photo-modal-close:hover {
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.7);
}

.photo-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 20px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.photo-modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.photo-modal-prev {
    left: 30px;
}

.photo-modal-next {
    right: 30px;
}

.photo-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5em;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Модальное окно для видео */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: zoom 0.3s;
    border-radius: 8px;
}

.video-modal-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.video-modal-close:hover {
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.7);
}

.video-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 20px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.video-modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.video-modal-prev {
    left: 30px;
}

.video-modal-next {
    right: 30px;
}

.video-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5em;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Секция 4: Контакты и регистрация */
.section-contact {
    background: url('Fon.jpg') center center / cover no-repeat fixed;
    position: relative;
}

.section-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    z-index: 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.register-button {
    display: inline-block;
    background: #FF0019;
    color: white;
    text-decoration: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.5em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(255, 0, 25, 0.5),
        0 0 30px rgba(255, 0, 25, 0.3);
    cursor: pointer;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.register-button::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    font-size: 0.8em;
    color: #FFFFFF;
}

.register-button:hover::before {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.register-button::after {
    content: '✦';
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    font-size: 0.8em;
    color: #FFFFFF;
}

.register-button:hover::after {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.register-button:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 35px rgba(255, 0, 25, 0.7),
        0 0 40px rgba(255, 0, 25, 0.5);
}

.register-button:active {
    transform: translateY(-2px);
}

.counter-section {
    background: #FF0019;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    color: white;
}

.counter-label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 10px;
    opacity: 0.95;
}

.counter-number {
    display: block;
    font-size: 3.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Счетчик посетителей */
.visitor-counter-section {
    background: linear-gradient(135deg, #146A3D 0%, #009600 100%);
    border-radius: 15px;
    padding: 15px 25px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 
        0 8px 25px rgba(20, 106, 61, 0.4),
        0 0 30px rgba(0, 150, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.visitor-counter-label {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 600;
    white-space: nowrap;
}

.visitor-counter-number {
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    min-width: 110px;
    text-align: right;
}

/* Контакты */
.contacts-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.contacts-label {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    color: #555;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #667eea;
}

.instagram-button {
    display: inline-block;
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    color: white !important;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.3);
}

.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.4);
}

/* Адаптивность для очень больших экранов */
@media (min-width: 1920px) {
    .hero-content {
        max-width: 1800px;
    }
    
    .books-showcase {
        gap: 80px;
    }
    
    .old-book-simple {
        width: 340px;
    }
    
    .arrow-container {
        width: 450px;
    }
    
    .new-book-wrapper {
        width: 480px;
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Фиксим фон для мобильных устройств */
    body {
        background-attachment: scroll !important;
        background-size: auto 100vh !important;
        background-position: center top !important;
    }
    
    .section-hero,
    .section-books,
    .section-presentations,
    .section-contact {
        background: url('Fon.jpg') center center / cover no-repeat scroll !important;
    }
    
    .navbar {
        padding: 3.36px 0 !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
    }
    
    .nav-container {
        padding: 3.36px 6.3px !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    
    .author-name {
        font-size: 0.85em !important;
        line-height: 1.3 !important;
        margin-bottom: 2.1px !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
    }
    
    .nav-buttons {
        gap: 4px !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        overflow-x: auto !important;
    }
    
    .nav-btn {
        font-size: 0.65em !important;
        padding: 2.5px !important;
        min-height: auto !important;
        font-weight: 700 !important;
        touch-action: manipulation !important;
    }
    
    .nav-btn-map {
        padding: 2.5px !important;
        font-size: 0.65em !important;
        min-height: auto !important;
        font-weight: 700 !important;
    }
    
    .section {
        padding: 120px 15px 60px;
        scroll-margin-top: 80px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .books-showcase {
        gap: 25px;
        flex-direction: column;
        align-items: center;
    }
    
    .old-book-simple {
        width: 35.49%;
        max-width: 116.76px;
        min-width: 83.81px;
        margin-top: -20px;
    }
    
    .new-book-wrapper {
        width: 85%;
        max-width: 320px;
        min-width: 220px;
    }
    
    .arrow-container {
        width: 85%;
        max-width: 300px;
        min-width: 250px;
        height: auto;
        min-height: 140px;
        padding: 10px 0;
        margin-top: -40px;
    }
    
    .new-book-wrapper {
        width: 42.28%;
        max-width: 164.45px;
        min-width: 129.34px;
        margin-top: -15px;
    }
    
    .title-line1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    .title-line2 {
        font-size: 2.1em;
        letter-spacing: 2px;
        white-space: normal;
    }
    
    .subtitle-text {
        font-size: 1.3em;
        padding: 12px 18px;
    }
    
    .main-title-text {
        padding: 10px 12px;
    }
    
    .book-front {
        transform: none !important;
    }
    
    .book-spine {
        right: -12px;
        width: 12px;
    }
    
    .section-hero-title-link {
        font-size: 2em;
        padding: 14px 18px;
        margin-bottom: 30px;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        min-height: 60px;
        touch-action: manipulation;
    }
    
    .section-title {
        font-size: 2.5em;
        padding: 0 10px;
        line-height: 1.3;
    }
    
    .timer-section {
        margin-bottom: 30px;
    }
    
    .timer-label {
        font-size: 1.1em;
        padding: 12px 18px;
        margin-bottom: 15px;
    }
    
    .timer-display {
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .timer-item {
        padding: 12px 14px;
        min-width: 70px;
        min-height: 80px;
        touch-action: manipulation;
    }
    
    .timer-item span:first-child {
        font-size: 2.5em;
    }
    
    .timer-label-small {
        font-size: 1em;
    }
    
    .event-info {
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .info-item {
        padding: 12px 20px;
        font-size: 1em;
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .presentations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .books-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-width: 100%;
    }
    
    .books-left {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        transform: scale(0.66) !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        order: 1 !important;
    }
    
    .book-item {
        width: 100%;
        max-width: 100%;
    }
    
    .book-featured {
        grid-column: 1;
        margin: 0;
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .book-featured-wrapper {
        position: relative;
        order: 3;
        max-width: 100%;
        transform: none;
        margin: 0 auto;
        width: 90%;
        max-width: 350px;
    }
    
    .book-label {
        font-size: 1.8em;
        padding: 10px 25px;
        position: static;
        left: auto;
        transform: none;
        white-space: nowrap;
        margin-bottom: 30px;
        order: 2;
        width: fit-content;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .book-placeholder,
    .presentation-placeholder {
        padding: 120px 20px;
    }
    
    .photo-main-wrapper,
    .video-main-wrapper {
        margin-top: 15px;
    }
    
    /* Адаптация стрелок для мобильных */
    .video-nav-arrow,
    .photo-nav-arrow {
        font-size: 1.875em;
        padding: 12px 18px;
        touch-action: manipulation;
    }
    
    /* Адаптация кнопки Play для мобильных */
    .video-play-btn {
        touch-action: manipulation;
    }
    
    .photo-modal-close,
    .video-modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }
    
    .photo-modal-nav,
    .video-modal-nav {
        padding: 15px;
        font-size: 24px;
        width: 50px;
        height: 50px;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .photo-modal-prev,
    .video-modal-prev {
        left: 10px;
    }
    
    .photo-modal-next,
    .video-modal-next {
        right: 10px;
    }
    
    .photo-counter,
    .video-counter {
        bottom: 20px;
        font-size: 1.2em;
        padding: 8px 16px;
    }
    
    .photo-modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .video-modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .register-button {
        font-size: 1.1em;
        padding: 16px 35px;
        min-height: 56px;
        touch-action: manipulation;
        width: 90%;
        max-width: 300px;
    }
    
    .contact-content {
        padding: 0 15px;
    }
    
    .section-title {
        margin-bottom: 25px;
    }
    
    /* Счетчик посетителей на мобильных */
    .visitor-counter-section {
        padding: 12px 20px;
        gap: 10px;
    }
    
    .visitor-counter-label {
        font-size: 0.95em;
    }
    
    .visitor-counter-number {
        font-size: 1.5em;
        min-width: 95px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    /* iPhone SE, маленькие Android устройства */
    .navbar {
        padding: 3.6px 0;
    }
    
    .nav-container {
        padding: 3.6px 6px;
        gap: 4px;
    }
    
    .author-name {
        font-size: 0.85em;
        line-height: 1.2;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    
    .nav-buttons {
        gap: 3.6px;
    }
    
    .nav-btn {
        font-size: 0.6em;
        padding: 2.5px;
        min-height: auto;
        font-weight: 700;
    }
    
    .nav-btn-map {
        font-size: 0.6em;
        padding: 2.5px;
        min-height: auto;
        font-weight: 700;
    }
    
    .section {
        padding: 110px 12px 50px;
    }
    
    .books-left {
        transform: scale(0.66);
        gap: 20px;
    }
    
    .book-label {
        font-size: 1.5em;
        margin-bottom: 25px;
    }
    
    .hero-content {
        padding: 0 12px;
    }
    
    .books-showcase {
        gap: 20px;
    }
    
    .old-book-simple {
        width: 90%;
        max-width: 240px;
        min-width: 180px;
    }
    
    .new-book-wrapper {
        width: 90%;
        max-width: 280px;
        min-width: 200px;
    }
    
    .arrow-container {
        width: 90%;
        max-width: 280px;
        min-width: 220px;
        height: auto;
        min-height: 120px;
        padding: 8px 0;
    }
    
    .title-line1 {
        font-size: 1.5em;
        letter-spacing: 0.5px;
        margin-bottom: 5px;
    }
    
    .title-line2 {
        font-size: 1.8em;
        letter-spacing: 1.5px;
        white-space: normal;
    }
    
    .subtitle-text {
        font-size: 1.1em;
        padding: 10px 16px;
    }
    
    .main-title-text {
        padding: 8px 10px;
    }
    
    .section-hero-title-link {
        font-size: 1.7em;
        padding: 12px 16px;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 2em;
        padding: 0 8px;
        line-height: 1.3;
    }
    
    .timer-label {
        font-size: 1em;
        padding: 10px 16px;
        margin-bottom: 12px;
    }
    
    .timer-display {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .timer-item {
        padding: 10px 12px;
        min-width: 65px;
        min-height: 75px;
    }
    
    .timer-item span:first-child {
        font-size: 2.2em;
    }
    
    .timer-label-small {
        font-size: 0.9em;
    }
    
    .event-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .info-item {
        font-size: 0.95em;
        padding: 10px 18px;
        width: 90%;
        max-width: 280px;
    }
    
    .register-button {
        font-size: 1em;
        padding: 14px 30px;
        width: 85%;
        max-width: 280px;
    }
    
    .contact-content {
        padding: 0 12px;
    }
    
    .section-title {
        margin-bottom: 20px;
    }
    
    .books-left {
        transform: scale(0.66) !important;
        gap: 20px !important;
    }
    
    /* Счетчик посетителей на маленьких телефонах */
    .visitor-counter-section {
        padding: 10px 18px;
        gap: 8px;
    }
    
    .visitor-counter-label {
        font-size: 0.9em;
    }
    
    .visitor-counter-number {
        font-size: 1.4em;
        min-width: 90px;
        letter-spacing: 1px;
    }
}

/* Специальная оптимизация для iPhone (iOS Safari) */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* Дополнительные исправления фона для iOS */
        body {
            background-size: 100% auto !important;
            background-attachment: scroll !important;
        }
        
        .section-hero,
        .section-books,
        .section-presentations,
        .section-contact {
            background: url('Fon.jpg') center center / cover no-repeat scroll !important;
        }
        
        .section {
            padding-top: calc(env(safe-area-inset-top) + 120px);
        }
        
        .navbar {
            padding-top: calc(env(safe-area-inset-top) + 3.36px) !important;
            padding-bottom: calc(env(safe-area-inset-bottom) + 3.36px) !important;
        }
        
        .hero-content {
            padding-left: max(15px, env(safe-area-inset-left));
            padding-right: max(15px, env(safe-area-inset-right));
        }
    }
}

/* Оптимизация для Android (Chrome) */
@media (max-width: 768px) and (orientation: portrait) {
    .books-showcase {
        gap: 22px;
    }
    
    .timer-display {
        gap: 10px;
    }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        padding: 3.6px 0;
    }
    
    .nav-container {
        gap: 4px;
    }
    
    .author-name {
        font-size: 0.85em;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    
    .nav-btn {
        font-size: 0.55em;
        padding: 2.5px;
        font-weight: 700;
    }
    
    .section {
        padding: 90px 15px 40px;
    }
    
    .books-showcase {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }
    
    .old-book-simple {
        width: 30%;
        max-width: 200px;
    }
    
    .arrow-container {
        width: 30%;
        max-width: 250px;
    }
    
    .new-book-wrapper {
        width: 30%;
        max-width: 250px;
    }
    
    .books-left {
        transform: scale(0.66) !important;
        gap: 20px !important;
    }
    
    .timer-display {
        gap: 8px;
    }
    
    .timer-item {
        padding: 10px 12px;
        min-width: 60px;
        min-height: 70px;
    }
    
    .timer-item span:first-child {
        font-size: 2em;
    }
}

/* Всплывающее сообщение от бота */
.bot-message {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #009600;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 25px;
    max-width: 320px;
    opacity: 0;
    transform: translateX(500px);
    transition: all 0.5s ease;
    z-index: 1000;
    overflow: hidden;
}

.bot-message::before {
    content: '❄';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.2);
    animation: snow 15s linear infinite;
    pointer-events: none;
}

.bot-message.show {
    opacity: 1;
    transform: translateX(0);
}

.bot-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 2;
}

.bot-close:hover {
    color: white;
}

.bot-title {
    font-size: 1.4em;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.bot-timer {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.bot-timer-item {
    background: #FF0019;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    color: white;
    min-width: 60px;
}

.bot-timer-item span:first-child {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
}

.bot-timer-item {
    position: relative;
    z-index: 1;
}

.bot-timer-label {
    display: block;
    font-size: 0.75em;
    opacity: 0.9;
    margin-top: 5px;
}

.bot-register-button {
    display: block;
    text-align: center;
    background: #FF0019;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 25, 0.4);
}

.bot-register-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 25, 0.6);
}

.bot-register-button {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .bot-message {
        right: 10px;
        bottom: 10px;
        max-width: 280px;
        padding: 20px;
    }
    
    .bot-title {
        font-size: 1.2em;
    }
    
    .bot-timer-item {
        padding: 10px 8px;
        min-width: 50px;
    }
    
    .bot-timer-item span:first-child {
        font-size: 1.5em;
    }
    
    .bot-timer-label {
        font-size: 0.7em;
    }
    
    .bot-register-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .bot-message {
        max-width: 240px;
        padding: 15px;
    }
    
    .bot-title {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .bot-timer {
        gap: 5px;
    }
    
    .bot-timer-item {
        padding: 8px 6px;
        min-width: 45px;
    }
    
    .bot-timer-item span:first-child {
        font-size: 1.3em;
    }
    
    .bot-timer-label {
        font-size: 0.65em;
    }
    
    .bot-register-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Поддержка prefers-reduced-motion для пользователей с ограниченными возможностями */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
