/*
 * Alican Premium 1.4.2 — homepage spacing + typography repair.
 * Manrope is the single UI/display typeface across AZ and RU.
 */

:root {
	--alican-font-sans: "Manrope", "Segoe UI", Arial, sans-serif;
}

/* Typography: one consistent family with safer metrics for AZ/RU. */
html,
body,
body.alican-premium,
.alican-premium,
.alican-premium button,
.alican-premium input,
.alican-premium select,
.alican-premium textarea {
	font-family: var(--alican-font-sans);
}

body.alican-premium {
	font-weight: 400;
	line-height: 1.58;
	font-kerning: normal;
	font-synthesis: none;
}

.alican-premium h1,
.alican-premium h2,
.alican-premium h3,
.alican-premium h4,
.alican-premium h5,
.alican-premium h6 {
	font-family: var(--alican-font-sans);
	font-weight: 700;
	letter-spacing: -0.035em;
	font-kerning: normal;
}

.site-menu > .menu-item > a,
.site-menu .sub-menu a,
.language-switcher__toggle,
.alican-premium .button,
.alican-premium .wp-element-button,
.alican-premium button.button,
.alican-premium input[type="submit"] {
	font-family: var(--alican-font-sans);
}

/* Hero: no tight letter/line collisions, and enough breathing room at bottom. */
.hero-slider,
.hero-slider__viewport,
.hero-slide__inner {
	min-height: 510px;
}

.hero-slide__inner {
	padding-block: 38px 70px;
}

.hero-slide h1,
.hero-slide h2 {
	max-width: 540px;
	margin-bottom: 18px;
	font-size: clamp(2.8rem, 4vw, 3.45rem);
	font-weight: 700;
	line-height: 1.055;
	letter-spacing: -0.042em;
}

.hero-slide h1 span,
.hero-slide h2 span {
	line-height: inherit;
}

.hero-slide__copy > p {
	max-width: 440px;
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.62;
	letter-spacing: -0.008em;
}

.hero-slide__actions .button,
.hero-slide__actions .text-link {
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Keep slider controls fully inside the hero instead of touching categories. */
.hero-slider__controls {
	bottom: 18px;
}

/* Categories must begin after the hero. No negative overlap. */
.category-showcase,
.home-main .category-showcase {
	position: relative;
	z-index: 1;
	margin-top: 24px;
}

.category-showcase__grid {
	align-items: stretch;
}

.category-card__copy h2,
.category-card:first-child h2,
.category-card:not(:first-child) h2 {
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.028em;
}

.category-card__copy p {
	line-height: 1.5;
}

/* Section headings: compact but never cramped. */
.section-heading h2,
.expertise-section__content > h2 {
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -0.035em;
}

.product-card h3,
.catalog-product-card h2,
.catalog-product-card h3 {
	font-weight: 700;
	line-height: 1.34;
	letter-spacing: -0.025em;
}

@media (max-width: 980px) {
	.hero-slider,
	.hero-slider__viewport,
	.hero-slide__inner {
		min-height: 630px;
	}

	.hero-slide__inner {
		padding-top: 44px;
		padding-bottom: 78px;
	}

	.hero-slide h1,
	.hero-slide h2 {
		font-size: clamp(2.65rem, 7vw, 3.65rem);
		line-height: 1.06;
	}

	.category-showcase,
	.home-main .category-showcase {
		margin-top: 22px;
	}
}

@media (max-width: 620px) {
	.hero-slider,
	.hero-slider__viewport,
	.hero-slide__inner {
		min-height: 604px;
	}

	.hero-slide__inner {
		padding-top: 32px;
		padding-bottom: 74px;
	}

	.hero-slide h1,
	.hero-slide h2 {
		max-width: 95%;
		font-size: clamp(2.25rem, 11.5vw, 3rem);
		line-height: 1.07;
		letter-spacing: -0.038em;
	}

	.hero-slide__copy > p {
		font-size: 0.86rem;
		line-height: 1.6;
	}

	.category-showcase,
	.home-main .category-showcase {
		margin-top: 18px;
	}
}
