html {
	font-family: Ubuntu, sans-serif;
	font-weight: 400;
}

*,
*::after,
*::before {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	min-width: 375px;
	/* данная запись min-width: 375px; позволяет пропорционально сужать верстку на устройствах ниже 375px, используется чтоб не задавать @media для устройств ниже 375px ширины  */
	min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin: 0;
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	-o-object-fit: cover;
	object-fit: cover;

	/* object-fit: cover; говорит браузеру: «Сохраняй пропорции! Растяни картинку так, чтобы она полностью закрыла собой блок. Если края не влезают — просто обрежь их». */
}

.container {
	max-width: 1250px;
	margin: 0 auto;
	padding: 0 15px;
}

.text {
	font-weight: 400;
	font-size: 16px;
	line-height: 130%;
	color: #535755;
}

.button {
	display: inline-block;
	font-weight: 500;
	font-size: 15px;
	line-height: 130%;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	padding: 19px 32px;
	background-color: #3596ed;
	-webkit-transition:
		opacity 0.2s,
		background-color 0.2s;
	-o-transition:
		opacity 0.2s,
		background-color 0.2s;
	transition:
		opacity 0.2s,
		background-color 0.2s;
}

.button:hover {
	opacity: 0.8;
}

.button:not(:disabled):active {
	background-color: #2d82cc;
}

.button:disabled {
	opacity: 0.65;
	cursor: default;
}

.section {
	margin-bottom: 140px;
}

.title-large {
	max-width: 596px;
	margin-bottom: 40px;
	font-family: "Oswald", sans-serif;
	font-weight: 600;
	font-size: 48px;
	line-height: 115%;
	text-transform: uppercase;
	color: #2c332f;
}

.title-medium {
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	font-size: 24px;
	line-height: 115%;
	text-transform: uppercase;
	color: #2c332f;
}

.text-sub {
	font-weight: 300;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #858e8a;
}

.decor::before {
	content: "";
	position: absolute;
	z-index: -1;
	height: 48px;
	width: calc(50% - 250px);
	background: url("../images/decor-icon.svg") repeat-x;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 2px solid #3596ed;
	outline-offset: 1px;
}

@media (width <= 992px) {
	.container {
		max-width: 768px;
	}
}

@media (width <= 768px) {
	.container {
		max-width: 576px;
	}

	.title-large {
		font-size: 40px;
		margin-bottom: 30px;
	}

	.home-page .title-large {
		max-width: inherit;
		text-align: center;
	}

	.title-medium {
		font-size: 22px;
	}
}

@media (width <= 576px) {
	.section {
		margin-bottom: 80px;
	}

	.title-large {
		font-size: 32px;
	}

	.title-medium {
		font-size: 18px;
	}
}
/* :focus-visible — это псевдокласс, который показывает рамку фокуса только когда это действительно нужно.
Зачем это придумали?
Была проблема с обычным :focus:
button:focus {
  outline: 2px solid blue;
}
Проблема: Рамка появляется всегда — даже при клике мышью. Это выглядит некрасиво:
Кликнул кнопку → синяя рамка 😒
Нажал Tab → синяя рамка ✅ (это нужно!)
:focus-visible решает это:
Клик мышью → рамки НЕТ ✅
Навигация с клавиатуры (Tab) → рамка ЕСТЬ ✅ */
/* :not(:disabled):active — это комбинация селекторов, которая означает: "Применить стили при клике, НО только если кнопка НЕ заблокирована"
Разбор по частям:
.button:not(:disabled):active
     ↑              ↑
     НЕ disabled    при клике  
:not() — псевдокласс отрицания ("НЕ")
:disabled — заблокированная кнопка
:active — момент клика (пока держишь кнопку) */
