@charset "utf-8";
/* CSS Document */

/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    --bg-color: #222;
	--text-color-light: #ffe063;
    --text-color: #ffcc00;
    --color-accent: #ffa51d;
	--color-accent2: #d2c2ad;
	--color-accent3: #ebd1af;
	--color-accent-mid: #ff6800;
    --color-accent-dark: #823600;
    --color-glow-center: #ffe200;
    --color-glow-edge: #ff0000;
	--color-accent-dark-rgb: 255, 104, 0;
    --video-max-desktop: 720px;
    --video-max-tablet: 350px;
    --video-max-mobile: 250px;
}

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
body.ss-landing {
    background: var(--bg-color) url('/wp-content/themes/mytheme/images/ss/fon_kamen.jpg') repeat;
    margin: 0;
    color: var(--text-color);
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
	padding-bottom: 200px; /* ← ДОБАВИТЬ отступ снизу */
    color: var(--color-accent);
    text-shadow: 
        1px 1px 1px var(--color-accent-dark),
		1px 1px 1px var(--color-accent-dark),
		0 0 2px var(--color-accent-dark),
        0 0 6px var(--color-accent-dark);
}
a {
	color: var(--text-color);
	text-shadow: 
        1px 1px 1px var(--color-accent-mid),
		1px 1px 1px var(--color-accent-mid),
		/*0 0 2px var(--color-accent-mid),*/
        0 0 6px var(--color-accent-mid);
	text-decoration: underline;
	
}

a:hover {
    color: var(--text-color-light);
     text-shadow: 
        1px 1px 1px var(--color-accent-dark),
		1px 1px 1px var(--color-accent-dark),
		0 0 2px var(--color-accent-dark),
        0 0 6px var(--color-accent-dark);
}


@media (max-width: 768px) {
 body.ss-landing {
	padding-bottom: 20px; /* ← ДОБАВИТЬ отступ снизу */
}
    }




/* ===== РАСШИРИТЕЛЬ ===== */
.video-extender {
    position: relative;
    width: 100%;
    background-color: #000000;
    height: 100vh;
    max-height: var(--video-max-desktop);
}
@media (max-width: 768px) {
    .video-extender {
        max-height: none;
        height: auto;
        min-height: calc(var(--video-max-tablet) + 200px);
    }
}
@media (max-width: 480px) {
    .video-extender {
        min-height: calc(var(--video-max-mobile) + 250px);
    }
}

/* Рамка расширителя */
.video-extender::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: 
        linear-gradient(145deg, #2a2a2a, #1a1a1a),
        url('/wp-content/themes/mytheme/images/ss/fon_kamen.jpg');
    border-radius: 0 0 8px 8px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.9),
        inset 0 0 40px rgba(0, 0, 0, 0.8),
        inset 0 -10px 30px rgba(0, 0, 0, 0.9);
    z-index: 2;
}

/* ===== ВИДЕО-ГЕРОЙ ===== */
/* ===== ВИДЕО-ГЕРОЙ ===== */
#video-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--video-max-desktop); /* ← ФИКС: фиксированная высота */
    overflow: hidden;
    z-index: 1;
}
@media (max-width: 768px) {
    #video-hero {
        height: var(--video-max-tablet); /* ← 350px */
    }
}
@media (max-width: 480px) {
    #video-hero {
        height: var(--video-max-mobile); /* ← 250px */
    }
}

/* ===== ВИДЕО ===== */
#video-hero video {
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 23px);
    object-fit: cover;
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
    /*filter: brightness(1.1) saturate(1.05);*/
}
@media (max-width: 768px) {
    #video-hero video {
        top: 5px;
        left: 5px;
        width: calc(100% - 10px);
        height: calc(100% - 15px);
    }
}
@media (max-width: 480px) {
    #video-hero video {
        top: 3px;
        left: 3px;
        width: calc(100% - 6px);
        height: calc(100% - 9px);
    }
}

