/* ==========================================================================
   Delai-sait — база: токены дизайна, сброс, типографика, кнопки, утилиты.
   Палитра и типографика перенесены из макета «Дикий Сахалин».
   ========================================================================== */

:root {
	/* Фирменная палитра */
	--psh-ink: #0a0e1a;
	--psh-ink-2: #101627;
	--psh-ink-3: #1a2338;
	--psh-fog: #f3efe6;
	--psh-fog-2: #eae4d6;
	--psh-lighthouse: #0088cc;
	--psh-star: #f0b849;
	--psh-lighthouse-dim: #0074ad;
	--psh-lagoon: #0088cc;
	--psh-snow: #f8f6f0;
	--psh-mist: #9aa3b8;
	--psh-slate: #4a5266;
	--psh-border-light: #ddd5c2;

	/* Фирменные цвета брендов */
	--psh-brand-telegram: #229ed9;
	--psh-brand-whatsapp: #25d366;
	--psh-brand-vk: #0077ff;
	--psh-brand-youtube: #ff0000;
	--psh-brand-yandex: #fc3f1d;
	--psh-brand-viber: #7360f2;
	--psh-brand-ok: #ee8208;
	--psh-brand-max: #9500ff;

	/* Типографика */
	--psh-font-display: 'Unbounded', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--psh-font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	/* Геометрия и движение */
	--psh-container: 1400px;
	--psh-radius-sm: 8px;
	--psh-radius: 12px;
	--psh-radius-lg: 16px;
	--psh-radius-xl: 24px;
	--psh-radius-pill: 999px;
	--psh-shadow-sm: 0 2px 8px rgba(10, 14, 26, 0.06);
	--psh-shadow: 0 18px 48px rgba(10, 14, 26, 0.12);
	--psh-shadow-lg: 0 32px 80px rgba(10, 14, 26, 0.18);
	--psh-ease: cubic-bezier(0.16, 1, 0.3, 1);

	/* Служебное */
	--psh-header-height: 82px;
	--psh-section-pad: 5rem;
	--psh-scrollbar-track: #eae4d6;
	--psh-scrollbar-thumb: #c9c0aa;
}

/* --------------------------------------------------------------------------
   Сброс
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--psh-header-height) + 16px);
}

body.psh-body {
	margin: 0;
	background: var(--psh-fog);
	color: var(--psh-ink-2);
	font-family: var(--psh-font-body);
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: -0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.psh-body.psh-menu-open {
	overflow: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

/*
 * Атрибут hidden должен побеждать display из классов
 * (поля форм, блок тура в модалке и т. п.).
 */
[hidden] {
	display: none !important;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s var(--psh-ease), opacity 0.25s var(--psh-ease);
}

a:hover {
	color: var(--psh-lighthouse);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

figure {
	margin: 0;
}

::selection {
	background: var(--psh-lighthouse);
	color: #fff;
}

/* Скроллбар */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: var(--psh-scrollbar-track);
}

::-webkit-scrollbar-thumb {
	background: var(--psh-scrollbar-thumb);
	border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--psh-lighthouse);
}

:focus-visible {
	outline: 2px solid var(--psh-lighthouse);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Типографика
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
.psh-display {
	margin: 0 0 0.6em;
	font-family: var(--psh-font-display);
	/* В макете классы font-700/800/900 не генерируются, все заголовки идут весом 400. */
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--psh-ink);
}

h1,
.psh-h1 {
	font-size: clamp(2rem, 5.5vw, 4.6rem);
	line-height: 1.02;
}

h2,
.psh-h2 {
	font-size: clamp(1.8rem, 4vw, 3.4rem);
	line-height: 1.05;
}

h3,
.psh-h3 {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.2;
}

h4,
.psh-h4 {
	font-size: 1.125rem;
	line-height: 1.3;
}

.psh-kicker {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 1rem;
	font-family: var(--psh-font-body);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--psh-lighthouse);
}

.psh-kicker::before {
	content: '';
	display: inline-block;
	width: 40px;
	height: 12px;
	border-radius: 2px;
	background-image: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(0, 136, 204, 0.85) 6px 8px);
}

.psh-lead {
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	color: var(--psh-slate);
	max-width: 62ch;
}

