@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root{
	color-scheme: dark;
	--bg: #0b1424;
	--card-bg: #15243b;
	--text: #f3f6fb;
	--muted: #9aaac0;
	--green: #63bd31;
	--green-dark: #4a9428;
	--line: rgba(179, 199, 226, .14);
	--background: #0b1424;
	--red: #d6452f;
	--blue: #3b82f6;
}
*{ box-sizing: border-box; }

[hidden]{
	display: none !important;
}

.board {
    display: none !important;
}

body{
	min-width: 320px;
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Manrope", "Segoe UI", sans-serif;
}
a{ color: inherit; text-decoration: none; }

/* ===== КОНТЕЙНЕР ===== */
.page-shell{
	width: min(100% - 48px, 1050px);
	margin: 0 auto;
	padding: 24px 0 40px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.brand, .header-meta, .brand-copy, .section-heading, .date-control, .notice, .site-footer, .footer-brand{
	display: flex;
	align-items: center;
}
.brand{ gap: 15px; color: inherit; text-decoration: none; }
.brand-mark, .footer-mark{
	display: grid;
	place-items: center;
	background: transparent;
	color: #fff;
	font-weight: 800;
}
.brand-mark{
	width: 80px;
	height: 80px;
	border-radius: 10px;
	font-size: 19px;
}
.brand-copy strong{
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .01em;
}
.brand-copy .brand-sub{
	display: block;
	color: var(--muted);
	font-weight: 600;
	font-size: 11px;
}
.brand-dot{ color: var(--green); }
.header-meta{
	gap: 9px;
	color: var(--muted);
	font-size: 12px;
}
.header-meta #clock{
	color: var(--text);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.header-clock-icon{ width: 16px; height: 16px; color: #8d9db3; }
.header-clock-icon svg{ width: 100%; height: 100%; }
.meta-divider{
	width: 1px;
	height: 16px;
	background: var(--line);
}

.site-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr; /* Логотип | Навигация | Время */
	align-items: center;
	height: 82px;
	border-bottom: 1px solid var(--line);
	gap: 20px;
}
.site-header .brand {
	justify-self: start;
}
.site-header .top-nav {
	justify-self: center;
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
}
.site-header .header-meta {
	justify-self: end;
	display: flex;
	gap: 9px;
	align-items: center;
	color: var(--muted);
	font-size: 12px;
}

/* Навигация по разделам */
.top-nav{
	display: flex;
	gap: 16px;
	font-size: 12px;
	font-weight: 700;
	flex-wrap: wrap;
}
.top-nav a{
	color: var(--muted);
	transition: color .15s;
}
.top-nav a:hover{ color: var(--green); }
.top-nav a[aria-current="page"]{ color: var(--text); }

/* ===== ЭЛЕМЕНТЫ ===== */
.eyebrow{
	margin: 0 0 15px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .15em;
}
.eyebrow-line{
	display: inline-block;
	width: 18px;
	height: 2px;
	margin: 0 8px 3px 0;
	background: #568743;
}
.schedule-section{
	padding: 25px 0 0;
	border-top: 1px solid var(--line);
}
.section-heading{
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 25px;
}
.section-heading .eyebrow{ margin-bottom: 7px; }
h2{
	margin: 0;
	font-size: 27px;
	letter-spacing: -.035em;
}

/* ===== ДАТА ===== */
.date-control{
	position: relative;
	gap: 5px;
}
.date-arrow, .date-current{
	height: 39px;
	border: 1px solid #2b3c55;
	border-radius: 9px;
	background: #13223a;
	color: var(--text);
	cursor: pointer;
}
.date-arrow{
	display: grid;
	width: 35px;
	place-items: center;
	color: #bec9d8;
	font-size: 22px;
	line-height: 1;
}
.date-arrow:hover, .date-current:hover{
	border-color: #52657e;
	background: #192b45;
}
.date-current{
	min-width: 120px;
	padding: 0 12px;
	font-size: 11px;
	font-weight: 700;
}
#date-picker{
	position: absolute;
	right: 40px;
	width: 120px;
	height: 39px;
	opacity: 0;
	cursor: pointer;
}