/* Каменная граница видео */
/*#video-hero::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 20px;
    background: 
        linear-gradient(to right, 
            transparent 5%, 
            rgba(100, 100, 100, 0.1) 5%, 
            rgba(100, 100, 100, 0.1) 10%, 
            transparent 10%),
        linear-gradient(to bottom, 
            rgba(50, 50, 50, 0.3), 
            transparent 70%);
    background-size: 20px 100%, 100% 100%;
    z-index: 3;
}
*/

/* Каменная полоса внизу расширителя */
.video-extender::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Выступает за расширитель */
    left: 0;
    width: 100%;
    height: 30px; /* Толще для эффекта */
    background: 
        /* Текстура камня */
        url('/wp-content/themes/mytheme/images/ss/fon_kamen.jpg') repeat-x,
        /* Градиент для объема */
        linear-gradient(
            to bottom,
            rgba(80, 80, 80, 0.6) 0%,
            rgba(40, 40, 40, 0.8) 30%,
            rgba(20, 20, 20, 0.9) 100%
        );
    background-size: 200px 100%, 100% 100%;
    border-radius: 0 0 10px 10px;
    box-shadow: 
        /* Внешняя тень для объема */
        0 10px 25px rgba(0, 0, 0, 0.8),
        0 5px 15px rgba(0, 0, 0, 0.6),
        /* Внутренняя тень для углубления */
        inset 0 -5px 20px rgba(0, 0, 0, 0.7),
        inset 0 5px 10px rgba(255, 255, 255, 0.1);
    z-index: 2; /* Поверх фона body */
}







/* Градиентная полоса ПОВЕРХ ВИДЕО */
#video-hero::before {
    content: '';
    position: absolute;
    bottom: 0; /* В самом низу видео */
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, 
        rgba(0,0,0,1) 0%,     /* Черный внизу (у границы видео) */
        rgba(0,0,0,0.5) 50%,  /* Полупрозрачный */
        rgba(0,0,0,0) 100%    /* Полная прозрачность вверху */
    );
    pointer-events: none;
    z-index: 2; /* Поверх видео, под оверлеями */
}

/* Адаптация для планшетов */
@media (max-width: 768px) {
    #video-hero::before {
        height: 60px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    #video-hero::before {
        height: 40px;
    }
}



/* ===== ЗАГОЛОВОК ===== */
.title-container {
    position: absolute;
    top: 5%;
    right: 5%;
    max-width: min(1000px, 66.67vw);
    width: 50%;
    z-index: 4;
}
.title-container img {
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .title-container {
        width: 60%;
    }
}
@media (max-width: 480px) {
    .title-container {
        width: 80%;
        top: 10px;
        right: 3%;   /* ← ТОЛЬКО right */
        left: auto;  /* ← УБРАТЬ left: 10%! */
        margin: 0;   /* ← УБРАТЬ margin: 0 auto! */
        text-align: right; /* ← Выравнивание текста вправо */
        max-width: none;
    }
}

/* ===== ЛОГОТИП ===== */
.at-logo {
    position: absolute;
    bottom: 15px;
    left: 1%;
    z-index: 4;
    width: 15%;
    min-width: 80px;
    max-width: 200px;
}
.at-logo img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 768px) {
    .at-logo {
        width: 30%;
		bottom: 10px;
    }
}
@media (max-width: 480px) {
    .at-logo {
        width: 40%;
    }
}


/* ===== ДОПОЛНИТЕЛЬНЫЕ ССЫЛКИ ===== */
.additional-links {
    position: absolute;
    bottom: 35px; /* Как у .at-logo */
    left: 17%; /* Начинается после логотипа */
    z-index: 4;
    display: flex;
    flex-direction: row; /* ← ГОРИЗОНТАЛЬНО! */
    align-items: center; /* Выровнять по вертикали */
    gap: 30px; /* ← ПРОБЕЛ между элементами - меняйте! */
}

.book-link,
.info-link {
    
    text-decoration: underline;

    font-size: 1.25em;
    font-family: inherit;
    transition: all 0.2s ease;
    line-height: 1;
    white-space: nowrap; /* Не переносить текст */
}

/* Ховер */
.book-link:hover,
.info-link:hover {
    transform: translateY(-2px);

}

