/* Google Font for Forum overlay typography. */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700;900&display=swap');

/* ==========================================================================
   skotovody.com — Homepage Styles
   Loaded only on the front page (conditional enqueue in functions.php).

   Hero Slider — портирован с cattle.expert (1:1).
   Селектор привязан к классу `skt-hero-slider`, который ставится в Live
   Builder → Section Settings → CSS Class. Это решает проблему с
   автогенерируемым `us_custom_xxxx` ID, который меняется при пересоздании
   секции.

   Все слайды редактируются нативно через USBuilder Content Carousel.
   Этот файл только добавляет visual polish: full-width section,
   gradient overlay, bottom-left content alignment, custom arrows/dots,
   mobile compact layout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Slider section: edge-to-edge full width
   -------------------------------------------------------------------------- */

body.home .l-section.skt-hero-slider {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	/* margin-top задаётся динамически в homepage-animations.js
	   (header.getBoundingClientRect().bottom) — это надёжнее, чем CSS var,
	   потому что учитывает admin-bar, sticky-header и mobile-варианты. */
	padding: 0 !important;
	min-height: 500px !important;
	overflow: hidden;
}
body.home .l-section.skt-hero-slider > .l-section-h {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	min-height: 500px;
}
body.home .l-section.skt-hero-slider .w-content-carousel,
body.home .l-section.skt-hero-slider .w-content-carousel .owl-carousel {
	max-width: 100% !important;
}

/* --------------------------------------------------------------------------
   Slide row sizing — backgrounds set per-slide in Live Builder
   -------------------------------------------------------------------------- */

body.home .skt-hero-slider .w-content-carousel .g-cols.wpb_row {
	position: relative;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	min-height: 500px;
	height: 500px !important;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Gradient overlay — auto-applied via ::before
   На Forum-слайде overlay нужно отключить (фото уже содержит текст,
   градиент его затемняет). Для этого ставим в Live Builder на этом
   конкретном Row класс `skt-no-overlay`.
   -------------------------------------------------------------------------- */

body.home .skt-hero-slider .w-content-carousel .g-cols.wpb_row::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0) 35%,
		rgba(0, 0, 0, 0.55) 75%,
		rgba(0, 0, 0, 0.75) 100%
	);
	z-index: 1;
	pointer-events: none;
}

body.home .skt-hero-slider .w-content-carousel .g-cols.skt-no-overlay::before {
	display: none;
}

/* Forum-слайд (.skt-overlay-left): фотография без baked-in текста, текст
   рендерится оверлеем слева. Левая часть затемняется гradient-ом для
   читаемости текста, правая (где быки) остаётся ясной. */
body.home .skt-hero-slider .w-content-carousel .g-cols.skt-overlay-left::before {
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.45) 30%,
		rgba(0, 0, 0, 0.15) 55%,
		rgba(0, 0, 0, 0) 75%
	);
}

/* Lift content above the gradient. */
body.home .skt-hero-slider .w-content-carousel .g-cols.wpb_row > .wpb_column {
	position: relative;
	z-index: 2;
	display: flex !important;
	height: 500px !important;
	width: 100%;
}

/* --------------------------------------------------------------------------
   Bottom-left content alignment
   -------------------------------------------------------------------------- */

body.home .skt-hero-slider .w-content-carousel .g-cols .vc_column-inner {
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
	align-items: flex-start !important;
	height: 500px !important;
	min-height: 500px !important;
	max-height: 500px !important;
	padding: 40px 60px 56px !important;
	text-align: left !important;
}

/* --------------------------------------------------------------------------
   Forum slide HTML overlay (внутри [us_html] блока) — воспроизводит
   baked-in типографику исходной картинки через Roboto Condensed.
   На mobile-breakpoint часть элементов скрывается + одна кнопка прячется
   через .skt-mobile-hide.
   -------------------------------------------------------------------------- */

