/* Адаптив (2026). От 1120px макет 2011 года не тронут.
   1024–1119px — тот же макет, чуть уменьшенный; до 1023px — одна колонка.
   Режим до 1023px знает и js/scripts.js (mt_mobile). */

.nav-toggle {display:none;}

@media (min-width:1024px) and (max-width:1119px) {
	html {zoom:.914;}
}

/* экраны с плотностью 1.5+: кадр главной и шапки разделов в двойном разрешении
   (апскейл оригиналов 2011 года, 2026; сами оригиналы на месте) */
@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:144dpi) {
	.home-content {background-image:url(../images/home-content-2x.jpg);background-size:1119px 642px;}
	.bar,.bar.events-bar {background-image:url(../images/events-bar-2x.jpg);}
	.bar,.bar.events-bar,.bar.about-bar,.bar.gallery-bar,.bar.superbit-bar,.bar.ultra-bar {background-size:1119px 333px;}
	.bar.about-bar {background-image:url(../images/about-bar-2x.jpg);}
	.bar.gallery-bar {background-image:url(../images/gallery-bar-2x.jpg);}
	.bar.superbit-bar {background-image:url(../images/superbit-bar-2x.jpg);}
	.bar.ultra-bar {background-image:url(../images/ultra-bar-2x.jpg);}
}