/* Активное состояние */
.book-link:active,
.info-link:active {
    transform: translateY(0) scale(0.98);
}

/* Мобильные версии - на каменной полосе */
@media (max-width: 768px) {
    .additional-links {
        /* Перемещаем на каменную полосу */
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        gap: 20px;
        text-align: center;
    }
    
    .book-link,
    .info-link {
        font-size: 1.25em;
    }
}

@media (max-width: 480px) {
    .additional-links {
        gap: 15px;
    }
    
    .book-link,
    .info-link {
        font-size: 0.9em;
    }
}






/* ===== КНОПКА ===== */
body.ss-landing .main-btn {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 20%;
    min-width: 180px;
    max-width: 250px;
    height: 60px;
    z-index: 4;
    color: #9f1510 !important;
    line-height: 60px;
    text-align: center;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 
        1px 1px 1px rgba(0, 0, 0, 0.5),
        -1px -1px 1px rgba(255, 215, 32, 0.7);
    border: 3px solid #9f1510;
    border-radius: 30px;
    background-image: linear-gradient(to bottom, var(--color-accent-mid) 0%, var(--text-color) 100%);
    box-shadow: 
        inset 0px -4px 0 rgba(255, 215, 32, 0.9),
        inset 0px 2px 0 rgba(255, 255, 255, 0.4),
        0 10px 30px rgba(var(--color-accent-dark-rgb) 0.8),
        0 0 25px rgba(255, 0, 0, 0.4);
    display: block;
    transition: all 0.2s ease;
    cursor: pointer;
}
/* Блик кнопки */
body.ss-landing .main-btn::before {
    content: "";
    color: transparent;
    line-height: 30px;
    width: calc(100% - 20px);
    height: 30px;
    margin-top: 0;
    margin-bottom: -30px;
    margin-left: 10px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
    border-radius: 15px;
    display: block;
    pointer-events: none;
}
/* Ховер кнопки */
body.ss-landing .main-btn:hover {
    transform: translateY(-4px);
    background-image: linear-gradient(to bottom, #ff5500 0%, #ffcc00 100%);
    border-color: #b6240e;
    box-shadow: 
        inset 0px -4px 0 rgba(255, 215, 32, 1),
        inset 0px 2px 0 rgba(255, 255, 255, 0.5),
        0 15px 40px rgba(var(--color-accent-dark-rgb) 1),
        0 0 35px rgba(255, 0, 0, 0.6);
}
/* Активное состояние кнопки */
body.ss-landing .main-btn:active {
    transform: translateY(-1px) scale(0.98);
    background-image: linear-gradient(to bottom, #ff4400 0%, #ffaa00 100%);
    box-shadow: 
        inset 0px 4px 8px rgba(0, 0, 0, 0.4),
        inset 0px -2px 0 rgba(255, 215, 32, 0.6),
        0 5px 20px rgba(var(--color-accent-dark-rgb) 0.7),
        0 0 15px rgba(255, 0, 0, 0.3);
}

body.ss-landing #btn1 {
	position: relative;
	bottom: 0;
    right: 0;
	margin: 20px auto 0; /* сверху 20px, слева/справа auto → по центру */
}
body.ss-landing #btn2 {
	position: relative;
	bottom: 0;
    right: 0;
	margin: 20px auto 0; /* сверху 20px, слева/справа auto → по центру */
	display: none;
}
body.ss-landing #btn3 {
	position: relative;
	bottom: 0;
    right: 0;
	margin: 20px auto 0; /* сверху 20px, слева/справа auto → по центру */
}