.psh-text-outline {
	-webkit-text-stroke: 1.5px rgba(243, 239, 230, 0.55);
	color: transparent;
}

.psh-text-outline-ink {
	-webkit-text-stroke: 1.5px rgba(10, 14, 26, 0.4);
	color: transparent;
}

/* Тёмные секции — инверсия базовых цветов */
.psh-dark {
	background: var(--psh-ink);
	color: var(--psh-fog);
}

.psh-dark h1,
.psh-dark h2,
.psh-dark h3,
.psh-dark h4,
.psh-dark .psh-display {
	color: var(--psh-fog);
}

.psh-dark .psh-lead {
	color: var(--psh-mist);
}

/* --------------------------------------------------------------------------
   Сетка и контейнер
   -------------------------------------------------------------------------- */

.psh-container {
	width: 100%;
	max-width: var(--psh-container);
	margin: 0 auto;
	padding: 0 16px;
}

@media (min-width: 768px) {
	.psh-container {
		padding: 0 32px;
	}
}

.psh-section {
	padding: var(--psh-section-pad) 0;
	position: relative;
}

.psh-section--tight {
	padding: calc(var(--psh-section-pad) * 0.6) 0;
}

.psh-grid {
	display: grid;
	gap: 24px;
}

.psh-grid--2 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.psh-grid--3 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.psh-grid--4 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.psh-grid--2,
	.psh-grid--3,
	.psh-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.psh-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.psh-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.psh-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.psh-section-head__index {
	position: absolute;
	top: -2rem;
	right: 0;
	font-family: var(--psh-font-display);
	font-size: clamp(6rem, 24vw, 18rem);
	line-height: 1;
	font-weight: 400;
	-webkit-text-stroke: 1.5px rgba(10, 14, 26, 0.4);
	color: transparent;
	opacity: 0.25;
	pointer-events: none;
	user-select: none;
}

.psh-dark .psh-section-head__index {
	-webkit-text-stroke-color: rgba(243, 239, 230, 0.55);
	opacity: 0.2;
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.psh-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	padding: 14px 28px;
	border-radius: var(--psh-radius-pill);
	font-family: var(--psh-font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	border: 1px solid transparent;
	transition: transform 0.3s var(--psh-ease), background-color 0.3s var(--psh-ease), color 0.3s var(--psh-ease), border-color 0.3s var(--psh-ease);
	will-change: transform;
}

.psh-btn__icon {
	flex: 0 0 auto;
	transition: transform 0.4s var(--psh-ease);
}

.psh-btn:hover .psh-btn__icon {
	transform: translate(3px, -3px);
}

.psh-btn--primary {
	background: var(--psh-lighthouse);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.psh-btn--primary::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--psh-ink-2);
	transform: translateY(101%);
	transition: transform 0.45s var(--psh-ease);
	z-index: -1;
}

.psh-btn--primary:hover {
	color: #fff;
}

.psh-btn--primary:hover::before {
	transform: translateY(0);
}

.psh-btn--ghost {
	border-color: rgba(10, 14, 26, 0.22);
	color: var(--psh-ink);
}

.psh-btn--ghost:hover {
	background: var(--psh-ink);
	color: var(--psh-fog);
	border-color: var(--psh-ink);
}

.psh-btn--ghost-light {
	border-color: rgba(243, 239, 230, 0.28);
	color: var(--psh-fog);
}

.psh-btn--ghost-light:hover {
	background: var(--psh-fog);
	color: var(--psh-ink);
	border-color: var(--psh-fog);
}

.psh-btn--white {
	background: var(--psh-fog);
	color: var(--psh-ink);
}

.psh-btn--white:hover {
	background: #fff;
	color: var(--psh-lighthouse);
}

.psh-btn--sm {
	padding: 10px 20px;
	font-size: 0.875rem;
}

.psh-btn--lg {
	padding: 18px 36px;
	font-size: 1rem;
}

.psh-btn--block {
	width: 100%;
}

.psh-btn[disabled],
.psh-btn.is-disabled {
	opacity: 0.6;
	pointer-events: none;
}

