/* RusTiming responsive v1.3.0 — брейкпоинты 1024 / 768 / 480.
   Подключается ПОСЛЕ site.css: каскад дополняет существующие 1000/640,
   десктоп (>1024px) не изменяется. */

/* ---------- медиа-контент: iframe, видео, таблицы ---------- */
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object{max-width:100%}
.wp-block-embed__wrapper{width:100%}
.wp-block-embed__wrapper iframe{width:100%;height:auto;aspect-ratio:16/9}
.wp-video{width:100% !important}

/* ---------- защита от горизонтального скролла ----------
   overflow-x:hidden ломает sticky-хедер, поэтому clip (не создаёт скролл-контейнер) */
@supports (overflow:clip){
	html,body{overflow-x:clip}
}

/* ---------- бургер: на десктопе скрыт ---------- */
.nav-toggle{display:none;flex:none;width:42px;height:42px;margin-left:4px;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer;position:relative;padding:0}
.nav-toggle span{position:absolute;left:11px;right:11px;height:2px;background:var(--ink);border-radius:2px;transition:transform .2s ease,opacity .2s ease,top .2s ease}
.nav-toggle span:nth-child(1){top:14px}
.nav-toggle span:nth-child(2){top:20px}
.nav-toggle span:nth-child(3){top:26px}
.nav-toggle:hover{border-color:var(--navy)}
.nav-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.nav-toggle[aria-expanded="true"] span:nth-child(1){top:20px;transform:rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){top:20px;transform:rotate(-45deg)}

/* ============================================================
   ПЛАНШЕТЫ — max-width:1024px
   Меню — модальное окно (бургер). Панель при открытии переносится
   в обёртку .nav-modal на уровне <body> (см. nav.js): position:fixed
   внутри шапки с backdrop-filter позиционируется от её статичной
   позиции и при прокрутке оказывается за экраном.
   ============================================================ */