@media (max-width: 768px) {
   body.ss-landing .main-btn {
        width: 25%;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
        min-width: 150px;
        bottom: 5%;
        right: 4%;
        border-radius: 25px;
    }
   body.ss-landing .main-btn::before {
        height: 25px;
        line-height: 25px;
        margin-bottom: -25px;
        width: calc(100% - 16px);
        margin-left: 8px;
        border-radius: 12.5px;
    }
	
	
	body.ss-landing #btn1 {
	margin: 10px auto 0; /* сверху 20px, слева/справа auto → по центру */
}
body.ss-landing #btn2 {
	margin: 20px auto 0; /* сверху 20px, слева/справа auto → по центру */
	display: block;
}
body.ss-landing #btn3 {
	margin: 10px auto 0; /* сверху 20px, слева/справа auto → по центру */
}
	
	
	
}
@media (max-width: 480px) {
   body.ss-landing .main-btn {
        width: 40%;
        height: 45px;
        line-height: 45px;
        font-size: 18px;
        min-width: 120px;
        bottom: 5%;
        right: 3%;
        border-radius: 22.5px;
    }
   body.ss-landing .main-btn::before {
        height: 22px;
        line-height: 22px;
        margin-bottom: -22px;
        width: calc(100% - 12px);
        margin-left: 6px;
        border-radius: 11px;
    }
}

/* ===== ANNOTATION-WRAPPER ===== */
.annotation-wrapper {
    position: absolute;
    right: 5%;
    max-width: min(1000px, 66.67vw);
    width: 50%;
    z-index: 4;
    bottom: calc(5% + 90px);
    top: auto;
	/*display: none;*/
}
@media (max-width: 768px) {
    .annotation-wrapper {
        width: 94%;
        right: 3%;
        left: 3%;
        max-width: none;
        top: calc(var(--video-max-tablet) - 30px);
        bottom: auto;
    }
}
@media (max-width: 480px) {
    .annotation-wrapper {
        top: calc(var(--video-max-mobile) - 20px);
    }
}

/* ===== ANNOTATION-DESKTOP ===== */
.annotation-desktop {
    display: block;
    font-size: 1.3em;
    line-height: 1.4;

    text-align: justify;
    margin-bottom: 1em;
    text-indent: 1.5em;
    /* БЕЗ подложки - только текст */
}
@media (max-width: 768px) {
    .annotation-desktop {
        display: none;
    }
}

/* ===== ANNOTATION-MOBILE ===== */
.annotation-mobile {
    display: none;
    font-size: 1.3em;
    line-height: 1.4;
    text-align: justify;
    margin-bottom: 1em;
    text-indent: 1.5em;
    /* БЕЗ подложки - только текст */
}
@media (max-width: 768px) {
    .annotation-mobile {
        display: block;
        font-size: 1.1em;
    }
}
@media (max-width: 480px) {
    .annotation-mobile {
        font-size: 1em;
    }
}

/* ===== ANNOTATION-CAROUSEL ===== */
.annotation-carousel {
    position: relative;
    min-height: 4em;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .annotation-carousel {
        margin-top: 3px;
    }
}

/* ===== CAROUSEL-ITEM ===== */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 1.3em;
    line-height: 1.2;
    text-align: justify;
    opacity: 0;
    animation: textFade 80s infinite linear;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
	text-indent: 1.5em;
}
@media (max-width: 768px) {
    .carousel-item {
        font-size: 1.1em;
        padding: 0 10px; /* ← ДОБАВИТЬ: слева/справа по 10px */
        box-sizing: border-box; /* ← Чтобы padding не увеличивал ширину */		
    }
}
@media (max-width: 480px) {
    .carousel-item {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .annotation-mobile,
    .carousel-item {
        /* ОБНУЛИТЬ все возможные отступы */
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-indent: 1.5em;
        /* Принудительно одинаковая ширина */
        width: 100% !important;
        box-sizing: border-box !important;
    }
}



/* Анимация карусели */
@keyframes textFade {
    0% { opacity: 0; }
    2.5% { opacity: 1; }
    7.5% { opacity: 1; }
    10% { opacity: 0; }
    100% { opacity: 0; }
}

/* Задержки карусели */
.carousel-item:nth-child(1) { animation-delay: 0s; }
.carousel-item:nth-child(2) { animation-delay: 8s; }
.carousel-item:nth-child(3) { animation-delay: 16s; }
.carousel-item:nth-child(4) { animation-delay: 24s; }
.carousel-item:nth-child(5) { animation-delay: 32s; }
.carousel-item:nth-child(6) { animation-delay: 40s; }
.carousel-item:nth-child(7) { animation-delay: 48s; }
.carousel-item:nth-child(8) { animation-delay: 56s; }
.carousel-item:nth-child(9) { animation-delay: 64s; }
.carousel-item:nth-child(10) { animation-delay: 72s; }

/* ===== OVERLAY-CONTAINER ===== */
.overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
@media (max-width: 768px) {
    .overlay-container {
        width: 50%;
    }
}
@media (max-width: 480px) {
    .overlay-container {
        width: 60%;
    }
}

/* ===== OVERLAY ===== */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    opacity: 0;
    animation: slideshow 80s infinite linear;
    filter: drop-shadow(5px 5px 8px rgba(0,0,0,0.3));
}

