/* BASIC LAYOUT
----------------------------------------------- */
.wrapper {min-width: 320px; position: relative;}
.wrapper::before {content: ''; position: absolute; left: 0; top: 0; 
	width: 100vw; height: 280px; background: var(--bg-gradient);}
.wrapper__container {max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 20; padding: 0 var(--indent);}
.header { --tt: var(--tt-dark); position: relative; z-index: 100; padding-top: 10px;}
.content {min-height: 80vh; position: relative;}
.footer {background-color: var(--bg-dark); color: var(--tt-dark); --tt: var(--tt-dark); padding-top: 10px;}
.footer__two {padding: 20px 0; margin-top: 10px; font-size: 14px; gap: 20px;
	border-top: 1px solid var(--bdc-dark); color: var(--tt-dark-fade);}

.scrolltop {position: fixed; width: 50px; height: 50px; right: -60px; bottom: 10px;
	z-index: 990; border-radius: 50%; font-size: 20px; opacity: 0; transition: right 0.2s, opacity 0.2s;}
.scrolltop.is-active {right: 10px; opacity: 1;}


/* HEADER & LOGO
----------------------------------------------- */
.logo {
    display: inline-flex; 
    flex-direction: column; 
    justify-content: center; 
    height: 60px; 
    text-align: left;
    padding-left: 80px; 
    position: relative; 
    font-weight: 700; 
    font-size: 20px; 
    letter-spacing: 1px; 
    line-height: 1;
}
.logo__subtitle {color: var(--yellow); font-size: 30px; letter-spacing: 3px; text-transform: uppercase;}

/* Встроенный SVG логотип */
.logo__icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}
.header__logo:hover .logo__icon {
    transform: translateY(-50%) scale(1.05);
}

.header__caption {margin-left: 20px; padding-left: 20px; border-left: 1px solid var(--bdc-dark); 
	font-size: 12px; line-height: 1.4; color: var(--tt-dark-fade); -webkit-line-clamp: 3;}

.header__btn-login {margin-left: 20px;}