@media (max-width:1024px){
	.nav-toggle{display:inline-flex;align-items:center;justify-content:center}

	.nav{display:none}
	.nav-modal{position:fixed;inset:0;z-index:79;display:none}
	.nav-modal.is-open{display:block}
	.nav-modal-backdrop{position:absolute;inset:0;background:rgba(6,24,41,.55);animation:rt-nav-fade .2s ease}
	.nav-modal .nav{position:absolute;top:64px;left:0;right:0;display:block;flex:none;flex-direction:column;gap:0;background:#fff;border-radius:0 0 18px 18px;border-bottom:1px solid var(--line);box-shadow:0 24px 50px rgba(6,24,41,.18);max-height:calc(100% - 64px);overflow-y:auto;padding:10px 16px 18px;animation:rt-nav-sheet .22s ease}
	html.nav-open{overflow:hidden}
	body.nav-open .header{z-index:90}
	@keyframes rt-nav-fade{from{opacity:0}to{opacity:1}}
	@keyframes rt-nav-sheet{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
	@media (prefers-reduced-motion:reduce){.nav-modal-backdrop,.nav-modal .nav{animation:none}}

	.nav ul{flex-direction:column;gap:1px;width:100%;overflow:visible}
	.nav a{padding:11px 12px;font-size:15px;border-radius:10px;white-space:normal}
	.nav .nav-menu > li{width:100%}

	/* подпункты «Систем» — раскрыты списком внутри панели */
	.nav .sub-menu{display:block;position:static;min-width:0;border:none;box-shadow:none;padding:0 0 0 14px;background:transparent}
	.nav .sub-menu a{font-size:14px;color:var(--muted);padding:8px 12px}
	.nav .sub-menu a:hover{background:#e8f1ff}
	.nav li.menu-item-has-children > a::after{content:""}
}

/* ============================================================
   ПЛАНШЕТ — футер: 5 колонок -> 3
   ============================================================ */
@media (max-width:1024px){
	.foot-cols{grid-template-columns:repeat(3,1fr);gap:24px 28px}
	.foot-intro p{max-width:100%}

	/* единая экосистема: длинные плашки переносятся на 2 строки */
	.eco-node .plate{width:auto;white-space:normal;line-height:1.35}
}
/* ============================================================
   МОБИЛЬНЫЕ ЛАНДШАФТ — max-width:768px
   Отступы секций и крупных блоков
   ============================================================ */
@media (max-width:768px){
	.container{padding:0 18px}
	.section{padding:44px 0}
	.sec-head{margin-bottom:24px}
	.entry .sec-head{margin-bottom:18px}

	.hero-in{padding:40px 0 46px;gap:30px}
	.cta-band{padding:32px 28px;border-radius:18px;gap:18px}
	.cta-band .btn{margin-left:0}
	.stats-band{padding:26px;border-radius:18px}
	.pe .col{padding:18px;border-radius:14px}
	.chain-card{padding:18px;border-radius:14px}

	/* единая экосистема: цепочки — вертикально, линии — вниз (v1.17.0) */
	.eco-flows{gap:14px}
	.eco-chain{flex-direction:column}
	.eco-node{padding:11px 13px;border-radius:12px}
	.eco-link{flex:0 0 auto;width:2px;height:26px;align-self:flex-start;margin:3px 0 3px 26px;padding:0}
	.eco-link i{width:2px;height:100%}
	.eco-link i::before{background-image:linear-gradient(180deg,var(--to,#8fb0d9) 55%,transparent 0);background-size:2px 9px;animation:eco-dash-v 1.1s linear infinite}
	.eco-link i::after{right:auto;left:50%;top:auto;bottom:-1px;transform:translateX(-50%);border-left:4.5px solid transparent;border-right:4.5px solid transparent;border-top:7px solid var(--to,#8fb0d9);border-bottom:none}
	@keyframes eco-dash-v{to{background-position:0 9px}}

	/* «Как работает»: карта пути — трасса слева (v1.18.0) */
	.journey{--jw:38px;max-width:none}
	.journey::before,.journey::after{left:calc(var(--jw) / 2);top:20px;bottom:20px;mask-image:none;-webkit-mask-image:none}
	.j-item{grid-template-columns:var(--jw) 1fr;column-gap:12px;margin-bottom:12px}
	.j-station{grid-column:1;width:var(--jw);height:var(--jw);font-size:14px;border-width:2.5px;box-shadow:0 0 0 4px #fff,0 8px 18px rgba(6,24,41,.12)}
	.j-station::before,.j-station::after{display:none}
	.j-item:nth-child(odd) .j-card,.j-item:nth-child(even) .j-card{grid-column:2;grid-row:1;justify-self:stretch}
	.j-card{padding:12px 14px;gap:11px}
	.j-ic{width:38px;height:38px;border-radius:10px}
	.j-ic svg{width:20px;height:20px}
	.j-body b{font-size:14.5px}

	.foot-cols{grid-template-columns:1fr 1fr;gap:24px}
	.footer{padding:40px 0 24px;margin-top:44px}

	.search-wrap{margin-bottom:24px}
	.comments-area{padding-top:24px;margin-top:32px}

	/* таблицы в контенте — горизонтальный скролл внутри, без вылезания */
	.entry-content table{display:block;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
}

/* ============================================================
   МОБИЛЬНЫЕ ПОРТРЕТ — max-width:480px
   Типографика и плотная вёрстка
   ============================================================ */
@media (max-width:480px){
	.section{padding:34px 0}
	.hero-in{padding:32px 0 38px;gap:24px}
	.hero h1{font-size:clamp(24px,7vw,30px)}
	.sec-head h2{font-size:clamp(19px,5.5vw,22px)}
	.cta-band{padding:26px 20px}
	.cta-band h2{font-size:clamp(19px,5.5vw,22px)}
	.cta-band .btn{width:100%;justify-content:center}

	.entry-content{font-size:15px}
	.entry-content h2{font-size:20px}
	.entry-content h3{font-size:17px}
	.entry-content blockquote{padding:12px 16px}

	.stats-band{grid-template-columns:1fr 1fr;gap:16px;padding:20px}
	.stats-band .s b{font-size:24px}
	.hero-stats{gap:8px}
	.hstat{padding:7px 11px}

	.foot-cols{grid-template-columns:1fr;gap:22px}
	.foot-note{flex-direction:column;gap:6px}

	.sys-grid,.feat-grid,.stage-cols,.steps{gap:12px}
	.sys-card,.feat,.stage{padding:16px;border-radius:14px}

	.post-nav{flex-direction:column;gap:10px}
	.post-nav .nav-next{margin-left:0;text-align:left}
	.rt-fgrid{grid-template-columns:1fr}
	.empty-note{padding:26px 18px}
	.error-404 .search-form{flex-direction:column}
}

/* проекты: сетка логотипов — брейкпоинты */
@media (max-width:1024px){.logos-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:768px){.logos-grid{grid-template-columns:repeat(2,1fr);gap:12px}.logo-card{min-height:150px;padding:18px 12px}.logo-card__img{height:88px}.logo-card__img img{max-height:88px}.logo-card__name{font-size:12px}}

/* тарифы: пакеты продаж */
@media (max-width:1024px){
	.tariff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
	.tariff-grid{grid-template-columns:minmax(0,1fr)}
	.rt-tariff-body .trt-row{grid-template-columns:1fr;gap:6px}
	.rt-tariff-body .rt-tariff-detail__head{flex-direction:column;align-items:flex-start}
	.rt-tariff-body .rt-tariff-detail__head .tariff-card__img{width:100%}
	.rt-tariff-body .rt-tariff-detail__head .tariff-ph b{font-size:32px}
}

/* «Внедрения»: карточки с логотипами — брейкпоинты (v1.19.0) */
@media (max-width:1024px){.case-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:768px){
	.case-grid{grid-template-columns:repeat(2,1fr);gap:10px}
	.case-card{min-height:132px;padding:14px 10px 12px;border-radius:14px}
	.case-card__ph{width:54px;height:54px;border-radius:13px;font-size:17px}
	.case-card__img img{max-height:60px}
	.case-card b{font-size:12.5px}
}

/* отзывы и благодарности — брейкпоинты */
@media (max-width:1024px){.rv-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:768px){
	.rv-grid{grid-template-columns:1fr;gap:14px}
	.rv-card{padding:16px}
	.rv-card__head{gap:12px}
	.rv-card__avatar{width:48px;height:48px}
	.rv-card__name{font-size:15px}
	.rv-tabs{gap:6px;margin-bottom:20px}
	.rv-tab{padding:7px 13px;font-size:12.5px}
	.rv-lightbox{padding:14px}
	.rv-lightbox__box video,.rv-lightbox__box img{max-width:92vw;max-height:80vh}
	.rv-play::after{width:52px;height:52px;background-size:24px 24px}
}

/* авторские статьи — брейкпоинты */
@media (max-width:768px){
	.rt-abox{gap:14px;padding:16px;margin-top:22px}
	.rt-abox__photo{width:56px;height:56px}
	.rt-abox__name{font-size:15.5px}
	.rt-author-hero{flex-direction:column;align-items:flex-start;gap:16px;padding:20px;margin-bottom:26px}
	.rt-author-hero__photo{width:88px;height:88px}
	.rt-author-hero h1{font-size:23px}
}

/* ---------- награды «О нас» (v1.21.0) ---------- */
@media (max-width:768px){
	.rt-awards{margin:28px 0 4px}
	.rt-awards__grid{grid-template-columns:1fr;margin-top:16px}
	.rt-award{flex-direction:column;text-align:center;gap:18px;padding:22px 20px}
	.rt-award__badge{width:180px}
	.rt-awards__photos{grid-template-columns:1fr;gap:20px;margin-top:22px}
}
@media (max-width:480px){
	.rt-award{padding:20px 16px}
	.rt-award__badge{width:150px}
	.rt-award__title{font-size:16.5px}
}


/* RT 1.26.2: «Мероприятия» на главной — адаптив */
@media (max-width:1000px){.event-grid{grid-template-columns:1fr}}
@media (max-width:640px){.event-card{padding:10px 14px;gap:12px}.event-card__logo{width:64px;height:46px}.event-card__logo img{max-width:64px;max-height:46px}.event-card b{font-size:12.5px}}


/* RT 1.26.3: бегущая строка фото — адаптив */
@media (max-width:640px){.rt-mq-section{padding:28px 0 2px}.rt-marquee__group{gap:10px;padding-right:10px}.rt-marquee__group img{height:92px;border-radius:11px}.rt-marquee::before,.rt-marquee::after{width:44px}}


/* RT Фотогалерея — адаптив */
@media (max-width:640px){
.rt-gallery__stage{aspect-ratio:4/3;border-radius:14px}
.rt-gallery__img{padding:12px}
.rt-gallery__nav{width:34px;height:34px;font-size:18px}
.rt-gallery__nav--prev{left:8px}
.rt-gallery__nav--next{right:8px}
.rt-gallery__thumb{width:72px;height:48px}
.rt-gallery--grid .rt-gallery__thumbs{gap:10px}
.rt-gallery--grid .rt-gallery__thumb{flex-basis:calc((100% - 10px)/2)}
.rt-lightbox__img{max-width:calc(100vw - 88px);max-height:calc(100vh - 80px)}
.rt-lightbox__nav{width:42px;height:42px;font-size:22px}
.rt-lightbox__nav--prev{left:8px}
.rt-lightbox__nav--next{right:8px}
}