/* Анимация оверлеев */
@keyframes slideshow {
    0% { opacity: 0; }
    3.75% { opacity: 1; }
    6.25% { opacity: 1; }
    10% { opacity: 0; }
    100% { opacity: 0; }
}

/* Задержки оверлеев */
.overlay:nth-child(1) { animation-delay: 0s; }
.overlay:nth-child(2) { animation-delay: 8s; }
.overlay:nth-child(3) { animation-delay: 16s; }
.overlay:nth-child(4) { animation-delay: 24s; }
.overlay:nth-child(5) { animation-delay: 32s; }
.overlay:nth-child(6) { animation-delay: 40s; }
.overlay:nth-child(7) { animation-delay: 48s; }
.overlay:nth-child(8) { animation-delay: 56s; }
.overlay:nth-child(9) { animation-delay: 64s; }
.overlay:nth-child(10) { animation-delay: 72s; }





/* ===== BOTTOM-BLOCK ===== */
/* ===== BOTTOM-BLOCK ===== */
.bottom-block {
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    gap: 30px;
}

/* ===== COVERS-SECTION ===== */
.covers-section {
    flex: 0 0 30%;
   }

/* ===== REVIEWS-SECTION ===== */
.reviews-section {
    flex: 0 0 70%;
   }

@media (max-width: 768px) {
    .bottom-block {
        flex-direction: column;
        gap: 20px;
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .covers-section,
    .reviews-section {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===== SECTION-TITLE ===== */
.section-title {
    color: var(--text-color);
    text-shadow: 
        1px 1px 1px var(--color-accent-mid),
        0 0 6px var(--color-accent-mid);
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 15px;
	margin-top: 60px;
    font-weight:normal;
	text-transform: uppercase;
}
@media (max-width: 768px) {
    .section-title {
        font-size: 1.3em;
        margin-bottom: 10px;
		margin-top: 30px;
    }
}
@media (max-width: 480px) {
    .section-title {
        font-size: 1.2em;
        margin-bottom: 20px;
		margin-top: 20px;
    }
}

/* ===== COVERS-CONTAINER ===== */
.covers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
@media (max-width: 768px) {
    .covers-container {
        gap: 0px;
    }
}
@media (max-width: 480px) {
    .covers-container {
        flex-direction: column;
        gap: 0;
    }
}





/* ===== COVERS-CAROUSEL ===== */
.covers-carousel {
    position: relative;
    width: 100%;
	aspect-ratio: 1 / 1.7; 
    /* УБРАТЬ: height, min-height, overflow: hidden */
}
/* Медиа-запросы для .covers-carousel - удалить полностью */
@media (max-width: 768px) {
	.covers-carousel {
		aspect-ratio: 1 / 1.35; 
	}
}

@media (max-width: 480px) {
	.covers-carousel {
		aspect-ratio: 1 / 1.6; 
	}
}

/* ===== COVER-INFO (ИСПРАВЛЕННЫЙ) ===== */
.cover-info {
    width: 100%;
    margin: 0 auto;
    text-align: justify;
    /* ДОБАВИТЬ: фиксированная высота 4 строки */
    height: 10em; /* 4 строки × 1.4em */
    min-height: 10em;
    overflow: hidden;
}
@media (max-width: 768px) {
    .cover-info {
        width: 80%;
        height: 10em; /* 4 × 1.3em */
        min-height: 10em;
    }
}
@media (max-width: 480px) {
    .cover-info {
        width: 90%;
        height: 10em; /* 4 × 1.2em */
        min-height: 10em;
    }
}
/* ===== COVER-SLIDE ===== */
.cover-slide {
    position:relative;
    top: 0;
    left: 0;
    width: 100%;
    /* УБРАТЬ: height */
    opacity: 0;
    animation: coverSlide 49.5s infinite linear;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ===== COVER-SLIDE ===== */
.cover-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    opacity: 0;
    flex-direction: column;
    align-items: center;
    animation: coverSlide 49.5s infinite linear; /* 9 × 7 = 63s */
}

/* Анимация 7 секунд на обложку */
/* Анимация как у оверлеев */
@keyframes coverSlide {
    0% { opacity: 0; height: 0; overflow: hidden; }
    3.03% { opacity: 1; height: auto; overflow: visible; }   /* проявилась за 1.5s */
    11.11% { opacity: 1; height: auto; overflow: visible; }  /* показ 4s (3.03% + 8.08%) */
    14.14% { opacity: 0; height: 0; overflow: hidden; }      /* скрылась за 1.5s */
    100% { opacity: 0; height: 0; overflow: hidden; }
}

/* Анимация для первой обложки (уже видна сразу) */
@keyframes coverSlideFirst {
    0% { opacity: 1; }
    11.11% { opacity: 1; }
    14.14% { opacity: 0; }
    100% { opacity: 0; }
}




/* Задержки по 7 секунд */
.cover-slide:nth-child(1) { 
    animation: coverSlideFirst 49.5s infinite linear;
    opacity: 1;
    height: auto;
    overflow: visible;
}
/*.cover-slide:nth-child(1) { animation-delay: 0s; }*/
.cover-slide:nth-child(2) { animation-delay: 5.5s; }
.cover-slide:nth-child(3) { animation-delay: 11s; }
.cover-slide:nth-child(4) { animation-delay: 16.5s; }
.cover-slide:nth-child(5) { animation-delay: 22s; }
.cover-slide:nth-child(6) { animation-delay: 27.5s; }
.cover-slide:nth-child(7) { animation-delay: 33s; }
.cover-slide:nth-child(8) { animation-delay: 38.5s; }
.cover-slide:nth-child(9) { animation-delay: 44s; }












/* Класс для лайтбокса */
.foto {
    cursor: pointer;
}

/* ===== COVER-LINK ===== */
.cover-link {
    display: block;
    width: 100%;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}
.cover-link:hover {
    transform: translateY(-5px) rotateY(-5deg);
}
@media (max-width: 768px) {
    .cover-link {
        width: 80%;
    }
}
@media (max-width: 480px) {
    .cover-link {
        width: 90%;
        
	}
}

/* ===== COVER-IMAGE ===== */
.cover-image {
    width: 100%;
    height: auto;
    border-radius: 4px 8px 8px 4px;
    box-shadow: 
        -8px 0 15px rgba(0,0,0,0.4),
        0 5px 15px rgba(0,0,0,0.3),
        inset 1px 0 0 rgba(255,255,255,0.1);
    display: block;
}

/* ===== COVER-INFO ===== */
.cover-info {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
@media (max-width: 768px) {
    .cover-info {
        width: 80%;
    }
}
@media (max-width: 480px) {
    .cover-info {
        width: 90%;
 
    }
}

/* ===== COVER-PRICE ===== */
.cover-price {
    color: var(--color-accent);
    text-shadow: 
        1px 1px 1px var(--color-accent-dark),
        0 0 6px var(--color-accent-dark);
    font-size: 1.3em;
    font-weight:200;
    margin-bottom: 3px;
	text-align: left;
	text-indent: 1em;
}
@media (max-width: 480px) {
    .cover-price {
        font-size: 1.2em;
    }
}

/* ===== COVER-ANNOTATION ===== */
.cover-annotation {
    font-size: 1.0em;
    line-height: 1.2;
    text-align: justify;
	text-indent: 1em;
}
@media (max-width: 480px) {
    .cover-annotation {
        font-size: 1em;
    }
}


/* ===== REVIEWS SECTION ===== */
.reviews-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
	
}
.reviews-content .section-title {
	margin-top: -30px;
}
@media (max-width: 768px) {
	.reviews-content .section-title {
	margin-top: -20px;
	}
}
@media (max-width: 480px) {
	.reviews-content .section-title {
	margin-top: -10px;
	}
}


.tabla-top {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
}
.tabla-mid {
    background: url('/wp-content/themes/mytheme/images/ss/tabla_mid3.png') repeat-y center top;
    background-size: 100% auto;
    flex-grow: 1;
    min-height: 100px; /* минимальная высота если контента мало */
}
.tabla-bottom {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
}
.reviews-content {
    padding: 30px 80px;
}
.reviews-content .section-title {
    text-align: center;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .reviews-content {
        padding: 25px 70px;
    }
    .reviews-content .section-title {
        margin-bottom: 15px;
    }
}
@media (max-width: 480px) {
    .reviews-content {
        padding: 20px 40px;
    }
    .reviews-content .section-title {
        margin-bottom: 15px;
    }
}

/* ===== REVIEW ITEM ===== */
.review-item {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;

}
.review-item a {
	color: var(--color-accent3);
	text-shadow: none;
}

@media (max-width: 768px) {
    .review-item {
        margin-bottom: 8px;
    }
}
@media (max-width: 480px) {
    .review-item {
        margin-bottom: 8px;
    }
}

/* ===== REVIEW AVATAR ===== */
.review-avatar {
    float: left;
    margin-right: 1em;
    margin-bottom: 3px;
    display: block;
	position: relative;
	
}
.review-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--color-accent-dark);
    object-fit: cover;
}
@media (max-width: 480px) {
    .review-avatar {
       /* margin-right: 15px;*/
    }
    .review-avatar img {
        width: 45px;
        height: 45px;
    }
}

/* ===== REVIEW HEADER ===== */
.review-header {
    margin-bottom: 5px;
    overflow: hidden;
}
.review-author {

    font-size: 1.1em;
    font-weight: 200;
    line-height: 1.0em;
    /*vertical-align: middle;*/
}
.review-author:hover {
 /*   color: var(--text-color);*/
}
@media (max-width: 480px) {
    .review-author {
        font-size: 1.1em;
        line-height: 45px;
    }
}

/* ===== REVIEW TEXT ===== */
.review-text {
     font-size: 1em;
    line-height: 1.2;
    text-align: justify;
    margin-bottom: 15px;
	color: var(--color-accent2);
	text-shadow: none;
}
.review-text p {
    text-indent: 1em;
    margin: 0;
	padding: 0;
}
.review-text p:first-child {
    margin-top: 0;
}
@media (max-width: 768px) {
    .review-text {
        font-size: 1.05em;
    }
}
@media (max-width: 480px) {
    .review-text {
        font-size: 1em;
    }
}

/* ===== REVIEW SOURCE ===== */
.review-source {
    text-align: right;
    padding-right: 10px;
}
.review-source a {

    
    display: inline-block;
    margin-left: 20px;
}
.review-source a:hover {
    /*color: var(--text-color);*/
}


#fancybox-title {
	font-size: 1.2em !important;
	text-shadow: none;
	color: var(--color-accent-dark) !important;
}