/* Круглая кнопка-стрелка */
.psh-btn--circle {
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Плашки, бейджи, элементы-ссылки
   -------------------------------------------------------------------------- */

.psh-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 6px 14px;
	border-radius: var(--psh-radius-pill);
	background: rgba(10, 14, 26, 0.06);
	color: var(--psh-ink);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.psh-badge--accent {
	background: var(--psh-lighthouse);
	color: #fff;
}

.psh-badge--lagoon {
	background: var(--psh-lagoon);
	color: var(--psh-ink);
}

.psh-badge--dark {
	background: var(--psh-ink-3);
	color: var(--psh-fog);
}

.psh-badge--outline {
	background: transparent;
	border: 1px solid rgba(243, 239, 230, 0.3);
	color: var(--psh-fog);
}

.psh-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 8px 16px;
	border-radius: var(--psh-radius-pill);
	border: 1px solid var(--psh-border-light);
	background: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	transition: all 0.25s var(--psh-ease);
}

.psh-tag:hover,
.psh-tag.is-active {
	background: #fff;
	border-color: #fff;
	color: var(--psh-lighthouse);
}

.psh-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 700;
	color: var(--psh-lighthouse);
}

.psh-link-arrow:hover {
	gap: 0.9em;
}

/* --------------------------------------------------------------------------
   Декор: диагональная штриховка, точечная сетка
   -------------------------------------------------------------------------- */

.psh-hatch {
	background-image: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(0, 136, 204, 0.85) 6px 8px);
}

.psh-hatch-ink {
	background-image: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(10, 14, 26, 0.22) 6px 8px);
}

.psh-hatch-bar {
	display: block;
	width: 68px;
	height: 10px;
}

/* --------------------------------------------------------------------------
   Анимации появления и счётчики
   -------------------------------------------------------------------------- */

.psh-reveal {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.9s var(--psh-ease), transform 0.9s var(--psh-ease);
	transition-delay: var(--psh-reveal-delay, 0ms);
}

.psh-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.psh-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	html {
		scroll-behavior: auto;
	}
}

/* --------------------------------------------------------------------------
   Утилиты
   -------------------------------------------------------------------------- */

.psh-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.psh-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	padding: 12px 20px;
	background: var(--psh-ink);
	color: var(--psh-fog);
	border-radius: 0 0 var(--psh-radius) 0;
}

.psh-skip-link:focus {
	left: 0;
	color: var(--psh-fog);
}

.psh-text-center {
	text-align: center;
}

.psh-mt-0 {
	margin-top: 0;
}

.psh-mb-0 {
	margin-bottom: 0;
}

.psh-flex {
	display: flex;
}

.psh-flex-wrap {
	flex-wrap: wrap;
}

.psh-items-center {
	align-items: center;
}

.psh-justify-between {
	justify-content: space-between;
}

.psh-gap-sm {
	gap: 12px;
}

.psh-gap {
	gap: 20px;
}

/* Контент, вставленный в редакторе (записи, страницы) */
.psh-prose {
	max-width: 78ch;
}

.psh-prose > * + * {
	margin-top: 1em;
}

.psh-prose h2 {
	margin-top: 1.8em;
}

.psh-prose h3 {
	margin-top: 1.5em;
}

.psh-prose ul,
.psh-prose ol {
	padding-left: 1.35em;
	list-style: disc;
}

.psh-prose ol {
	list-style: decimal;
}

.psh-prose li + li {
	margin-top: 0.35em;
}

.psh-prose a {
	color: var(--psh-lighthouse);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.psh-prose blockquote {
	margin: 1.5em 0;
	padding: 1em 1.4em;
	border-left: 4px solid var(--psh-lighthouse);
	background: rgba(255, 255, 255, 0.6);
	border-radius: 0 var(--psh-radius) var(--psh-radius) 0;
}

.psh-prose table {
	width: 100%;
	border-collapse: collapse;
}

.psh-prose th,
.psh-prose td {
	padding: 10px 14px;
	border: 1px solid var(--psh-border-light);
	text-align: left;
}

.psh-prose img {
	border-radius: var(--psh-radius-lg);
}


/* Ритм секций как в макете: 80px мобильный, 112px десктоп. */
@media (min-width: 768px) {
	:root {
		--psh-section-pad: 7rem;
	}
}

/* Фирменный круг Яндекс (красный с белой «Я») — иначе иконка наследует цвет
   текста и сливается с тёмным фоном кнопок и hero-секций. */
.psh-icon--yandex {
	color: var(--psh-brand-yandex);
}
