@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
img {max-width:100%}
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  line-height: 1.6;
  position: relative;
  z-index: 0;
  width: 100%;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; /* фиксирует задний фон */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/fon.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  filter: grayscale(50%) brightness(90%); /* обесцвечивание и затемнение фонового изображения */
  opacity: 0.5; /* прозрачность наложения */
  z-index: -1; /* позади основного контента */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
a {color:#ec1b28}
a:hover {color:#777; text-decoration:none}
header {
  background-color: #3f47cce3;
  color: #fff;
  padding: 1.2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 6px rgba(0,94,162,0.4);
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
}

nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1.5rem;
}
nav ul {
  text-align:left;
}

nav ul li a {
  color: #e1ecf7;
  text-decoration: none;
  font-weight: 200;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
  font-size:16px;
  line-height:1.2;
}

nav ul li a:hover,
nav ul li a:focus {
  background-color: #014a79;
  color: #fff;
  outline: none;
}

main {
  background: #ffffffbf;
  padding: 2rem 2rem 3rem 2rem;
  margin: 2rem auto !important;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,94,162,0.15);
}

h1, h2, h3 {
  margin-bottom: 0.8rem;
}
h1 {
  color: #ec1b28;
  width:100px;
  padding-bottom: 5px;
  border-bottom: 3px solid #484fc6;
  white-space: nowrap;
}
@media (max-width: 992px) {
	h1 {
	  color: #ec1b28;
	  width:100%;
	  padding-bottom: 5px;
	  border-bottom: 3px solid #484fc6;
	  white-space: normal;
	}
}
form label {
  font-weight: 600;
  color: #004080;
}

form input[type="text"],
form input[type="tel"] {
  width: 100%;
  padding: 0.7rem;
  margin: 0.5rem 0 1.2rem 0;
  border: 2px solid #005ea2;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

form input[type="text"]:focus,
form input[type="tel"]:focus {
  border-color: #014a79;
  outline: none;
}

form button {
  background-color: #eb1c23;
  color: white;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,115,204,0.4);
  transition: background-color 0.3s, transform 0.3s;
}

form button:hover {
  background-color: #005ea2;
  transform: scale(1.05);
}

#form-result {
  margin-top: 1rem;
  font-weight: 600;
}
@media (min-width: 992px) {
	.callback {
		display:block;
		width:70%;
		margin:auto;
	}
	.logo img {
		float:left;
		max-height:130px;
		margin: 2rem 1rem 2rem 0;
	}
}
/* Блоки подробнее */
.announcements {
	text-align:center;
}
.announcement-block {
	display:inline-block;
	vertical-align:top;
	width:28%;
	padding:1rem;
	background: #ffffffbf;
	border-radius:1rem;
	margin:1%;
	background-position:right -20px; background-repeat:no-repeat; background-size: 80% auto;
}
.announcement-block h2 {
	text-align:right;
	margin-top:50%;
	line-height:1.3;
}
@media (max-width: 768px) {
	.announcement-block {
		display:block;
		vertical-align:top;
		width:90%;
		margin:auto;
	}	
}
/* Footer */
footer {
  background-color: #3f47cce3;
  color: #acc4dd;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Адаптивность */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  main {
    padding: 1.5rem 1.5rem 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  header .logo {
    font-size: 1.5rem;
  }
  form button {
    width: 100%;
  }
}
/* Блоки картинок на внутренних страницах */
.intro_img {
	text-align:center;
}
.intro_img img {
		box-shadow:1rem 1rem 2rem #ccc;
		border-radius:1rem;
}
@media (min-width: 768px) {
	.intro_img img {
		display:inline-block;
		width: 42%;
		vertical-align:top;
		margin: 2%;
	}
}
@media (max-width: 768px) {
	.intro_img img {
		display: block;
		width: 82vw;
		margin: 5vh auto;
	}
}
.highlighted-block {
	font-size:1.2rem;
	color:#ec1b28;
	line-height:1.2;
	box-shadow:1rem 1rem 2rem #ccc;
	border-radius:1rem;
	padding:1rem;
	background: #ffffffbf;
}
li::marker {color:#252a7e00;}
address {
	font-size:1.5rem;
	font-style: normal;
}