/* ===== SS-SLIDER: БАЗА ===== */

.ss-slider {
    position: relative;
    width: 100%;
    margin: 20px auto 0;
    padding: 15px 15px 25px;
    box-sizing: border-box;
    background: #2b2112 url('/wp-content/themes/mytheme/images/ss/fon_bumaga.jpg') repeat;
    border-radius: 6px;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.7),
        inset 0 0 12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

@media (max-width: 768px) {
    .ss-slider {
        margin: 15px auto 0;
        padding: 12px 10px 20px;
    }
}

@media (max-width: 480px) {
    .ss-slider {
        margin: 10px auto 0;
        padding: 10px 8px 18px;
    }
}

/* ===== SS-SLIDER TRACK И СЛАЙДЫ ===== */

.ss-slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
	    width: 100%;      /* ← не больше 100% */
    max-width: 100%;
}

.ss-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .ss-slide {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .ss-slide {
        padding: 0 12px;
    }
}

/* ===== ИЗОБРАЖЕНИЯ В СЛАЙДЕ ===== */

.ss-slide-link {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.ss-slide-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.6),
        inset 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Квадратные иллюстрации */
.ss-slide-image-ill {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Панорамные локации */
.ss-slide-image-loc {
    aspect-ratio: 1200 / 385;
    object-fit: cover;
}

/* ===== ПОДПИСИ ===== */

.ss-slide-caption {
    margin-top: 8px;
    font-size: 0.95em;
    line-height: 1.1;
    text-align:center;
    text-indent: 0;
    color: var(--color-accent-dark);
    /*text-shadow:
        1px 1px 1px var(--color-accent-dark),
        0 0 4px rgba(0, 0, 0, 0.7);*/
	text-shadow: none;
}

@media (max-width: 768px) {
    .ss-slide-caption {
        font-size: 0.95em;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .ss-slide-caption {
        font-size: 0.9em;
        margin-top: 5px;
    }
}

/* Дополнительная настройка заголовков секций */

.ss-ill-title,
.ss-loc-title {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .ss-ill-title,
    .ss-loc-title {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .ss-ill-title,
    .ss-loc-title {
        margin-top: 20px;
    }
}

/* ===== СТРЕЛКИ СЛАЙДЕРА ===== */

.ss-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--color-accent-dark);
    /*background: radial-gradient(circle at 30% 20%, var(--color-accent), var(--color-accent-mid));*/
	background: none;
	background-color: #ebd1af;
    color: var(--color-accent-dark);
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
 /*   box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 0, 0, 0.4);*/
    z-index: 5;
    padding: 0;
}

.ss-slider-arrow-prev {
    left: 5px;
}

.ss-slider-arrow-next {
    right: 5px;
}

.ss-slider-arrow:hover {
    box-shadow:
 /*       0 6px 14px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(255, 0, 0, 0.6);*/
}

.ss-slider-arrow:disabled {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
}

@media (max-width: 768px) {
    .ss-slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
        line-height: 26px;
    }

    .ss-slider-arrow-prev {
        left: 2px;
    }

    .ss-slider-arrow-next {
        right: 2px;
    }
}

