/* Montserrat — self-hosted, all weights/styles from assets/fonts */

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-Thin.woff2") format("woff2");
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-ThinItalic.woff2") format("woff2");
	font-weight: 100;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-ExtraLight.woff2") format("woff2");
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-ExtraLightItalic.woff2") format("woff2");
	font-weight: 200;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-Light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-LightItalic.woff2") format("woff2");
	font-weight: 300;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-Italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-MediumItalic.woff2") format("woff2");
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-SemiBoldItalic.woff2") format("woff2");
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-BoldItalic.woff2") format("woff2");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-ExtraBold.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-ExtraBoldItalic.woff2") format("woff2");
	font-weight: 800;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-Black.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-BlackItalic.woff2") format("woff2");
	font-weight: 900;
	font-style: italic;
	font-display: swap;
}

/* Breakpoints (max-width, desktop-first): 1440 / 1280 / 1024 / 768 / 380 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	margin: 0;
}

:root {
	/* Colors */
	--color-bg: #411714;
	--color-bg-alt: #411714;
	--color-accent: #FFD2A7;
	--color-accent-light: #ecd3ac;
	--color-text: #f6ede3;
	--color-text-muted: #d8c3b6;
	--color-button-bg: #ecd3ac;
	--color-button-text: #3d1420;
	--color-border: rgba(217, 180, 143, 0.35);

	/* Typography */
	--font-heading: "Montserrat", "Arial", sans-serif;
	--font-body: "Montserrat", "Arial", sans-serif;
	--font-weight-h2: 600;

	/* Layout */
	--container-width: 1400px;
	--container-padding: 24px;
	--radius-pill: 16px;
	--radius-md: 12px;
	--button-height: 45px;

	/* Header */
	--header-height: 96px;

	/* Light sections ("Наши клиенты") */
	--color-surface-light: #fbeae1;
	--color-muted-warm: #594b45;
	--color-card: #fff7f1;
	--color-text-soft: #5b4841;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	border-radius: var(--radius-pill);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 15px;
	height: var(--button-height);
	letter-spacing: 0.02em;
	text-transform: lowercase;
	background: linear-gradient(135deg, #f6dcb0 0%, #c99b6b 100%);
	color: var(--color-button-text);
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn--outline {
	background: transparent;
	border: 1px solid var(--color-accent);
	color: var(--color-accent);
}

/* Fixed pattern overlay for light sections — swap assets/images/pattern-light.svg to change it */
.bg-pattern {
	position: relative;
}

.bg-pattern::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("../images/pattern-light.svg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	pointer-events: none;
	z-index: 0;
	clip-path: inset(0);
	/* обрезает сам псевдоэлемент по своим границам, не требуя overflow на родителе */
}

.bg-pattern>.container {
	position: relative;
	z-index: 1;
}

/* background-attachment: fixed is unreliable on mobile browsers (notably iOS Safari) — fall back to scroll */
@media (max-width: 1024px) {
	.bg-pattern::before {
		background-attachment: scroll;
	}
}