@media (max-width:1023px) {
	html {-webkit-text-size-adjust:100%;}
	html.mv-open {overflow:hidden;}
	body {font-size:14px;}
	.page-wrapper {min-height:0;margin-bottom:0;min-width:0;background:none;}
	.page-content {width:auto;}
	.push-footer {display:none;}

	/* header.page */
	header.page {display:flex;flex-wrap:wrap;align-items:center;padding:10px 12px;height:auto;}
	header.page .clear {display:none;}
	header.page #mts {float:none;}
	header.page #mts,header.page #mts a {width:87px;height:43px;background-size:87px 43px;}
	header.page .partners {float:none;display:flex;align-items:center;margin-left:auto;order:2;}
	header.page .partners a {float:none;margin:0 0 0 14px;top:0 !important;}
	header.page .partners a.partner-1 {width:40px;height:41px;background-size:40px 82px;}
	header.page .partners a.partner-2 {width:71px;height:25px;background-size:71px 50px;}
	.nav-toggle {display:block;order:3;margin-left:12px;width:44px;height:44px;background:#0b0b0b;position:relative;}
	.nav-toggle span,.nav-toggle span:before,.nav-toggle span:after {content:"";width:20px;height:2px;background:#fff;position:absolute;left:12px;top:21px;}
	.nav-toggle span:before {left:0;top:-7px;}
	.nav-toggle span:after {left:0;top:7px;}
	html.nav-open .nav-toggle {background:#ed1c24;}

	/* nav.page */
	nav.page {float:none;order:4;flex:0 0 calc(100% + 24px);margin:10px -12px -10px;height:auto;}
	html.js nav.page {display:none;}
	html.js.nav-open nav.page {display:block;}
	nav.page li,nav.page li.first {float:none;padding:0;height:auto;line-height:normal;background:none;border-top:1px solid #2e2e2e;}
	nav.page li.active {background:#0b0b0b;right:auto;}
	nav.page li a {display:block;padding:0 16px;font-size:19px;line-height:50px;}

	/* .home-content */
	.home-content {height:auto;background:none;overflow:visible;}
	.home-content .left,.home-content .right {float:none;}
	.home-content .left {width:auto;height:auto;background:#12060a url(../images/home-content.jpg) no-repeat 64% 0;background-size:auto 500px;position:relative;}
	.home-content .left:before {content:"";width:90%;height:340px;background:radial-gradient(ellipse farthest-side at 0 35%,rgba(16,0,3,.7),rgba(16,0,3,0));position:absolute;top:0;left:0;}
	.home-content .left .slogan,.home-content .left .slogan a {width:170px;height:176px;background-size:170px 176px;}
	.home-content .left .slogan {margin:0;padding:26px 0 230px 20px;background-position:20px 26px;position:relative;}
	.home-content .left .bottom {padding:0 16px 18px;width:auto;height:auto;font-size:14px;line-height:19px;background:#b01116;background:linear-gradient(#e1161c,#c21318 120px,#b01116 212px);position:relative;left:auto;right:auto;bottom:auto;}
	.home-content .left .bottom a.box {width:250px;height:212px;background:url(../images/home-left.png) no-repeat -40px 0;top:-93px;left:0;-webkit-mask-image:linear-gradient(to right,transparent,#000 16px,#000 185px,transparent);mask-image:linear-gradient(to right,transparent,#000 16px,#000 185px,transparent);}
	.home-content .left .bottom .about {float:none;width:auto;position:relative;}
	.home-content .left .bottom .title {margin:0 0 0 178px;padding:16px 0 0;min-height:84px;}
	.home-content .left .bottom .title a span {display:inline-block;vertical-align:-4px;margin-left:8px;position:static;}
	.home-content .left .bottom .about p {margin:0;}
	.home-content .left .bottom .option {float:none;margin:16px 0 0;border-top:1px solid #e5575b;padding:14px 0 0;width:auto;}
	.home-content .left .bottom .option a {display:block;}
	.home-content .left .bottom .option a span {display:block;margin-top:6px;line-height:44px;top:0;}
	.home-content .right {padding:0;width:auto;}
	/* .calendar */
	.home-content .calendar {height:auto;background:#e3181f url(../images/home-calendar.png) no-repeat 0 0;background-size:200% 100%;}
	.home-content .calendar .t,.home-content .calendar .c,.home-content .calendar .b,
	.home-content .events .t,.home-content .events .c,.home-content .events .b {display:none;}
	.home-content .calendar .wrap,.home-content .events .wrap {padding:20px 16px 18px;}
	.home-content .calendar .title,.home-content .events .title {padding:0;height:auto;margin-bottom:12px;font-size:28px;line-height:29px;}
	.home-content .calendar table {width:100%;}
	.home-content .calendar table thead th {padding:8px 0 4px;font-size:12px;}
	.home-content .calendar table thead td.pad {padding:0;font-size:17px;line-height:30px;vertical-align:middle;}
	.home-content .calendar table thead td#prev,.home-content .calendar table thead td#next {padding:0;line-height:30px;vertical-align:middle;}
	.home-content .calendar table thead td#prev a,.home-content .calendar table thead td#next a {vertical-align:middle;position:relative;}
	.home-content .calendar table thead td#prev a:after,.home-content .calendar table thead td#next a:after {content:"";position:absolute;top:-12px;right:-18px;bottom:-12px;left:-18px;}
	.home-content .calendar table td {font-size:15px;line-height:34px;}
	.home-content .calendar table td a {font-weight:bold;}
	/* .event */
	.home-content .event .arrow {left:28px;}
	.home-content .event .wrap {min-height:0;background:#262626;}
	.home-content .event .wrap .event {padding:12px 16px 16px;}
	.home-content .event .wrap .event .title {height:auto;font-size:15px;line-height:19px;}
	/* .events */
	.home-content .events {min-height:0;background:#e3181f url(../images/home-events.png) no-repeat 0 0;background-size:200% 100%;}
	.home-content .events .subtitle {margin:0 0 12px;padding:0;font-size:13px;white-space:normal;}
	.home-content .events #upcoming {padding-bottom:0;height:auto;}
	.home-content .events #upcoming .tabs ul {margin:0;}
	.home-content .events #upcoming .tabs ul li:last-child {margin-bottom:0;}
	.home-content .events #upcoming a {display:block;font-size:15px;line-height:19px;}
	.home-content .events #upcoming a span {font-size:13px;}

	/* .home-gallery */
	.home-gallery {padding:8px 0;width:auto;height:auto;background:#0e0e0e;}
	.home-gallery .prev,.home-gallery .next {display:none;}
	.home-gallery .wrap {padding:0 5px;width:auto;height:auto;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
	.home-gallery .wrap::-webkit-scrollbar {display:none;}
	.home-gallery .wrap ul {display:flex;height:auto;}
	.home-gallery .wrap ul li {float:none;flex:none;}
	.home-gallery .wrap ul li,.home-gallery .wrap ul li div.image,.home-gallery .wrap ul li a,.home-gallery .wrap ul li img {width:94px;height:94px;}

	/* .bar */
	.bar {height:250px;background-size:cover !important;background-position:55% 0 !important;}
	.bar.gallery-bar {background-position:62% 0 !important;}
	.bar.about-bar {background-position:50% 0 !important;}
	.bar.superbit-bar {background-position:40% 0 !important;}
	.bar.ultra-bar {background-position:70% 0 !important;}
	.bar h1 {font-size:40px;left:16px;bottom:88px;}
	.bar.ultra-bar h1 {top:22px;bottom:auto;}
	#timeline_message {display:none !important;}
	/* #timeline: вместо карусели — обычная прокрутка пальцем */
	.bar #timeline {width:auto;}
	.bar #timeline .left,.bar #timeline .right {width:30px;pointer-events:none;}
	.bar #timeline .left {background:linear-gradient(to right,#000,rgba(0,0,0,0));}
	.bar #timeline .right {background:linear-gradient(to left,#000,rgba(0,0,0,0));}
	.bar #timeline .prev,.bar #timeline .next {display:none;}
	.bar #timeline .wrap {width:auto;overflow-x:auto !important;overflow-y:hidden !important;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
	.bar #timeline .wrap::-webkit-scrollbar {display:none;}
	.bar #timeline .wrap ul {display:flex;width:max-content;overflow:visible;position:static;}
	.bar #timeline .wrap li {float:none;flex:none;}

	/* article */
	article header {margin:18px 16px 10px;font-size:32px;line-height:1.1;}
	article .article-content {border-width:1px 0;padding:18px 16px;font-size:16px;line-height:22px;}
	article .article-content div.photos {margin:0 -16px 16px;width:auto;height:auto !important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;position:static;}
	article .article-content div.photos::-webkit-scrollbar {display:none;}
	article .article-content div.photos > ul {display:flex;padding:0 11px;width:max-content;}
	article .article-content div.photos > ul > li {flex:none;margin:0 5px;}
	article .article-content div.photos ul li .cycle {border-width:5px;width:120px;height:120px;}
	article .article-content div.photos ul li .cycle ul li img {width:120px !important;height:120px !important;}
	article .article-content .wrap {margin-right:0;}
	article .article-content a.button {margin-right:0;}
	article .article-content img {max-width:100%;height:auto;}
	article .article-content table,article .article-content tbody,article .article-content tr,article .article-content td {display:block;}
	article footer {padding:4px 16px;height:auto;line-height:42px;}
	article footer .left,article footer .right {float:none;padding:0;}
	article footer ul {display:flex;flex-wrap:wrap;}
	article footer ul li {float:none;flex:1 1 auto;padding:0;background:none;}
	article footer ul li:has(a.all) {order:3;flex-basis:100%;border-top:1px solid #f4666b;}
	article footer ul li:has(a.next) {text-align:right;}
	article footer .right {border-top:1px solid #f4666b;}

	/* ul.events */
	ul.events {display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:0;padding:8px;}
	ul.events li {float:none;margin:0;width:auto;height:auto;aspect-ratio:214/182;}
	ul.events li a.event,ul.events li img {width:100%;height:100%;}
	ul.events li img {object-fit:cover;}
	ul.events li .wrap {padding:6px 10px 5px;width:auto;height:64px;}
	ul.events li .wrap .title {font-size:19px;line-height:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
	ul.events li .wrap .date {margin-bottom:4px;font-size:14px;}
	ul.events li a.gallery {left:10px;font-size:12px;}

	/* .gallery-events */
	ul.gallery-events {padding:0 6px;font-size:16px;text-align:left;white-space:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
	ul.gallery-events::-webkit-scrollbar {display:none;}
	#gallery-message {position:static;}

	/* ul.gallery: тап по превью сразу открывает фото */
	ul.gallery {display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px;padding:6px;width:auto;left:auto;}
	ul.gallery li {float:none;margin:0;width:auto;height:auto;}
	ul.gallery .thumb {border-width:4px;width:auto;height:auto;aspect-ratio:1;}
	ul.gallery .thumb a,ul.gallery .thumb img {width:100%;height:100%;}
	ul.gallery .preview {display:none !important;}

	/* .gallery-nav */
	.gallery-nav {margin:6px 0 0;height:auto;background:#191919;display:flex;flex-direction:column-reverse;}
	.gallery-nav .per-page {float:none;margin:0;font-size:13px;line-height:44px;}
	.gallery-nav .per-page .values {padding:4px 12px;width:auto;line-height:34px;top:auto;bottom:24px;right:-12px;}
	.pagination {margin:0;font-size:16px;line-height:48px;border-bottom:1px solid #262626;}
	.pagination .page-numbers {margin:0;padding:0 9px;display:inline-block;}
	.pagination .page-nav {margin:0 12px;top:4px;}

	/* footer.page */
	footer.page {height:auto;font-size:12px;line-height:17px;}
	footer.page .content {padding:20px 16px 24px;width:auto;height:auto;}
	footer.page .copyrights {float:none;}
	footer.page .social {float:none;margin:16px 0 0;overflow:hidden;}
	footer.page .social a {margin:0 13px 0 0;}

	/* .mv — просмотр фото на весь экран (вместо prettyPhoto) */
	.mv {background:#0b0b0b;position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;-webkit-user-select:none;user-select:none;touch-action:pinch-zoom;}
	.mv-stage {background:url(../images/prettyPhoto/mts/loader.gif) no-repeat 50% 50%;position:absolute;top:0;right:0;bottom:52px;left:0;}
	.mv-stage img {max-width:100%;max-height:100%;position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;}
	.mv-close,.mv-prev,.mv-next {position:absolute;z-index:2;cursor:pointer;}
	.mv-close {top:0;right:0;width:52px;height:52px;background:url(../images/prettyPhoto/mts/sprite.png) no-repeat 4px 4px;opacity:.8;}
	.mv-prev,.mv-next {top:60px;bottom:60px;width:30%;}
	.mv-prev {left:0;}
	.mv-next {right:0;}
	.mv-bar {padding:0 16px;height:52px;font-size:14px;line-height:52px;color:#8b8b8b;text-align:center;background:#161616;position:absolute;right:0;bottom:0;left:0;}
	.mv-bar .likes {float:left;}
	.mv-bar .likes a {display:block;padding-left:29px;color:#fff;text-decoration:none;background:url(../images/prettyPhoto/mts/likes.png) no-repeat 0 50%;}
	.mv-bar .download {float:right;}
	.mv-bar .download a {padding-right:23px;color:#fff;background:url(../images/prettyPhoto/mts/download.png) no-repeat 100% 50%;}
}

@media (min-width:640px) and (max-width:1023px) {
	.home-content .left {background-size:cover;background-position:50% 0;}
	.home-content .left .slogan,.home-content .left .slogan a {width:212px;height:220px;background-size:auto;}
	.home-content .left .slogan {padding:40px 0 250px 40px;background-position:40px 40px;}
	.home-content .left .bottom {padding:0 24px 22px 230px;min-height:97px;}
	.home-content .left .bottom a.box {left:8px;}
	.home-content .left .bottom .title {margin-left:0;min-height:0;}
	.home-content .left .bottom .option {display:inline-block;margin-top:12px;padding-top:10px;}
	.home-content .right {display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr;}
	.home-content .right > .calendar {grid-column:1;grid-row:1;}
	.home-content .right > .event {grid-column:1;grid-row:2;background:#262626;}
	.home-content .right > .events {grid-column:2;grid-row:1 / 3;}
	.bar {height:300px;}
	.bar h1 {font-size:54px;left:24px;bottom:96px;}
	article header {margin:22px 24px 10px;font-size:40px;}
	article .article-content {padding:22px 24px;}
	article .article-content div.photos {margin:0 -24px 18px;}
	ul.events {grid-template-columns:repeat(auto-fill,minmax(190px,1fr));}
	ul.events li .wrap .title {font-size:23px;line-height:25px;}
	ul.gallery {grid-template-columns:repeat(auto-fill,minmax(130px,1fr));}
	.gallery-nav {flex-direction:row;justify-content:space-between;padding:0 16px;}
	.pagination {border:0;}
}

@media (max-width:1023px) and (-webkit-min-device-pixel-ratio:1.5),(max-width:1023px) and (min-resolution:144dpi) {
	.home-content .left {background-image:url(../images/home-content-2x.jpg);}
}