@media (max-width: 480px) {
    .ss-slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 15px;
        line-height: 24px;
    }
}

/* ===== ТОЧКИ (ИНДИКАТОРЫ) ===== */

.ss-slider-dots {
    margin-top: 10px;
    text-align: center;
	display: none;
}

.ss-slider-dot {
    display: inline-block;
    width: 9px;
    height: 9px;

    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 204, 0, 0.2);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.ss-slider-dot-active {
    background: var(--color-accent-dark);
    /*box-shadow:
        0 0 6px rgba(255, 204, 0, 0.9),
        0 0 10px rgba(255, 0, 0, 0.7);*/
}

@media (max-width: 768px) {
    .ss-slider-dots {
        margin-top: 8px;
		display: none;
    }

    .ss-slider-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .ss-slider-dots {
        margin-top: 6px;
		display: none;
    }

    .ss-slider-dot {
        width: 7px;
        height: 7px;
        margin: 0 2px;
    }
}

.covers-section {
    width: 100%;
    /*max-width: 360px;*/
    overflow: hidden;
}

/* Любые внутренние треки/карусели в covers-section */
.covers-section > * {
    max-width: 100%;
}

/* На всякий случай принудительно ограничим старые широкие элементы */
.covers-section .covers-carousel,
.covers-section .cover-slide {
    max-width: 100% !important;
}

.map-cont {
	margin-top: 40px;
	margin-bottom: 20px;
}

.map {
	margin-left: 2%;
	margin-right: 2%;
	width: 40%;
	
}

@media (max-width: 768px) {

.map-cont {
	margin-top: 40px;
	margin-bottom: 20px;
}

.map {
	margin-left: 5%;
	margin-right: 5%;
	width: 80%;
	}



}