body.home .skt-hero-slider .skt-forum-overlay {
	color: #fff;
	font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	max-width: 640px;
	margin: 0 0 18px;
	padding: 0;
	text-align: left;
	line-height: 1.2;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

body.home .skt-hero-slider .skt-forum-bands {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
}
body.home .skt-hero-slider .skt-forum-band {
	display: block;
	width: 80px;
	height: 6px;
	border-radius: 1px;
}
body.home .skt-hero-slider .skt-forum-band-gold { background: #c9a441; }
body.home .skt-hero-slider .skt-forum-band-green { background: #2a5934; }

body.home .skt-hero-slider .skt-forum-tagline {
	font-weight: 500;
	font-size: clamp(0.7rem, 0.95vw, 0.9rem);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 14px;
	color: #f0e4c0;
}
body.home .skt-hero-slider .skt-forum-title {
	font-weight: 900;
	font-size: clamp(2rem, 4.5vw, 3.6rem);
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0 0 12px;
	line-height: 1.05;
	color: #fff !important;
}
body.home .skt-hero-slider .skt-forum-title .emph {
	font-weight: 700;
	color: #fff;
}
body.home .skt-hero-slider .skt-forum-subtitle {
	font-weight: 400;
	font-size: clamp(0.8rem, 1.1vw, 1.05rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.92);
}
body.home .skt-hero-slider .skt-forum-dates {
	font-weight: 700;
	font-size: clamp(0.85rem, 1.15vw, 1.1rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 14px;
	color: #fff;
}
body.home .skt-hero-slider .skt-forum-link {
	font-weight: 400;
	font-size: clamp(0.75rem, 0.95vw, 0.95rem);
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Title / Subtitle typography
   -------------------------------------------------------------------------- */

body.home .skt-hero-slider .w-content-carousel h1.w-text,
body.home .skt-hero-slider .w-content-carousel h2.w-text {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.2;
	color: #fff !important;
	margin: 0 0 12px;
	text-align: left;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

body.home .skt-hero-slider .w-content-carousel .w-text:not(.w-text-h):not(h1):not(h2),
body.home .skt-hero-slider .w-content-carousel .wpb_text_column,
body.home .skt-hero-slider .w-content-carousel .wpb_text_column p {
	font-size: clamp(0.875rem, 1.1vw, 1rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92) !important;
	max-width: 500px;
	margin: 0 0 22px;
	text-align: left;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Buttons — compact, inline row
   `.skt-hero-buttons-row` создаётся JS-ом (homepage-animations.js) для
   группировки нескольких .w-btn-wrapper в одну строку (без него они
   стекаются вертикально из-за flex-column родителя).
   -------------------------------------------------------------------------- */

body.home .skt-hero-slider .w-content-carousel .skt-hero-buttons-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	align-items: center;
	margin: 0;
}

body.home .skt-hero-slider .w-content-carousel .w-btn-wrapper {
	display: inline-flex;
	margin: 0 10px 0 0;
	align-items: center;
}
body.home .skt-hero-slider .w-content-carousel .w-btn-wrapper:last-child {
	margin-right: 0;
}
body.home .skt-hero-slider .w-content-carousel .w-btn {
	padding: 9px 20px !important;
	font-size: 0.85rem !important;
	font-weight: 500;
	border-radius: 3px !important;
	line-height: 1.4;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Disabled (placeholder) buttons — для Forum-слайда: «Подробности скоро»
   и «Зарегистрироваться» пока без работающей ссылки. Чтобы не вели в
   никуда, ставим в Live Builder на кнопке класс `skt-btn-disabled`.
   -------------------------------------------------------------------------- */

body.home .skt-hero-slider .w-content-carousel .w-btn.skt-btn-disabled,
body.home .skt-hero-slider .w-content-carousel .w-btn.skt-btn-disabled:hover,
body.home .skt-hero-slider .w-content-carousel .w-btn.skt-btn-disabled:focus,
body.home .skt-hero-slider .w-content-carousel .w-btn-wrapper .w-btn.skt-btn-disabled {
	pointer-events: none;
	opacity: 0.65;
	cursor: not-allowed;
	box-shadow: none !important;
	transform: none !important;
}

/* --------------------------------------------------------------------------
   Owl carousel arrows — chevrons positioned left/right edges, vertically centered
   -------------------------------------------------------------------------- */

body.home .skt-hero-slider .owl-carousel .owl-nav {
	position: static;
	margin: 0;
}
body.home .skt-hero-slider .owl-carousel .owl-nav button.owl-prev,
body.home .skt-hero-slider .owl-carousel .owl-nav button.owl-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	width: 32px;
	height: 56px;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	color: #fff !important;
	box-shadow: none !important;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
	opacity: 0.7;
	transition: opacity 200ms ease, transform 200ms ease;
	z-index: 5;
}
body.home .skt-hero-slider .owl-carousel .owl-nav button.owl-prev {
	left: 18px;
	right: auto;
}
body.home .skt-hero-slider .owl-carousel .owl-nav button.owl-next {
	right: 18px;
	left: auto;
}
body.home .skt-hero-slider .owl-carousel .owl-nav button.owl-prev:hover,
body.home .skt-hero-slider .owl-carousel .owl-nav button.owl-next:hover {
	opacity: 1;
	transform: translateY(-50%) scale(1.15);
	background: transparent !important;
}
body.home .skt-hero-slider .owl-carousel .owl-nav button .w-btn-label {
	display: none;
}
body.home .skt-hero-slider .owl-carousel .owl-nav button::before {
	font-size: 28px;
	line-height: 1;
}

/* --------------------------------------------------------------------------
   Owl dots — bottom-right overlay on the slide, pill shape on active
   -------------------------------------------------------------------------- */

body.home .skt-hero-slider .owl-carousel .owl-dots {
	position: absolute;
	right: 24px;
	bottom: 18px;
	left: auto;
	display: flex;
	gap: 8px;
	z-index: 5;
	width: auto;
}
body.home .skt-hero-slider .owl-carousel .owl-dots .owl-dot {
	display: inline-flex;
	margin: 0;
	padding: 4px;
	background: transparent;
}
body.home .skt-hero-slider .owl-carousel .owl-dots .owl-dot span {
	display: block;
	width: 8px;
	height: 8px;
	margin: 0;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	transition: all 200ms ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
body.home .skt-hero-slider .owl-carousel .owl-dots .owl-dot.active span {
	background: #fff;
	width: 24px;
	border-radius: 4px;
}

/* Ensure the slider positioning context for absolute-positioned dots/arrows */
body.home .skt-hero-slider .w-content-carousel,
body.home .skt-hero-slider .w-content-carousel .owl-carousel {
	position: relative;
}

/* --------------------------------------------------------------------------
   Mobile (≤767px): compact, no subtitle
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	/* Forum-слайд на mobile: фокус на быках (правая часть фотки), упрощённая
	   типографика, скрытие decoration/secondary-button. */
	body.home .skt-hero-slider .w-content-carousel .g-cols.skt-overlay-left {
		background-position: 85% center !important;
	}
	body.home .skt-hero-slider .skt-forum-bands,
	body.home .skt-hero-slider .skt-forum-tagline,
	body.home .skt-hero-slider .skt-forum-subtitle,
	body.home .skt-hero-slider .skt-forum-link {
		display: none;
	}
	body.home .skt-hero-slider .skt-forum-title {
		font-size: 1.6rem;
		margin-bottom: 8px;
	}
	body.home .skt-hero-slider .skt-forum-dates {
		font-size: 0.8rem;
		margin-bottom: 14px;
	}
	body.home .l-section.skt-hero-slider,
	body.home .l-section.skt-hero-slider > .l-section-h,
	body.home .skt-hero-slider .w-content-carousel .g-cols.wpb_row,
	body.home .skt-hero-slider .w-content-carousel .g-cols.wpb_row > .wpb_column,
	body.home .skt-hero-slider .w-content-carousel .g-cols .vc_column-inner {
		min-height: 420px !important;
		height: 420px !important;
		max-height: 420px !important;
	}
	body.home .skt-hero-slider .w-content-carousel .g-cols .vc_column-inner {
		padding: 24px 20px 64px !important;
	}
	body.home .skt-hero-slider .w-content-carousel .skt-no-overlay .vc_column-inner {
		padding: 16px 16px 24px !important;
	}
	body.home .skt-hero-slider .w-content-carousel h1.w-text,
	body.home .skt-hero-slider .w-content-carousel h2.w-text {
		font-size: 1.35rem !important;
		line-height: 1.25;
		margin-bottom: 14px;
	}
	body.home .skt-hero-slider .w-content-carousel .w-text:not(.w-text-h):not(h1):not(h2),
	body.home .skt-hero-slider .w-content-carousel .wpb_text_column {
		display: none;
	}
	body.home .skt-hero-slider .w-content-carousel .w-btn-wrapper {
		margin-right: 8px;
	}
	body.home .skt-hero-slider .w-content-carousel .w-btn {
		padding: 8px 14px !important;
		font-size: 0.8rem !important;
	}
	body.home .skt-hero-slider .owl-carousel .owl-nav button.owl-prev,
	body.home .skt-hero-slider .owl-carousel .owl-nav button.owl-next {
		width: 24px;
		height: 44px;
	}
	body.home .skt-hero-slider .owl-carousel .owl-nav button.owl-prev { left: 8px; }
	body.home .skt-hero-slider .owl-carousel .owl-nav button.owl-next { right: 8px; }
	body.home .skt-hero-slider .owl-carousel .owl-nav button::before {
		font-size: 22px;
	}
}
