/* ======================  
   CSS RESET (EnerTech)  
   ====================== */

/* Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Remove default margin, padding, and font styles */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
dl,
figure,
blockquote,
fieldset,
legend,
pre,
iframe,
hr {
	margin: 0;
	padding: 0;
	font-weight: inherit;
	font-size: inherit;
}

/* Remove list styles (bullets/numbers) */
ol,
ul {
	list-style: none;
}

/* Remove default hyperlink styles */
a {
	text-decoration: none;
	color: inherit;
}

/* Remove table spacing */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Reset form elements */
button,
input,
select,
textarea {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	outline: none;
}

/* Make images and embedded objects responsive */


/* Remove default button styling */
button {
	cursor: pointer;
	background: transparent;
}

/* Remove outline for accessibility (заменяем на свой стиль) */
:focus {
	outline: 2px solid var(--accent-color);
	outline-offset: 2px;
}

/* Smooth scrolling for HTML (если не используется JS-скролл) */
html {
	scroll-behavior: smooth;
}

/* Убираем стандартные стили для полей ввода в iOS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-radius: 0;
}

/* Убираем крестик в поле поиска IE */
input[type="search"]::-ms-clear {
	display: none;
}

/* Убираем стрелки у input[type="number"] */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Отключаем zoom на iOS при фокусе на input */
@media (max-width: 767px) {

	input,
	textarea {
		font-size: 16px;
	}
}

/* Основные стили WordPress */
.alignleft {
	float: left;
	margin-right: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	margin-bottom: 1.5em;
}

.wp-caption-text {
	font-size: 0.85em;
	text-align: center;
}

/* Галерея WordPress */
.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.gallery-item {
	flex: 1 1 calc(25% - 1rem);
}