/* ===== NOTICE ===== */
.notice{
	gap: 9px;
	margin-top: 10px;
	padding: 11px 15px;
	border: 1px solid #504631;
	border-radius: 12px;
	background: #272417;
	color: #d3c7a6;
	font-size: 10px;
	line-height: 1.5;
}
.notice strong{ color: #f0dda9; }
.notice-icon{
	display: grid;
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	place-items: center;
	color: #d1b76e;
}
.notice-icon svg{ width: 100%; height: 100%; }
.notice-error{
	border-color: #57383d;
	background: #2c1d24;
	color: #e8b8b8;
}

/* ===== КАРТОЧКИ РЕЙСОВ ===== */
.trip-list{
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 16px;
}
.trip-card{
	width: 100%;
	max-width: 100%;
	background: var(--card-bg);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
	overflow: hidden;
}
.trip-card.is-next{ border-color: #3e6b3a; }
.next-badge{
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 4px;
	background: var(--green);
	color: #111;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transform: skewX(-15deg);
	z-index: 2;
}
.next-badge > *{ transform: skewX(15deg); }
.next-badge svg{ width: 12px; height: 12px; display: block; }
.time-row{
	display: flex;
	align-items: baseline;
	gap: 12px;
}
.time-main{
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.time-arrow{
	color: #6f819a;
	font-size: 20px;
	display: flex;
	align-items: center;
}
.time-arr{
	font-size: 24px;
	color: var(--muted);
	font-weight: 700;
}
.slanted-info{
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.slanted-box{
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--green);
	border: 1px solid var(--green-dark);
	border-radius: 4px;
	padding: 8px 16px;
	transform: skewX(-15deg);
}
.slanted-box > *{ transform: skewX(15deg); }
.slanted-box .info-text{ display: flex; flex-direction: column; }
.slanted-box .info-label{
	font-size: 9px;
	color: rgba(255, 255, 255, 0.7);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.slanted-box .info-value{
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}
.slanted-box .icon{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	color: #fff;
}
.slanted-box .icon svg{
	width: 100%;
	height: 100%;
	fill: currentColor;
	display: block;
}
.slanted-box.train-name-box{
	background: #2a3953;
	border-color: #3b4e6b;
}
.icon svg{ width: 100%; height: 100%; display: block; }

/* ===== АРТ ПОЕЗДА (в карточке) ===== */
.train-section{
	position: relative;
	height: 60px;
	margin-top: -100px;
	width: 100%;
}
.train-art{
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 50px;
	z-index: 2;
	opacity: 0.6;
	filter: brightness(0.7);
	pointer-events: none;
}
.train-art svg{
	width: 100%;
	height: 100%;
	display: block;
}
.dashed-track{
	position: absolute;
	bottom: -10px;
	left: 0;
	right: 0;
	height: 2px;
	border-bottom: 2px dashed #2a3c58;
	z-index: 1;
}

/* ===== АРТ: ЭЛЕКТРИЧКИ ===== */
.train-body{ stroke: none; }
.train-bogie, .train-coupler{ fill: #4a5b6e; }
.train-pantograph{
	fill: none;
	stroke: #4a5b6e;
	stroke-width: 2.5;
	stroke-linejoin: round;
	stroke-linecap: round;
}
.train-light{ fill: #f3d98b; }
.train-windows, .train-windshield{ fill: #1a2533; }

.train-artwork-ivolga .train-body{ fill: #ffffff; }
.train-artwork-ivolga .train-roof{ fill: #e31e24; }
.train-artwork-ivolga .train-windshield{ fill: #0d1622; }
.train-artwork-ivolga .train-nose-outline{
	fill: none;
	stroke: #f07e21;
	stroke-width: 4;
	stroke-linecap: round;
}
.train-artwork-ivolga .train-bottom{ fill: #2b4c8c; }

.train-artwork-electric .train-body{ fill: #e0e0e0; }
.train-artwork-electric .train-roof{ fill: #8d99a6; }
.train-artwork-electric .train-stripe{ fill: #d6452f; }
.train-artwork-electric .train-bottom{ fill: #404040; }

.train-artwork-reks .train-body{ fill: #ffffff; }
.train-artwork-reks .train-roof, .train-artwork-reks .train-nose{ fill: #a72027; }
.train-artwork-reks .train-windshield{ fill: #0d1622; }
.train-artwork-reks .train-bottom{ fill: #2b4c8c; }

/* ===== АРТ: ТРАМВАЙ «ВИТЯЗЬ-МОСКВА» ===== */
.train-artwork-tram .tram-body{ fill: #ffffff; }
.train-artwork-tram .tram-blue{ fill: #1f7ed0; }
.train-artwork-tram .tram-glass{ fill: #0d1622; }
.train-artwork-tram .tram-door{ fill: #142033; stroke: #ffffff; stroke-width: 3; }
.train-artwork-tram .tram-pillar{ fill: #ffffff; }
.train-artwork-tram .tram-bellows{ fill: #0b121c; }
.train-artwork-tram .tram-rib{ stroke: #1f2e44; stroke-width: 2; }
.train-artwork-tram .tram-joint{ fill: #a9b6c6; }
.train-artwork-tram .tram-roofbox{ fill: #d5dde8; }
.train-artwork-tram .tram-under{ fill: #3a4a5c; }
.train-artwork-tram .train-bogie{ fill: #4a5b6e; }
.train-artwork-tram .train-light{ fill: #f3d98b; }
.train-artwork-tram .tram-pantograph{
	fill: none;
	stroke: #d6452f;
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.train-artwork-tram .tram-seam{ stroke: #ffffff; stroke-width: 2; opacity: .55; }

/* ===== ПОДПИСЬ К ДАННЫМ ===== */
.data-caption{
	min-height: 16px;
	margin: 10px 0 0;
	color: #8190a4;
	font-size: 9px;
	text-align: right;
}

/* ===== ФУТЕР ===== */
.site-footer{
	justify-content: space-between;
	gap: 12px;
	margin-top: 51px;
	padding: 18px 0 22px;
	border-top: 1px solid var(--line);
	color: #8796aa;
	font-size: 9px;
}
.footer-brand{
	gap: 7px;
	letter-spacing: .02em;
	font-weight: 700;
}
.footer-mark{
	width: 19px;
	height: 19px;
	border-radius: 6px;
	background: #335a35;
	font-size: 10px;
}
.footer-links{
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 11px;
}
.footer-links a:hover{ color: var(--green); }

/* ===== ТАБЛО (board) ===== */
.board{
	position: relative;
	display: grid;
	grid-template-columns: 76px minmax(0, 1.2fr) minmax(170px, .75fr) minmax(0, 1fr);
	min-height: 236px;
	overflow: hidden;
	border: 1px solid #293b57;
	border-radius: 16px;
	background: #101d32;
}
.board-line{
	display: flex;
	justify-content: center;
	padding-top: 18px;
	background: var(--green-dark);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .03em;
}
.board-main{
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	padding: 20px 8px 20px 24px;
	min-width: 0;
}
.board-label{
	margin: 0;
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
}
.board-en{
	margin: 10px 0 0;
	color: #5f7088;
	font-size: clamp(14px, 1.7vw, 21px);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.1;
}
.board-name{
	margin: 2px 0 0;
	font-size: clamp(26px, 3.5vw, 46px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.04;
	overflow-wrap: anywhere;
}
.board-art{
	position: relative;
	min-width: 0;
}
.board-train{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.board-meta{
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 24px 18px 10px;
}
.board-credits p{
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.35;
}
.board-credits strong{ color: var(--text); font-weight: 800; }
.board-credits a{
	color: var(--text);
	font-weight: 800;
	text-decoration: none;
	border-bottom: 1px solid #3b4e6b;
}
.board-clock{
	display: flex;
	justify-content: flex-end;
	gap: 22px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	color: #aebcd0;
	font-size: clamp(16px, 1.9vw, 21px);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/* ===== СТОИМОСТЬ ===== */
.price-box{
	background: rgba(99, 189, 49, 0.15);
	border-color: var(--green-dark);
}
.price-box .info-value{ color: var(--green); }
.price-box .info-label{ color: rgba(255, 255, 255, 0.65); }

/* ===== НОВЫЙ ИНТЕРФЕЙС РАСПИСАНИЯ ===== */
.panel{
	background: #111f34;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px;
}
.field label{
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.field select{
	width: 100%;
	height: 48px;
	padding: 0 12px;
	border: 1px solid #2b3c55;
	border-radius: 10px;
	background: #0b1424;
	color: var(--text);
	font: 700 15px Manrope, sans-serif;
}
.field select:focus-visible,
.chip:focus-visible,
button:focus-visible{
	outline: 2px solid var(--green);
	outline-offset: 2px;
}
.route{
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 10px;
	align-items: end;
}
.swap{
	width: 48px;
	height: 48px;
	border: 1px solid var(--green-dark);
	border-radius: 4px;
	background: rgba(99, 189, 49, .15);
	color: var(--green);
	cursor: pointer;
	transform: skewX(-15deg);
}
.swap svg{
	width: 22px;
	height: 22px;
	transition: transform .3s;
	transform: skewX(15deg);
}
.swap.flip svg{ transform: skewX(15deg) rotate(180deg); }

.chips{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.chips + .chips{ margin-top: 10px; }
.chips .sep{
	width: 1px;
	height: 20px;
	background: var(--line);
	margin: 0 4px;
}
.chip{
	padding: 8px 16px;
	border: 1px solid #253752;
	border-radius: 4px;
	background: #0b1424;
	color: var(--muted);
	font: 700 12px Manrope, sans-serif;
	cursor: pointer;
	transform: skewX(-15deg);
	transition: background .15s, border-color .15s;
}
.chip > span{ display: block; transform: skewX(15deg); }
.chip.on{
	border-color: var(--green);
	background: rgba(99, 189, 49, .15);
	color: var(--text);
}
.sum{
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	color: var(--muted);
	font-size: 12px;
}
.sum b{ color: var(--text); }
.past-toggle{
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 12px 16px;
	border: 1px dashed #2b3c55;
	border-radius: 12px;
	background: transparent;
	color: var(--muted);
	font: 700 12px Manrope, sans-serif;
	cursor: pointer;
}
.past-toggle b{ color: var(--green); }
.empty{
	padding: 28px;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
}
.trip-card{ padding: 18px; gap: 14px; }
.trip-card.is-past{ opacity: .55; }
.time-row{ flex-wrap: wrap; gap: 10px 12px; }
.next-badge{ position: static; }
.eta{
	margin-left: auto;
	background: rgba(99, 189, 49, .15);
}
.eta .info-value{ color: var(--green); }
.is-next .eta{ background: var(--green); }
.is-next .eta .info-value{ color: #0b1424; }
.is-past .eta{ background: #1d2b43; border-color: #2b3c55; }
.is-past .eta .info-value{ color: var(--muted); }
.train-section{ margin-top: 0; height: 52px; }
.train-art{ opacity: .9; filter: none; height: 46px; }

.trip-card{ overflow: visible; }
.time-row{ align-items: flex-start; }
.eta-wrap{ position: relative; margin-left: auto; }
.eta-wrap .eta{ margin-left: 0; }
.is-next .eta{ background: rgba(99, 189, 49, .28); }
.is-next .eta .info-value{ color: var(--green); }
.next-badge{
	position: absolute;
	left: 50%;
	top: -29px;
	transform: translateX(-50%) skewX(-15deg);
	white-space: nowrap;
	width: max-content;
	box-shadow: 0 0 0 4px var(--bg);
	z-index: 3;
}
.next-badge > *{ flex: none; }
.trip-card.is-next{ margin-top: 14px; }
.field label{ margin-left: 10px; }

/* select (нативный) */
.sel{
	position: relative;
	height: 48px;
	border: 1px solid #2b3c55;
	border-radius: 4px;
	background: #0b1424;
	transform: skewX(-15deg);
}
.sel:focus-within{ border-color: var(--green); }
.sel select{
	width: 100%;
	height: 100%;
	padding: 0 32px 0 20px;
	border: 0;
	border-radius: 0;
	background: transparent;
	appearance: none;
	transform: skewX(15deg);
	outline: 0;
}
.sel option{ background: #0b1424; }
.sel::after{
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 7px;
	height: 7px;
	border: solid var(--muted);
	border-width: 0 2px 2px 0;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.sel-m{
	position: absolute;
	right: 34px;
	top: 50%;
	transform: translateY(-50%) skewX(15deg);
	pointer-events: none;
	z-index: 2;
}
.sel select{ padding: 0 110px 0 20px; }

.chips.one{
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px 8px;
}
.chips.one::-webkit-scrollbar{ display: none; }
.chips.one .chip{ flex: 0 0 auto; padding: 8px 14px; }

/* прошлые рейсы (аккордеон) */
.past-wrap{
	display: grid;
	grid-template-rows: 0fr;
	margin-bottom: -14px;
	opacity: 0;
	visibility: hidden;
	transition: grid-template-rows .45s ease, margin-bottom .45s ease, opacity .3s ease, visibility 0s .45s;
}
.past-wrap.open{
	grid-template-rows: 1fr;
	margin-bottom: 0;
	opacity: 1;
	visibility: visible;
	transition: grid-template-rows .45s ease, margin-bottom .45s ease, opacity .45s ease .05s, visibility 0s;
}
.past-inner{
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.past-inner > .trip-card{ flex: none; }

/* таймлайн остановок */
.tl{
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--n), 1fr);
}
.tl-line{
	position: absolute;
	left: calc(50% / var(--n));
	right: calc(50% / var(--n));
	top: 58px;
	height: 4px;
	border-radius: 2px;
	background: #34507a;
}
.tl-n{
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	padding: 0 2px;
}
.tl-name{
	height: 46px;
	margin-bottom: 6px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--muted);
}
.tl-dot{
	width: 16px;
	height: 16px;
	border: 3px solid #4a5b6e;
	border-radius: 50%;
	background: var(--card-bg);
}
.mrow{ display: flex; gap: 3px; }
.sum .mrow{ display: inline-flex; margin-left: 6px; vertical-align: middle; }
.m{
	display: grid;
	place-items: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	font: 800 9px/1 Arial, sans-serif;
	font-style: normal;
	color: #fff;
}
.m1{ background: #d6083b; }
.m5{ background: #8d5b2d; }
.m14-badge{
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 6px;
	border: 1px dashed #e31e24;
	border-radius: 3px;
	background: rgba(227, 30, 36, 0.12);
	color: #ff5258;
	font: 800 9px "Manrope", sans-serif;
	letter-spacing: 0.04em;
	transform: skewX(-15deg);
	flex-shrink: 0;
}
.m14-badge span{
	transform: skewX(15deg);
	display: inline-block;
}
.tl-time{
	margin-top: 6px;
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
}
.tl-n.end .tl-name, .tl-n.end .tl-time{ color: var(--text); }
.tl-n.end .tl-dot{
	border-color: var(--green);
	background: radial-gradient(var(--green) 0 2px, var(--card-bg) 3px);
}
.tl-n.gap .tl-name{ font-weight: 500; }
.tl-n.gap .tl-dot{
	width: 10px;
	height: 10px;
	margin: 3px;
	border: 2px dashed #6f819a;
}
.trip-card[data-t=ivolga] .train-name-box{
	position: relative;
	overflow: hidden;
}
.trip-card[data-t=ivolga] .train-name-box::before{
	content: "";
	position: absolute;
	inset: 0 -14px;
	background: var(--wave) 0 0/120px auto;
	opacity: .17;
	transform: skewX(15deg);
	pointer-events: none;
}
.slanted-box > *{ position: relative; z-index: 1; }

/* ===== ТАРИФЫ ===== */
.lbl{
	flex: 0 0 auto;
	margin-right: 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}
.note{
	margin: 12px 2px 2px;
	padding-left: 10px;
	border-left: 3px solid var(--green);
	color: var(--muted);
	font-size: 12px;
	line-height: 1.55;
}
.price-box s{
	margin-right: 6px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 500;
}
.tx{
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	visibility: hidden;
	transition: grid-template-rows .4s ease, opacity .25s ease, visibility 0s .4s;
}
.tx.open{
	grid-template-rows: 1fr;
	opacity: 1;
	visibility: visible;
	transition: grid-template-rows .4s ease, opacity .4s ease .08s, visibility 0s;
}
.tx-in{ min-height: 0; overflow: hidden; }
.tx-in .chips{ padding-top: 12px; }

.trip-list{ gap: 14px; margin-top: 12px; }
.schedule-section .panel{ margin-bottom: 14px; }
.sum{ margin: 14px 0 4px; }
.schedule-section .notice{ margin: 0 0 8px; }

/* ===== SHARE / TOAST ===== */
.share{
	flex: 0 0 auto;
	align-self: flex-start;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin: 8px 0 0 4px;
	padding: 0;
	border: 1px solid #2b3c55;
	border-radius: 4px;
	background: #0b1424;
	color: var(--muted);
	cursor: pointer;
	transform: skewX(-15deg);
	transition: color .15s, border-color .15s;
}
.share svg{
	width: 14px;
	height: 14px;
	transform: skewX(15deg);
}
.share:hover{ color: var(--green); border-color: var(--green); }
.sum{ flex-wrap: wrap; }
.toast{
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 50;
	padding: 10px 18px;
	border: 1px solid var(--green);
	border-radius: 4px;
	background: #111f34;
	font-size: 13px;
	font-weight: 700;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 20px);
	transition: opacity .25s, transform .25s;
}
.toast.show{ opacity: 1; transform: translate(-50%, 0); }
.trip-card.flash{ animation: flash 2.4s ease; }
@keyframes flash{
	0%, 60%{ box-shadow: 0 0 0 3px var(--green); }
	100%{ box-shadow: 0 0 0 3px transparent; }
}

/* ===== КАСТОМНЫЙ SELECT ===== */
.field{ position: relative; z-index: 10; }
.custom-select{
	position: relative;
	height: 48px;
	background: #0b1424;
	border: 1px solid #2b3c55;
	border-radius: 4px;
	transform: skewX(-15deg);
	cursor: pointer;
	user-select: none;
}
.custom-select:focus-visible,
.custom-select.is-open{
	border-color: var(--green);
	outline: none;
	z-index: 50;
}
.select-trigger{
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 0 38px 0 16px;
	transform: skewX(15deg);
}
.selected-text{
	flex: 1;
	min-width: 0;
	font: 700 15px "Manrope", sans-serif;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.select-m{
	margin-left: auto;
	margin-right: 8px;
	flex-shrink: 0;
}
.select-dropdown{
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 260px;
	background: #0e192b;
	border: 1px solid #2b3c55;
	border-radius: 8px;
	overflow-y: auto;
	z-index: 100;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transform-origin: top left;
	transform: skewX(15deg) translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}
.custom-select.is-open .select-dropdown{
	opacity: 1;
	visibility: visible;
	transform: skewX(15deg) translateY(0);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.select-option{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	font: 600 14px "Manrope", sans-serif;
	color: var(--muted);
	transform: none;
	transition: background 0.15s ease, color 0.15s ease;
}
.select-option:hover,
.select-option.is-selected{
	background: #172842;
	color: var(--text);
}
.select-option.is-selected{ font-weight: 700; }

/* ===== ЛЕНДИНГ (hero, кнопки, новости) ===== */
.hero{ padding: 20px 0 48px; max-width: 780px; }
.hero h1{
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.04;
	margin: 0 0 16px;
}
.hero .lede{
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 26px;
	max-width: 640px;
}
.hero-cta{ display: flex; gap: 10px; flex-wrap: wrap; }

.btn{
	padding: 12px 22px;
	border-radius: 4px;
	font: 800 13px "Manrope", sans-serif;
	letter-spacing: .02em;
	cursor: pointer;
	border: 1px solid var(--green-dark);
	background: var(--green);
	color: #fff;
	transform: skewX(-15deg);
	transition: .15s;
	display: inline-block;
}
.btn > span{ display: inline-block; transform: skewX(15deg); }
.btn:hover{ background: var(--green-dark); border-color: var(--green); }

.section-title{
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 16px;
}
.section-title .line{
	display: inline-block;
	width: 18px;
	height: 2px;
	background: #568743;
	margin-right: 8px;
	vertical-align: middle;
}
.news{
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 48px;
	overflow: visible;
}
.news-item{
	position: relative;
	display: flex;
	gap: 14px;
	padding: 20px 26px;
	background: #111f34;
	border: 1px solid #2a3953;
	border-radius: 4px;
	transform: skewX(-15deg);
	overflow: hidden;
	transition: border-color .2s;
}
.news-date{
	color: #6b7a8f;
	font-weight: 600;
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}
.news-date::before{
	content: "·";
	margin-right: 6px;
	opacity: .6;
}
.news-item::before{
	content: "";
	position: absolute;
	inset: 0 -14px;
	background: var(--wave) center / 900px auto no-repeat;
	opacity: .09;
	transform: skewX(15deg);
	pointer-events: none;
	z-index: 0;
	mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.news-item > *{ position: relative; z-index: 1; transform: skewX(15deg); }
.news-icon{
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	margin-top: 0;
}
.news-icon svg{ width: 100%; height: 100%; display: block; }
.news-item--cppk .news-icon{ color: var(--blue); }
.news-item--dt .news-icon{ color: var(--red); }
.news-item--team .news-icon{ color: var(--green); }
.news-body{ min-width: 0; flex: 1; }
.news-text{
	font-size: 13px;
	color: var(--text);
	line-height: 1.55;
	margin: 0 0 10px;
}
.news-text strong{ color: #fff; }
.news-meta{
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0;
	font-size: 11px;
}
.news-source{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 4px;
	font-weight: 800;
	font-size: 10px;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: var(--accent-bg, rgba(99, 189, 49, .15));
	color: var(--accent, var(--green));
	border: 1px solid var(--accent-border, rgba(99, 189, 49, .35));
	transform: skewX(-15deg);
	transition: border-color .2s;
}
.news-source > span{ display: inline-block; transform: skewX(15deg); }
.news-author{ color: var(--muted); font-weight: 600; }
.news-author .author{ color: var(--text); font-weight: 700; }

.news-item--team{
	--accent: var(--green);
	--accent-bg: rgba(99, 189, 49, .15);
	--accent-border: rgba(99, 189, 49, .35);
}
.news-item--cppk{
	--accent: var(--blue);
	--accent-bg: rgba(59, 130, 246, .15);
	--accent-border: rgba(59, 130, 246, .35);
}
.news-item--dt{
	--accent: var(--red);
	--accent-bg: rgba(214, 69, 47, .15);
	--accent-border: rgba(214, 69, 47, .35);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 760px){
	.page-shell{ width: min(100% - 32px, 560px); }
	.site-header{ height: 66px; }
	.header-meta{ font-size: 10px; }
	.header-meta #today-label, .meta-divider{ display: none; }
	.schedule-section{ padding-top: 22px; }
	.train-art{ transform: none !important; height: 44px; }

	.board{
		grid-template-columns: 52px minmax(0, 1fr);
		grid-template-rows: auto auto;
		min-height: 0;
	}
	.board-line{
		grid-row: 1 / 3;
		padding-top: 14px;
		font-size: 13px;
	}
	.board-main{
		grid-column: 2;
		padding: 18px 16px 8px 16px;
	}
	.board-art{
		position: absolute;
		top: 0;
		right: -24px;
		bottom: 34%;
		width: 58%;
		opacity: .55;
		pointer-events: none;
	}
	.board-meta{
		grid-column: 2;
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 12px;
		padding: 4px 16px 14px 16px;
	}
	.board-credits p{ margin-bottom: 4px; font-size: 11px; }
	.board-clock{
		flex-direction: column;
		align-items: flex-end;
		gap: 0;
		padding-top: 0;
		border-top: 0;
		font-size: 15px;
		line-height: 1.25;
	}
	.top-nav{ display: none; }
	.news-item::before{ background-size: 600px auto; }
	.hero{ padding: 8px 0 32px; }
}

@media (max-width: 560px){
	.route{ grid-template-columns: 1fr; }
	.swap{ justify-self: center; width: 44px; height: 44px; }
	.swap svg{ transform: skewX(15deg) rotate(90deg); }
	.swap.flip svg{ transform: skewX(15deg) rotate(270deg); }
	.time-main{ font-size: 30px; }
	.tl-name, .tl-time{ font-size: 10px; }
}

@media (max-width: 450px){
	h2{ font-size: 24px; }
	.section-heading{ gap: 6px; }
	.date-control{ gap: 3px; }
	.date-arrow{ width: 29px; height: 35px; }
	.date-current{
		min-width: 91px;
		height: 35px;
		padding: 0 6px;
		font-size: 10px;
	}
	#date-picker{
		right: 32px;
		width: 91px;
		height: 35px;
	}
}

@media (prefers-reduced-motion: reduce){
	.past-wrap, .past-wrap.open{ transition: none; }
	.tx, .tx.open{ transition: none; }
}

.brand-mark img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.brand-mark {
    width: 56px;
    height: 56px;
}

/* Навигация по разделам */
.top-nav {
	display: flex;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	flex-wrap: nowrap; /* запрещаем перенос на новую строку */
	align-items: center;
	margin-left: auto; /* прижимаем к центру/правому краю */
	margin-right: 24px;
}

/* Превращаем ссылки в плашки, как чипсы */
.top-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	border: 1px solid #253752;
	border-radius: 4px;
	background: #0b1424;
	color: var(--muted);
	text-decoration: none;
	transform: skewX(-15deg);
	transition: background .15s, border-color .15s, color .15s;
}

/* Внутренний текст нужно раскосить обратно, иначе он наклонится */
.top-nav a > span {
	display: inline-block;
	transform: skewX(15deg);
}

/* Активный пункт и наведение — зелёный фон, белый текст */
.top-nav a[aria-current="page"],
.top-nav a:hover {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.brand-copy strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
}
.brand-sub {
    color: var(--muted);
    font-weight: 600;
    font-size: 11px;
}