.search-block {position: relative; width: 320px;}
.search-block__input, .search-block__input:focus {border-radius: 20px; padding: 0 50px 0 25px; 
	border: 0; box-shadow: none; background-color: rgba(255,255,255,0.15); color: #fff; box-shadow: var(--bsh-item);}
.search-block__input:not(:focus)::placeholder {color: #fff; opacity: 1; font-size: 14px;}
.search-block__btn {position: absolute !important; right: 0; top: 0; width: 60px; border-radius: 20px; font-size: 16px; color: #fff;}
.search-is-active {overflow: hidden;}
.search-is-active .search-block__input, .search-is-active .search-block__btn {position: relative; z-index: 101;}
.search-is-active .search-block::before {content: ''; position: fixed; inset: 0; z-index: 100; 
	background-color: rgba(0,0,0,0.6); backdrop-filter: blur(10px);}


/* NAV, HERO
----------------------------------------------- */
.header__menu {gap: 40px; position: relative; border-top: 1px solid rgba(255,255,255,0.25); 
	margin-top: 10px; width: 100%;}
.header__menu > li > a {height: 100px; display: flex; align-items: center; font-size: 14px; 
	gap: 10px; text-transform: uppercase; font-weight: 700;}
.header__menu > li > a::before {color: var(--orange);}
.header__menu-submenu {position: absolute; top: 100%; left: 0; z-index: 1000; 
	background-color: var(--bg); box-shadow: var(--bsh); width: 700px; padding: 30px 35px; --tt: var(--tt);
	display: grid; gap: 5px 20px; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); display: none;}
.header__menu-submenu a {display: block; padding: 5px 10px;}
.header__menu-has-submenu > a::after {content:"\f078"; font-weight: 300; font-family:'Font Awesome 5 Pro';}
.header__menu > li:hover .header__menu-submenu {display: grid;}

.hero {color: var(--tt-dark); padding-bottom: 140px; position: relative; background: var(--bg-gradient); margin-bottom: -100px;}
.hero__title {font-size: clamp(28px, 5vw, 40px); font-weight: 700; line-height: 1.1; margin-bottom: 30px; max-width: 750px;}
.hero__title span {position: relative; display: inline-block; isolation: isolate; margin-left: 10px;}
.hero__title span::before {content: ''; position: absolute; z-index: -1; inset: -5px; top: 0; background-color: var(--orange);}
.hero__text {
    max-width: 100%; /* Растягивает текст на всю ширину */
    font-size: 14px;
    color: var(--tt-dark-fade);
    line-height: 1.6; /* Добавлено для лучшей читаемости длинного текста */
}
.hero__inner {position: relative; isolation: isolate;}

.hero__menu {gap: 10px;}
.hero__menu a {display: block; padding: 3px 6px; background-color: rgba(255,255,255,0.15);
	color: #fff; box-shadow: var(--bsh-item);}
.hero__title:last-child {margin-bottom: 0;}


/* SECTION
----------------------------------------------- */
.sect {margin-bottom: 60px;}
.sect__header {margin-bottom: 30px; gap: 10px;}
.sect__title {font-size: 26px; font-weight: 700;}
.sect__link {color: var(--blue); gap: 10px;}
.sect--white {padding: 30px; background-color: var(--bg); box-shadow: var(--bsh-item);}
.sect--bg {
    background: var(--bg-gradient); 
    padding-top: 40px; 
    padding-bottom: 40px;
}
.sect--bg .sect__header {color: var(--tt-dark); --blue: var(--tt-dark);}

.scroller__btn {width: 40px; border-radius: 50%; padding: 0; font-size: 18px;}
.scroller__btn--next {margin-right: 20px;}
.scroller__btn--prev {pointer-events: none; opacity: 0.5;}
.scroller__btn--prev.is-active {pointer-events: auto; opacity: 1;}
.scroller__content {display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; 
	scroll-snap-type: x mandatory; scroll-behavior: smooth;}
.scroller__content {scrollbar-width: none; scrollbar-color: var(--green) var(--bg);}
.scroller__content::-webkit-scrollbar {width: 12px; height: 8px; display: none;}
.scroller__content::-webkit-scrollbar-thumb {border-radius: 0; background-color: var(--green); border: 0;}
.scroller__content::-webkit-scrollbar-track {background-color: var(--bg);}
.scroller__content .item-ext {width: 353px; flex-shrink: 0; scroll-snap-align: start;}

.speedbar {color: var(--tt-dark-fade); --tt: var(--tt-dark); font-size: 14px; margin-bottom: -20px;}
.speedbar::before {margin-right: 6px;}

.site-desc {display: grid; grid-gap: 20px; line-height: 1.6; color: var(--tt-fade-2); background-color: var(--bg); 
	box-shadow: var(--bsh-item); padding-top: 40px; padding-bottom: 40px;}
.site-desc .sect__title {color: var(--tt); font-size: 44px; font-weight: 700;}
.site-desc h2, .site-desc h3 {font-size: 26px; color: var(--tt); line-height: 1.3; margin-bottom: 15px;}
.site-desc a {text-decoration: underline; color: var(--blue);}
.site-desc ul li {position: relative; padding-left: 25px; margin-left: 25px;}
.site-desc ul li::before {content:"\f00c"; font-weight: 300; font-family:'Font Awesome 5 Pro'; 
	color: var(--green); position: absolute; left: 0; top: 0;}
.sect-desc__section {padding-top: 15px;}
.sect-desc__img {width: 130px; height: 130px; border-radius: 50%; margin-right: 15px; float: left;
	box-shadow: 0 0 0 2px var(--bdc); border: 10px solid var(--bg); background-color: #000;}


/* ITEM
----------------------------------------------- */
.item {background-color: var(--bg); box-shadow: var(--bsh-item);}
.item__poster {height: 150px;}
.item__img {width: 74px; aspect-ratio: 1 / 1; border-radius: 50%; border: 5px solid var(--bg); box-shadow: 0 0 0 2px var(--bdc);}
.item__link {display: block;}
.item__title {font-size: 16px; font-weight: 700;}
.item__category {font-size: 11px; text-transform: uppercase; color: var(--tt-fade);}
.item__meta {font-size: 12px; color: var(--tt-fade-2);}
.item__labels-group {gap: 5px; position: absolute; left: 5px; top: 5px; z-index: 2;}
.item__label, .item__rating {width: 30px; height: 30px; background-color: var(--green); color: #fff;
	display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: 600; border-radius: 15px;}
.item__label {background-color: var(--green); width: 40px; font-weight: 400; border-radius: 0; height: 20px;}
.item__label--green {background-color: var(--green);}
.item__label--red {background-color: var(--red);}
.item__label--blue {background-color: var(--orange);}
.item__label--yellow {background-color: var(--yellow); color: #000;}
.item__meta-item {gap: 5px;}
.item__text {font-size: 12px; color: var(--tt-fade);}

.item-ext .item__poster::before {content: ''; position: absolute; inset: 0; 
	background-color: rgba(35, 43, 30, 0.55); z-index: 1;}
.item-ext__bottom {padding: 20px; gap: 20px;}
.item-ext .item__category {margin: 3px 0 6px 0;}
.item-ext .item__rating {box-shadow: 0 0 0 5px var(--bg); position: absolute; right: 20px; bottom: -15px; z-index: 2;}

.item-card {padding: 20px; text-align: center;}
.item-card .item__rating {box-shadow: 0 0 0 6px var(--bg); transform: translate(-50%,0);
	position: absolute; left: 50%; bottom: -15px;}
.item-card .item__img {margin: 15px auto; width: 100%; max-width: 140px; border-width: 10px;}
.item-card .item__title {font-size: 18px; line-height: 1.2; margin: 15px 0 10px;}
.item-card .item__label {width: 40px; border-radius: 0;}
.item-card .item__meta {margin-top: 20px; text-align: left; border-top: 2px dotted var(--bdc); padding-top: 20px;}

.item-short {padding: 20px; gap: 15px 20px; padding-bottom: 10px;}
.item-short .item__text {margin-top: 6px; -webkit-line-clamp: 3;}
.item-short .item__meta {border-top: 2px dotted var(--bdc); padding-top: 10px; width: 100%; gap: 10px;}
.item-short .item__meta-item:first-child::after {content: ''; width: 4px; height: 4px; border-radius: 50%; 
	margin-left: 10px; background-color: var(--tt-fade); display: inline-block; vertical-align: middle; opacity: 0.5;}


/* FOOTER, PAGINATION
----------------------------------------------- */
.footer__soc {gap: 20px;}
.footer__soc-item {display: grid; place-items: center; height: 30px; width: 30px; border-radius: 50%; background-color: #2daae1;}
.tlg {background-color: #229ed9;}
.vk {background-color: #1877f2;}
.yt {background-color: #df1111;}
.footer__soc img {width: 15px; height: 15px; filter: invert(1);}
.footer__text {line-height: 1.5;}
.footer__menu {gap: 10px 40px;}

.pagination {gap: 20px 60px; padding-top: 0px;}
.swchItem, .swchItemA {display: grid; place-items: center; 
	height: 36px; min-width: 36px; padding: 0 10px; border-radius: 18px; border: 2px solid var(--bdc);}
.pagination__btn-loader {width: 100%;}
.pagination__btn-loader a, .pagination__btn-loader span {height: 40px; border-radius: 0;
	background-color: rgba(0,0,0,0.2); color: var(--tt-fade-2); border: 0; width: 440px;}
.pagination__pages {gap: 10px 10px; font-size: 14px;}
.swchItemA:not(.nav_ext) {background-color: var(--green); color: #fff; border-color: var(--green);}


/* INNER PAGE
----------------------------------------------- */
.page__cols {display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px;}
.page__cols-main {background-color: var(--bg); box-shadow: var(--bsh-item); padding: 30px; padding-top: 20px;}
.page__header {display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 20px 20px; 
	grid-template-areas: "ptitle ptitle" "pleft pinfo" "pctrl pctrl";}
.page__header-left {grid-area: pleft;}
.page__header-title {grid-area: ptitle;}
.page__header-info {grid-area: pinfo; align-self: center; position: relative;}

/* ИСПРАВЛЕННЫЙ БЛОК: раздвигаем кнопку и рейтинг по краям */
.page__header-ctrl {
    grid-area: pctrl; 
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; 
    width: 100% !important;
    gap: 10px 20px;
}

.page .sect {margin-bottom: 30px;}

.page__img {width: 180px; height: 180px;}
.page__header-title h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700; 
    line-height: 1.25; 
    margin-bottom: 15px;
    word-break: break-word;
}
.page__header-title h1 a {margin-left: 10px; font-size: 16px; color: var(--blue);}
.page__list {display: grid; gap: 10px; font-size: 14px;}
.page__list li::before {color: var(--blue); position: absolute; left: 0; top: 0;}
.page__list li {position: relative; padding-left: 180px;}
.page__list li > span:first-child {font-weight: 700; position: absolute; top: 0; left: 30px;}
.page__list li a {color: var(--blue); text-decoration: underline;}
.page__btn-dl {width: 180px;}
.page__header-ctrl > a:not([class]) {background: none; border: 2px solid var(--blue); color: var(--blue); height: 40px; padding: 0 20px;
	font-size: 12px; font-weight: 600; text-transform: uppercase; display: flex; align-items: center;}

/* --- ДОБАВЛЕННЫЕ СТИЛИ ДЛЯ БЛОКА РЕЙТИНГА (ЗВЕЗДА + ЛАЙКИ) --- */
.page__rating-wrapper {
    margin-left: auto !important; /* Прижимает блок вправо */
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--ui-bg-darker);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid var(--ui-bdc);
}

.page__rating-average {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.page__rating-average .rating-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--yellow);
}
.page__rating-average .rating-votes {
    font-size: 12px;
    color: var(--tt-fade);
}
/* ------------------------------------------------------------- */

/* --- Лайк / дизлайк (Inline SVG) --- */
.page__rating a {display: inline-flex; align-items: center; justify-content: center; height: 28px;
    padding: 0 10px; background-color: var(--green); color: #fff; gap: 5px; min-width: 50px;
    border-radius: 14px; font-size: 13px; font-weight: 600; transition: background-color 0.2s, transform 0.1s;}
.page__rating a + a {background-color: var(--red);}
.page__rating a:hover {background-color: var(--bg-btn-hover);}
.page__rating a + a:hover {background-color: var(--ui-red-hover);}
.page__rating a:active {transform: scale(0.96);}
.page__rating a svg {flex-shrink: 0; width: 14px; height: 14px;}

.page__fav a {position: absolute; right: 0; top: 20px; border: 2px solid var(--bg-darker);
	display: flex; align-items: center; justify-content: center; height: 40px; border-top: 0; padding-top: 2px;
	color: var(--tt-fade-2); line-height: 1.3; font-size: 13px; width: 120px; gap: 5px; white-space: nowrap;}
.page__fav a .fal, .page__fav a::before {color: var(--blue);}

.page__scr {margin: 0 -30px; padding: 30px;}
.page__trailer {margin: 0 -30px; margin-top: -30px;}
.page__scr ul {display: flex; justify-content: space-between; flex-wrap: wrap; width: 100%; gap: 20px;}
.page__scr li:nth-child(4) ~ li {display: none;}
.page__scr li {width: calc((100% - 60px)/4);}
.page__scr a {display: block; position: relative;}
.page__scr a img {width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover;}
.page__scr a::before {content:"\f00e"; font-family:'Font Awesome 5 Pro'; font-weight: 300; box-shadow: var(--bsh-item);
	width: 40px; height: 40px; display: grid; place-items: center; background-color: var(--bg); color: var(--tt); 
	position: absolute; left: 50%; top: 50%; margin: -20px 0 0 -20px; z-index: 5; border-radius: 50%; font-size: 18px;}
	
.page__text {margin-bottom: 20px;}
.page__message {padding: 10px; margin-bottom: 3px; font-size: 14px !important;}
.yellow {background-color: #3d341f; color: #e8c547; border-left: 3px solid var(--orange);}
.blue {background-color: #1e3033; color: #7fc2c8; border-left: 3px solid #4a8a8a;}
.green {background-color: #1e2e1f; color: #8fd47a; border-left: 3px solid var(--green);}

.page__message + .page__dl {margin-top: 20px;}
.page__dl-header {margin-bottom: 20px; position: relative;}
.page__dl-header img {height: 60px; width: 60px; margin-right: 26px; object-fit: cover; display: block;
	border-radius: 50%; border: 5px solid var(--bg); box-shadow: 0 0 0 2px var(--bdc);}
.page__dl-title {font-size: 16px; font-weight: 400;}
.page__dl-title span {display: block; font-size: 14px;}
.page__dl-header::before {content: ''; width: 34px; height: 34px; border-radius: 50%; 
	background: rgba(95, 168, 63, 0.5) url(../images/verify.svg) center center / 22px no-repeat; 
	position: absolute; left: 42px; top: 50%; margin-top: -17px; backdrop-filter: blur(6px);}
.page__dl-content {margin: 0 -30px; padding: 20px 30px; gap: 10px; display: grid;}
.dl {padding: 10px; padding-left: 20px; gap: 10px 20px; background-color: var(--bg); box-shadow: var(--bsh-item); 
	isolation: isolate; position: relative; overflow: hidden;}
.dl::after {content: ""; position: absolute; left: .25rem; right: .25rem; top: -30px; height: 3.75rem;
	margin-top: .25rem; background-size: 1rem 1rem; opacity: .05; z-index: -1;
	background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxNiAxNic+PHBhdGggZmlsbD0nIzE0MjYzNicgZD0nTTIsOGEyLDIsMCwxLDAsMiwyQTIsMiwwLDAsMCwyLDhabTgtOGEyLDIsMCwxLDAsMiwyQTIsMiwwLDAsMCwxMCwwWicvPjwvc3ZnPg==);
}
.dl::before {font-size: 24px; width: 40px; height: 40px; display: grid; place-items: center; 
	border-radius: 50%; border: 2px solid var(--bdc); background-color: var(--bg);}
.dl__btn {width: 200px;}
.dl__title {font-weight: 700;}
.dl__meta {font-size: 12px; color: var(--tt-fade); margin-top: 5px;}
.dl__extension {font-weight: 700; color: var(--blue);}
	
@media screen and (min-width: 1220px) {
	.page__cols-side .sect:first-child .sect__title {color: #fff;}
	.page__cols-side .d-grid-items-3, .page__cols-side .d-grid-items-5 {gap: 10px;}
	.page__cols-side .d-grid-items-5 {grid-template-columns: repeat(2,minmax(0,1fr));}
	.page__cols-side .item-card .item__title {font-size: 15px; margin-top: 10px;}
	.page__cols-side .item-card .item__img {margin-top: 0; margin-bottom: 0;}
	.page__cols-side .item-card .item__meta {margin: -10px; padding-top: 10px; margin-top: 10px;}
}

/* TEXT BLOCK, TYPOGRAPHY, VIDEO BLOCK
----------------------------------------------- */
.page__title {margin-bottom: 30px; font-size: 24px;}
.full-text {line-height: 1.6; font-size: 15px; word-wrap: break-word;}
.full-text a {text-decoration: underline; color: var(--blue);}
.full-text img:not(.emoji), .full-text p, .full-text h1, .full-text h2, .full-text h3, .full-text h4, .full-text h5, 
.full-text > ul, .full-text > ol, .full-text table {margin-bottom: 25px;}
.full-text > img[style*="left"], .full-text > .highslide img[style*="left"] {margin:0 10px 10px 0;}
.full-text > img[style*="right"], .full-text > .highslide img[style*="right"] {margin:0 0 10px 10px;}
.full-text > ul li, .full-text > ol li {padding-left: 60px; position: relative;}
.full-text > ul li:before {content: ''; width: 8px; height: 8px; border-radius: 50%; 
	border: 3px solid var(--green); position: absolute; top: 6px; left: 34px;}
.full-text > ol {counter-reset: num;}
.full-text > ol li:before {content: counter(num); counter-increment: num; background-color: var(--green); color: #fff; 
	position: absolute; top: -3px; left: 17px; width: 24px; height: 30px; font-size: 14px; font-weight: 600;
	display: flex; justify-content: flex-end; align-items: center; padding-right: 6px; box-sizing: border-box;}
.full-text > ol li:after {content: ''; border: 10px solid transparent; border-left-color: var(--green); 
	position: absolute; left: 41px; top: -3px; transform: scale(0.66,1.5); transform-origin: 0 0;}
.full-text > ul li + li, .full-text > ol li + li {margin-top: 10px;}
.full-text table, .video-inside > * {width:100%;}
.full-text table tr td {padding:10px; border:2px solid var(--ui-bdc);}
.full-text table tr:nth-child(2n+1) {background-color: var(--ui-bg-darker);} 
.full-text table tr:nth-child(1) {background-color: var(--ui-bg-darkest);}
.full-text table img:not(.emoji) {margin:0; max-width:350px}
.full-text > *:last-child {margin-bottom: 0;}
.video-responsive {padding-top: 60%; position: relative;}
.video-responsive > iframe, .video-responsive > video {position: absolute; left: 0; top: 0; width: 100%; height: 100%;}
.full-text h1, .full-text h2, .full-text h3, .full-text h4, .full-text h5 {font-size: 21px; margin-bottom: 20px;}
.full-text iframe {width: 100%; height: 400px; margin-bottom: 20px;}


/* COMMENTS
----------------------------------------------- */
.page__comments {margin-top: 0px;}
.page__comments-title {font-size: 24px; margin-bottom: 20px;}
.page__comments-info {color: var(--tt-fade); display: block; margin: -15px 0 20px; font-size: 14px; padding-left: 23px; position: relative;}
.page__comments-info::before {color: var(--ui-red); position: absolute; left: 0; top: 2px;}

/* ФОРМА КОММЕНТАРИЕВ */
.ac-form {margin-bottom: 30px; position: relative;}
.ac-form__header, .ac-form__editor, .ac-form .message-info {gap: 10px; margin-bottom: 10px;}
.ac-form__btn {padding: 0 60px;}
.ac-form__bottom {gap: 25px;}
.confidential-check {font-size: 14px;}
.ac-form__header > span {margin-left: 15px;}
.ac-form .comments_subscribe {margin-top: 0px;}

.ac-toggle.ac-form {cursor: pointer;}
.ac-form__header input, .ac-toggle .ac-form__editor textarea {border-radius: 0;}
.ac-toggle, .ac-toggle .ac-form__editor {position: relative;}
.ac-form .bb-btn {display: none;}
.ac-form .bb-pane {background: none; box-shadow: none; border: 0; position: absolute; left: 0; bottom: 0; right: 0;}
.ac-form #b_emo, .ac-form #b_leech, .ac-form #b_quote, .ac-form #b_spoiler, 
.ac-form #b_b, .ac-form #b_u, .ac-form #b_s, .ac-form #b_color, .ac-form #b_hide {display: grid;}
.ac-toggle .bb-btn {pointer-events: none;}
.ac-toggle .ac-form__editor .bb-editor textarea {height: 140px; resize: none;}
.ac-form__editor .bb-editor textarea {height: 140px; line-height: 1.4; padding-bottom: 40px;}
.comments_subscribe + br, .ac-form .bb-editor + br {display: none;}
.ac-toggle .has-checkbox {display: none;}

/* КАПЧА В КОММЕНТАРИЯХ */
.ac-form .message-info.form {
    margin-top: 10px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.ac-form .form__row--protect {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--ui-bg-darker);
    padding: 10px 15px;
    border-radius: var(--ui-bdrs);
    border: 1px solid var(--ui-bdc);
}
.ac-form .form__row--protect img {
    border-radius: 4px;
}
.ac-form .form__row--protect input {
    width: 120px !important;
    min-width: 120px !important;
    text-align: center;
    background-color: var(--ui-bg) !important;
    border: 1px solid var(--ui-bdc);
    color: var(--tt);
    padding: 5px 10px;
    height: 40px;
}

/* =========================================================
   ЖЕСТКОЕ ИСПРАВЛЕНИЕ СЕТКИ И СТИЛЕЙ КОММЕНТАРИЕВ UCOZ
   (Заменяет все старые стили .comm)
   ========================================================= */

/* 1. Контейнер */
#page__comments-list, #comments, .commList {
    display: block !important;
    width: 100% !important;
    column-count: 1 !important;
}

/* Уничтожаем таблицы/флексы Ucoz */
#page__comments-list table, #page__comments-list tbody,
#page__comments-list tr, #page__comments-list td,
#page__comments-list > div, #page__comments-list > ul > li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 2. Блок комментария */
.comm {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background-color: var(--ui-bg-darker) !important;
    border-radius: var(--ui-bdrs) !important;
    border: 1px solid var(--ui-bdc) !important;
    overflow: hidden;
}

/* 3. Шапка (Аватар, Ник, Дата, Шестеренка) */
.comm__header {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
    float: none !important;
}

.comm__img {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    overflow: hidden;
    margin: 0 !important;
}
.comm__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comm__meta {
    flex-grow: 1 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comm__author a, .comm__author {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--green) !important;
    text-decoration: none !important;
    display: inline-block;
    margin-bottom: 2px;
}
.comm__author a:hover { color: var(--blue) !important; }

.comm__date {
    font-size: 12px !important;
    color: var(--tt-fade) !important;
}

.comm__moder { flex-shrink: 0; }
.comm__moder img { width: 18px; opacity: 0.5; transition: opacity 0.2s; }
.comm__moder:hover img { opacity: 1; }

/* 4. Рейтинг "Согласны?" */
.comm__rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    font-size: 13px;
    color: var(--tt-fade);
    margin-left: auto !important;
}
.comm__rating::before {
    content: attr(data-text);
    margin-right: 5px;
    font-size: 13px;
}
.comm__rating a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tt-fade);
    transition: transform 0.2s, color 0.2s;
}
.comm__rating a:hover { color: var(--green); transform: scale(1.15); }
.comm__rating a + a:hover { color: var(--red); }

.myWinError { color: var(--red) !important; font-weight: bold; }
.myWinSuccess { color: var(--green) !important; font-weight: bold; }
.myWinNull { color: var(--tt-fade) !important; font-weight: bold; }
.comm__rating .count { margin: 0 6px; }

/* 5. Текст и кнопка "Ответить" */
.comm__bd {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}
.comm__main {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--tt) !important;
    margin-top: 10px !important;
    margin-left: 60px !important;
    float: none !important;
}
.comm__footer {
    margin-top: 10px !important;
    margin-left: 60px !important;
}
.comm__action-reply a {
    font-size: 13px;
    color: var(--tt-fade);
    text-decoration: underline;
}
.comm__action-reply a:hover { color: var(--green); }

/* 6. Селект "Порядок вывода" */
.mass_comments_action {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    float: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.mass_comments_action select {
    width: auto !important;
    min-width: 200px !important;
    max-width: 300px !important;
    margin: 0 !important;
    display: inline-block !important;
    background-color: var(--ui-bg) !important;
    border: 1px solid var(--ui-bdc) !important;
    color: var(--tt) !important;
    border-radius: var(--ui-bdrs) !important;
    height: 36px !important;
    padding: 0 10px !important;
}

/* 7. Блок "Комментариев еще нет" */
.page__comments-list--not-comments .message-info,
#page__comments-list .message-info {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px 20px !important;
    margin-bottom: 30px !important;
    background-color: var(--ui-bg-darker) !important;
    border: 1px solid var(--ui-bd-attention) !important;
    border-radius: var(--ui-bdrs) !important;
    color: var(--tt) !important;
    font-size: 15px !important;
    box-shadow: none !important;
}
.page__comments-list--not-comments .message-info::before,
#page__comments-list .message-info::before {
    content: "\f071" !important;
    font-family: 'Font Awesome 5 Pro' !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    color: var(--ui-bd-attention) !important;
    font-size: 20px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* 8. Мобильная версия комментариев */
@media screen and (max-width: 590px) {
    .comm__rating::before { display: none !important; }
    .comm__main, .comm__footer { margin-left: 0 !important; }
    .comm__header { flex-wrap: wrap !important; }
    .comm__rating { width: 100% !important; margin-top: 10px !important; justify-content: flex-start !important; }
    .mass_comments_action { flex-direction: column !important; align-items: flex-start !important; }
    .mass_comments_action select { width: 100% !important; max-width: 100% !important; }
}


/* LOGIN
----------------------------------------------- */
.login {position: fixed; z-index: 999; left: 50%; top: 50%; transform: translate(-50%,-50%);
	background-color: var(--ui-bg); width: 440px; border: 10px solid var(--ui-bg-darker); 
	box-shadow: 0 15px 45px rgba(0,0,0,1); overflow-y: auto;
	 max-width: calc(100vw - 40px); max-height: calc(100vh - 40px);}
.login__header {padding: 20px 50px 25px 50px; border-bottom: 1px solid var(--ui-bdc); position: relative;}
.login__title {font-size: 24px; font-weight: var(--ui-fw-bolder);}
.login__caption {font-size: 13px; color: var(--ui-tt-fade); margin-top: 3px;}
.login__close {font-size: 23px; position: absolute; right: 10px; top: 10px; padding: 0; width: 40px; height: 40px;}
.login__content {display: grid; gap: 20px; padding: 25px 50px; padding-bottom: 50px; position: relative;}
.login__row, .login__row.fal, .login__row.fas {position: relative; display: grid; gap: 10px; justify-content: stretch;}
.login__row-caption a, .login__caption a {margin-left: 10px;}
.login__row::before {position: absolute; left: 2px; bottom: 0; width: 40px; height: 50px; 
	display: grid; place-items: center; opacity: 0.4; font-size: 18px;}
.login__input input {padding-left: 40px; border-radius: var(--ui-bdrs); height: 50px; line-height: 48px;}
.login__row button {width: 100%; height: 40px; border-radius: var(--ui-bdrs);}
.login__social {padding-top: 10px; text-align: center; gap: 10px; margin-bottom: -20px;}
.login__social-caption {font-size: 13px; color: var(--ui-tt-fade); width: 100%;}
.login__social a {padding: 0 10px; border-radius: 20px; position: relative; width: 40px; height: 40px; 
	overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center;}
.login__social a::before {content: ''; width: 40px; background: rgba(0,0,0,0); position: absolute; left: 0; top: 0; height: 100%;}
.login__social a img {position: absolute; left: 10px; top: 50%; height: 20px; width: 20px; z-index: 1; 
	display: block; filter: invert(1); transform: translateY(-50%);}
.login__social-vk {background-color: #587ba1;}
.login__social-ok {background-color: #ff9800;}
.login__social-fb {background-color: #3b5998;}
.login__social-ml {background-color: #2196f3;}
.login__social-gg {background-color: #f44336;}
.login__social-ya {background-color: #fc3f1d;}

.header__login-img {width: 40px; height: 40px; border-radius: 50%; cursor: pointer; margin-left: 20px;}
.header__favlink {font-size: 24px; display: block; position: relative; margin-left: 20px;}
.header__favlink span {background-color: var(--red); color: #fff; 
	font-size: 10px; position: absolute; right: -10px; top: -1px; min-width: 20px; text-align: center;}
.header__login-panel {position: absolute; right: 0; top: 100%; width: 240px; padding-bottom: 10px;
	background-color: var(--bg); box-shadow: var(--bsh); margin-top: 15px; --tt: var(--tt);}
.header__login-header {padding: 20px; color: var(--tt); font-weight: 700; gap: 20px; border-bottom: 2px solid var(--bdc);
	background-color: var(--bg-darker); margin-bottom: 10px;}
.header__login-avatar {width: 40px; height: 40px; border-radius: 50%;}
.header__login-group {font-size: 12px; font-weight: 400; margin-top: 2px; 
	display: block; color: var(--tt-fade);}
.header__login-menu a {display: flex; align-items: center; min-height: 30px; padding: 0 20px 0 0;}
.header__login-menu a::before {width: 40px; text-align: center; color: var(--green);}
.header__login-menu-border {border-top: 2px solid var(--bdc); margin-top: 10px; padding-top: 10px;}
.header__login-menu a span {font-size: 12px; margin-left: auto;}


/* OWL CAROUSEL
----------------------------------------------- */
.owl-carousel {width: 100%; position: relative; z-index: 1;}
.owl-stage {position: relative; display:flex; justify-content:flex-start;}
.owl-stage-outer {position: relative; overflow: hidden; transform: translate3d(0px, 0px, 0px);}
.owl-item {position: relative; min-height: 10px;}
.owl-nav.disabled,.owl-dots.disabled, .owl-carousel.owl-refresh .owl-item {display: none;}
.owl-carousel.owl-drag .owl-item {user-select: none;}
.owl-carousel.owl-grab {cursor: move; cursor: grab;}
.owl-carousel .animated {animation-duration: 1000ms; animation-fill-mode: both;}
.owl-animated-in {z-index: 0;}
.owl-animated-out {z-index: 1;}
.fadeOut {animation-name: fadeOut;}
.fadeIn {animation-name: fadeIn;}
@keyframes fadeOut { from {opacity: 1;} to {opacity: 0;} }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
.scaleIn {animation-name: scaleIn;}
.scaleOut {animation-name: scaleOut;}
@keyframes scaleIn { from {opacity: 0; transform: scale(0.66,0.66); transform-origin: center top;} to {opacity: 1; transform: scale(1,1); transform-origin: center top;} }
@keyframes scaleOut { from {opacity: 1; transform: scale(1,1);} to {opacity: 0; transform: scale(0.66,0.66);} }
.slideOutDown {animation-name: slideOutDown;}
.slideInDown {animation-name: slideInDown;}
@keyframes slideOutDown { from {transform: translate3d(0, 0, 0);} to {visibility: hidden; transform: translate3d(0, 100%, 0);} }
@keyframes slideInDown { from {transform: translate3d(0, -100%, 0); visibility: visible;} to {transform: translate3d(0, 0, 0);} }
.rollOut {animation-name: rollOut;}
@keyframes rollOut { from {opacity: 1;} to {opacity: 0; transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);} }
.owl-nav {position: absolute; left: 0; right: 0; top: 50%;}
.owl-prev, .owl-next {cursor: pointer; width: 40px; height: 40px; border-radius: var(--bdrs); display: grid; place-items: center; 
	position: absolute; top: 0; margin-top: -40px; font-size: 18px; background-color: var(--green); color: #fff;}
.owl-prev {left: calc(var(--indent-negative) + 20px);}
.owl-next {right: calc(var(--indent-negative) + 20px);}
.owl-prev:hover, .owl-next:hover {background-color: var(--bg); color: var(--tt);}
.owl-dots {display: flex; flex-direction: column; gap: 12px; flex-wrap:wrap; 
	position: absolute; right: -40px; bottom: 50%; transform: translateY(50%);}
.owl-dot {display: block; width: 12px; height: 12px; border-radius: 50%; cursor: pointer; 
	background-color: transparent; border: 1px solid #fff;}
.owl-dot.active, .owl-dot:hover {background: #fff;}
.main-slider .owl-stage-outer {overflow: visible;}


/* ADAPTIVE, MOBILE MENU
----------------------------------------------- */
.overlay {position: fixed; z-index: 998; left: 0; top: 0; width: 100%; height: 100%; 
	opacity: 0.6; background-color: #000; cursor: pointer; display: none;}
.mobile-menu {width: 280px; height: 100%; overflow-x: hidden; overflow-y: auto;
	z-index: 999; position: fixed; left: -360px; top: 0; transition: left 0.4s; background-color: var(--bg);}
.mobile-menu.is-active {left: 0;}
body.mobile-menu-is-opened {overflow: hidden; width: 100%; height: 100%;}
.mobile-menu__header {padding: 10px; gap: 10px; background: var(--bg-gradient); --tt: var(--tt-dark);}
.mobile-menu__btn-close {font-size: 24px; width: 40px; height: 40px; margin-right: 0px;}
.mobile-menu__content .header__menu {margin: 0; padding: 20px 0; display: block;}
.mobile-menu__content .header__menu > li > a {height: 40px; line-height: 40px; padding: 0 20px;}
.mobile-menu__content .header__menu-submenu {width: 100%; height: auto; position: static; display: none;
	border-radius: 0; padding: 20px 20px; background-color: var(--bg-darker);
	opacity: 1; visibility: visible; transform: none; box-shadow: none; font-size: 13px; 
	gap: 12px 20px; grid-template-columns: repeat(2,minmax(0,1fr));}
.mobile-menu__content .header__menu-submenu a {padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.mobile-menu__content .header__menu-has-submenu > a::after {content:"\f067"; font-size: 18px; margin-left: auto; font-weight: 300;}
.mobile-menu__content .header__menu-has-submenu.is-active .header__menu-submenu {display: grid;}
.mobile-menu__content .header__menu-has-submenu.is-active > a::after {content:"\f068";}

@media screen and (max-width: 1220px) {
	:root {--indent-negative: -20px; --indent: 20px;}
	body {background-image: none;}
	.wrapper {padding: 0; background-image: none; overflow: hidden;}
	.wrapper__container {max-width:1000px;}
	.header .header__menu {display: none;}
	.header__search {width: 100%; order: 10; margin: 10px 0 30px 0;}
	.header__btn-login {background-color: var(--bdc-dark); color: var(--tt-dark); 
		padding: 0 10px; font-weight: 400; height: 30px;}
	.header__btn-menu {display: flex; margin-left: 20px; padding: 0; width: 40px; border-radius: 50%; font-size: 18px;}
	.site-desc .sect__title {font-size: 26px;}
	.footer__one, .footer__two {gap: 20px;} 
	.footer__two {margin-top: 30px;}
	.footer__menu {min-width: 100%;}
	.footer__text {min-width: 100%; order: -1;}
	.footer .header__caption {margin: 0;}
	.d-grid-items-5 {grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 20px 10px;}
	.d-grid-items-3 {grid-template-columns: repeat(auto-fill,minmax(320px,1fr));}
	
	.page__cols {display: block;}
	.page__cols-side {margin-top: 30px;}
	.page__cols-main {padding: 20px;}
	.page__scr {margin-left: -20px; margin-right: -20px; padding: 20px;}
	.page__dl-content {margin-left: -20px; margin-right: -20px; padding: 20px;}
	.page__trailer {margin-left: -20px; margin-right: -20px;}
}

@media screen and (max-width: 950px) {
	.wrapper__container {max-width:768px;}
	.pagination {gap: 10px;}
	.pagination__btn-loader a, .pagination__btn-loader span {width: 100%;}
	.pagination > a, .pagination > span {flex-grow: 1; order: 10;}
	.pagination__pages {width: 100%;}
	.pagination__pages a, .pagination__pages span {flex-grow: 1;}

	.page__cols-main {margin-left: var(--indent-negative); margin-right: var(--indent-negative);}
}

@media screen and (max-width: 760px) {
	.wrapper__container {max-width:640px;}
	.login__header, .login__content {padding: 20px;}
	.login__social {margin-bottom: 0;}
	.login__row::before {height: 40px;}
	.login__input input {height: 40px; line-height: 40px; box-shadow: none; border: 0; background-color: var(--bg-darker);}
	.login__social a {border-radius: var(--bdrs); height: 30px; flex: 1 0 30%;}
	.login__social a img {left: 50%; margin-left: -10px;}
	.header .header__caption {display: none;}
	.header__logo {flex: 1 1 0; max-width: 100%; min-width: 120px; padding-left: 75px;}
	.hero__title {font-size: 26px; line-height: 1.3; margin-bottom: 10px;}
	.hero__title span {margin: 0;}
	.site-desc h1, .site-desc h2, .site-desc h3 {font-size: 20px;}
	.sect-desc__img {width: 100px; height: 100px;}
	.d-grid-items-5 {grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 10px;}
	.d-grid-items-3, .d-grid-items-4 {grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 10px;}
	.pagination {padding-top: 10px;}
	.sect__title {min-width: 100%; order: -1; font-size: 24px;}
	.item-card .item__meta {margin-left: -10px; margin-right: -10px; padding-top: 10px; margin-bottom: -10px;}
	.item-card .item__title {font-size: 15px; margin-top: 0px;}
	.scroller__content {margin-right: var(--indent-negative);}
	.sect--white {margin: 0 var(--indent-negative) !important; padding: 30px var(--indent);}

	.page__header-title h1 {font-size: 24px;}
	.page__header {grid-template-areas: "ptitle ptitle" "pleft pleft" "pinfo pinfo" "pctrl pctrl"; 
		grid-template-columns: 130px minmax(0,1fr);}
	.page__img {width: 130px; height: 130px;}
	
	/* ИСПРАВЛЕННЫЙ БЛОК ДЛЯ МОБИЛЬНЫХ */
	.page__header-ctrl {
		flex-direction: column !important; 
		align-items: flex-start !important;
		gap: 10px;
	}
	.page__rating-wrapper {
		margin-left: 0 !important; 
		margin-top: 10px !important; 
		width: 100% !important; 
		justify-content: space-between !important;
	}

	.page__btn-dl {padding: 0 20px; width: auto;}
	.page__header-ctrl > a:not([class]) {width: 100%; justify-content: center; order: 10;}
	.page__scr ul {flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
		margin-right: -20px; width: calc(100% + 20px); scrollbar-width: none;}
	.page__scr ul::-webkit-scrollbar {display: none;}
	.page__scr ul li {flex: 0 0 160px; width: 160px; scroll-snap-align: start;}
	.dl__desc {min-width: calc(100% - 60px);}
	.dl__btn {flex-grow: 1;}
	.dl {padding: 10px; gap: 10px;}
	.page__fav a {top: 0; width: calc(100vw - 190px);}
	.page__list li {padding-left: 130px; text-align: right;}

	.page__title {font-size: 24px;}
	.full-text h1, .full-text h2, .full-text h3, .full-text h4, .full-text h5 {font-size: 20px;}
	.page__intro, .page__text .quote {margin-left: var(--indent-negative); margin-right: var(--indent-negative); padding-right: var(--indent);}
	.full-text h1, .full-text h2, .full-text h3, .full-text h4, .full-text h5 {font-size: 18px;}
	
	.ac-form__bottom {gap: 10px;}
	.ac-form__bottom button {padding: 0 20px;}
	.ac-form__header input + input {min-width: 100%; order: 10;}
	.ac-form__header > span, .comm__rating::before {display: none;}
	.ac-form #b_color {display: none;}
	.ac-form__bottom button {position: static !important; width: 100% !important;}
}

@media screen and (max-width: 590px) {
	.wrapper__container {max-width:480px;}
	.logo {font-size: 14px;}
	.logo__subtitle {font-size: 18px; margin-top: 10px;}
	.header__favlink {display: none;}
	.header__btn-menu, .header__btn-login, .header__login-img {margin-left: 10px;}
	
	.hero--decor .hero__inner {padding-bottom: 0px;}
	.sect--bg {background: var(--bg-gradient); }
}

@media screen and (max-width: 470px) {
	.header__caption {padding: 0; border: 0;}
	.header__caption br {display: none;}
	.footer__menu {gap: 10px 20px;}
	.site-desc {padding-top: 25px;}
	.site-desc .sect__title {margin: 0;}
	.sect {margin-bottom: 30px;}
	.sect--bg {padding-top: 20px; padding-bottom: 20px;}
	.scroller__content .item-ext {width: calc(100vw - 60px);}
	.item-ext__bottom {padding: 15px; gap: 15px;}
	.hero__menu {padding-top: 10px; margin-bottom: -10px;}
	
	.page__scr ul li {flex: 0 0 220px; width: 220px;}
	.page__message {margin-left: var(--indent-negative); margin-right: var(--indent-negative); padding-left: 18px;}
	
	.ac-form__bottom .comments_subscribe {font-size: 13px;}
	.full-text iframe {width: calc(100% + 40px); max-width: calc(100% + 40px); height: 260px; margin-left: -20px; margin-right: -20px;}
}

/* Каталог файлов Ucoz — сетка записей */
#allEntries {display: grid; gap: 20px; grid-template-columns: repeat(auto-fill,minmax(180px,1fr));}
@media screen and (max-width: 1220px) {
	#allEntries {grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 20px 10px;}
}
@media screen and (max-width: 760px) {
	#allEntries {grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 10px;}
}
.ac-toggle .comments_subscribe, .ac-toggle .comments_subscribe + br, .comments_subscribe {display: none;}