.faq-item{
  margin-bottom: 20px;
}
.custom-text-after-props a.active{
    background: #ed2125;
    color: white;
    border: 1px solid #ed2125;
}
.top-category-links a{
    margin: 0 4px;
    border: 1px solid #555555;
    padding: 2px 6px;
    border-radius: 16px;
    font-size: 15px;
    color: #555555;
}

.top-category-links a:hover,
.top-category-links a.active-link{
    color: #fff;
    background-color: #ED2125;
    border: 1px solid #ED2125;
}

.top-category-links span{
    color: #ED2125;
    font-weight: 400;
}

@media screen and (max-width:768px){

	.top-category-links{
	    display: flex;
	    flex-wrap: wrap;
	    margin-bottom: 16px;
	    justify-content: center;
	}

	.top-category-links span{
	    width: 100%;
	    margin-bottom: 4px;
	}

	.top-category-links a{
	    margin-bottom: 4px;
	}

}


.o-nas-logo{
	display: flex;
}

.o-nas-logo img{
	max-width: 50%;
}

.o-nas-images{
	display: flex;
	justify-content: space-around;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.o-nas-images img{
	max-width: 30%;
	margin-bottom: 4px;
}


@media screen and (max-width:900px){
	.o-nas-logo{
		flex-wrap: wrap;
	    justify-content: center;
	}
}





.services-logo{
	display: flex;
}

.services-logo img{
	max-width: 30%;
}

.services-images{
	display: flex;
	justify-content: space-around;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.services-images img{
	max-width: 30%;
	margin-bottom: 4px;
}

.services-tabs-wrap{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.services-tab{
	width: 49%;
	box-shadow: 0px 4px 4px 0px #00000040;
	padding: 8px;
	margin-bottom: 16px;
}

.services-tab-header{
	font-weight: bold;
}


@media screen and (max-width:900px){
	.services-logo{
		flex-wrap: wrap;
	    justify-content: center;
	}
}

@media screen and (max-width:768px){

	.services-images img{
		max-width: 90%;
	}

	.services-logo img{
		max-width: 50%;
	}

	ul li{
		text-align: left;
	}


	.services-tab{
		width: 100%;
		margin-bottom: 32px;
	}
}

.steps-wrap .step{
	margin-top: 12px;
}

.steps-wrap .step{
	width: 100%;
	display: flex;
	margin-bottom: 16px;
	align-items: start;
}

.steps-wrap .step .number{
    border: 5px solid #FF0000;
    border-radius: 26px;
    padding: 4px 12px;
    margin-right: 12px;
    font-weight: bold;
    font-size: 24px;
}


.steps-wrap .step .step-text-wrap{
	padding-top: 12px;
}



.steps-wrap .step .step-text-wrap .step-header{
	font-weight: bold;
}

.service-form-wrap{
	width: 100%;
	background: linear-gradient(90deg, #FF5C5C 0%, #EF6C6C 33.59%, rgba(255, 80, 16, 0) 100%);
	padding: 24px 40px 12px 40px;
	border-radius: 10px;
}


.service-form-wrap .service-form-header{
	font-weight: 500;
	font-size: 24px;
	line-height: 32.86px;
	color: #FFFFFF;
}

.service-form-wrap .service-form-text{
	font-weight: 400;
	font-size: 18px;
	line-height: 21px;
	color: #FFFFFF;
}

.service-form-wrap input[name="your-name"]{
	border-radius: 10px;
	border: none;
	padding: 16px;
	max-width: 320px;
	margin-right: 24px;
}

.service-form-wrap input[name="tel-544"]{
	border-radius: 10px;
	border: none;
	padding: 16px;
	max-width: 320px;
	margin-right: 24px;
}

.service-form-wrap input[type="submit"]{
	border-radius: 10px;
	border: none;
	padding: 16px;
	max-width: 320px;
	background-color: #FF0000;
	color: #fff;
	text-transform: uppercase;
}

.service-form-wrap .free-label{
	border-radius: 10px;
	border: none;
	padding: 4px;
	background-color: #FF0000;
	color: #fff;
	text-transform: uppercase;
}



.service-form-wrap .policy-checkbox{
    margin-top: 8px;
}

.service-form-wrap .policy-checkbox span{
	margin-left: 0;
	color: #fff;
}



.service-form-wrap .wpcf7-spinner,
.service-form-wrap .wpcf7-not-valid-tip{
	display: none;
}


@media screen and (max-width:640px){
	.steps-wrap .step {
	    flex-flow: column;
	    align-items: center;
	}

	.steps-wrap .step .number{
		margin-bottom: 0px;
	}

	.service-form-wrap {
	    padding: 12px 20px 6px 20px;
	}

	.service-form-wrap .service-form-text {
	    font-size: 16px;
	    line-height: 24px;
	}

	.service-form-wrap input[name="your-name"],
	.service-form-wrap input[name="tel-544"] {
	    margin-right: 0px;
	    margin-bottom: 8px;
	}

}





.details {
  position: relative;
  display: block;
  margin: 0 auto 10px;
  background: rgba(255,255,255,0.5);
  border-bottom: 1px solid #000;
  transition: 0.3s;
  overflow: hidden;
}

.details::after {
	position: absolute;
	right: 0px;
	top: 2px;
	content: "";
	display: block;
	width: 41px;
	height: 41px;
	background-image: url(/wp-content/uploads/service/plus.png);
	transform-origin: center;
	transition: .3s;
}

.details[open]::after {
  transform: rotate(-45deg);
}

.details[open] {
  padding-bottom: 100px;
}

.details[open] .details__title {
  margin-bottom: 32px;
}

.details__title {
  background: #fff;
  border-radius: 5px;
  padding: 16px 0px 4px 0px;
  font-size: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  transition: .3s;
}

.details__title::-webkit-details-marker {
  display: none;
}

.details__content {
  padding: 0 32px;
  font-size: 18px;
  margin-bottom: -60px;
}

.details__content p:last-child {
  margin-bottom: 0;
}
.details__content p:first-child {
  margin-top: 0;
}


@media screen and (max-width:768px){
	.details__title {
	  text-align: left;
	  font-size: 16px;
	  padding: 16px 20px 12px 0px;
	}
}

.like_h3{
	margin-bottom: .5rem;
  font-weight: 700;
  line-height: 1.2;
	font-size: 1.75rem;
}

.icons-mainpage-wrap{
display: flex;
    width: 90%;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
}

.icons-mainpage-wrap .icon-mainpage{
    display: flex;
    width: 25%;
    align-items: center;
}

.icons-mainpage-wrap .icon-mainpage img{
	display: flex;
}

.icons-mainpage-wrap .icon-mainpage p{
    max-width: 160px;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: #000;
}


.categories-mainpage-wrap{
    display: flex;
    width: 100%;
    justify-content: space-around;
    flex-flow: wrap;
}

.categories-mainpage-wrap .category-mainpage{
    display: flex;
    flex-flow: column;
    width: 21%;
    align-items: center;
    box-shadow: 0px 4px 4px 0px #00000040;
    margin-bottom: 16px;
    justify-content: space-around;
}

.categories-mainpage-wrap .category-mainpage img{
	margin-top: 40px;
	display: flex;
	max-width: 200px;
	/*max-height: 175px;*/
}

.categories-mainpage-wrap .category-mainpage a{
  text-align: center;
  max-width: 80%;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  color: #555555;
  margin-bottom: 12px;
  margin-top: 12px;
}

.categories-mainpage-wrap .category-mainpage a:hover{
  color: #ed2125;
  font-weight: bold;
}

.popular-items-header{
	margin-top: 60px;
}


@media screen and (max-width:840px){
	.icons-mainpage-wrap{
	    flex-wrap: wrap;
	}

	.icons-mainpage-wrap .icon-mainpage{
	    width: 50%;
	}

	.categories-mainpage-wrap .category-mainpage {
	    width: 45%;
	}
}

@media screen and (max-width:480px){
	.icons-mainpage-wrap .icon-mainpage{
	    width: 90%;
	}

	.icons-mainpage-wrap .icon-mainpage p{
	    max-width: unset;
	}

	.categories-mainpage-wrap .category-mainpage {
	    width: 90%;
	}
}


@media (min-width: 768px) {
    .main__content {
        padding-bottom: 0px;
    }

	footer.footer {
	    position: relative;
	}
}


.blog-items{
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 24px 0;
}

.blog-items .blog-item{
    width: 30%;
    display: flex;
    flex-flow: column;
    text-align: center;
    border: 1px solid #dc2a1c;
    border-radius: 8px;
}

.blog-items .blog-item img{
    max-width: 100%;
}

@media (min-width: 640px) {
	.blog-items .blog-item{
	    width: 45%;
	}
}

#wpcf7-f107-o3 input[type=checkbox]{
	width: auto;
}

#wpcf7-f99-o1 input[type=checkbox]{
	width: auto;
	min-height: unset;
}

#wpcf7-f108-o1 input[type=checkbox]{
	width: auto;
	min-height: unset;
}

.policy-text .wpcf7-not-valid-tip{
	display: none;
}

.custom-text-after-props {
    margin-top: 12px;
}

.custom-text-after-props a {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #555;
    width: fit-content;
    border-radius: 16px;
    margin-right: 8px;
    margin-top: 4px;
    color: #555;
}

.custom-text-after-props a:hover {
    border: 1px solid #ed2125;
    color: #fff;
    background-color: #ed2125;
}


.warranty-doc-wrapper {
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    font-family: inherit;
    line-height: 1.65;
    color: #2c3e50;
}
.warranty-doc-wrapper h2 {
    font-size: 1.45rem;
    margin-top: 2.2rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ed2125;
    color: #1a252f;
}
.warranty-doc-wrapper p {
    margin-bottom: 1rem;
}
.warranty-doc-wrapper ul {
    margin: 0.8rem 0 1.4rem 0;
    padding-left: 1.8rem;
}
.warranty-doc-wrapper ul li {
    margin-bottom: 0.45rem;
    position: relative;
}
.w-divider {
    border: 0;
    height: 1px;
    background: #e8ecf1;
    margin: 2rem 0;
}
.w-highlight {
    background: #f8fafc;
    border-left: 3px solid #ed2125;
    padding: 0.8rem 1rem;
    font-weight: 500;
    color: #334155;
    margin-top: 1rem;
}
/* Мобильная адаптация */
@media (max-width: 600px) {
    .warranty-doc-wrapper { padding: 1rem 0; }
    .warranty-doc-wrapper h2 { font-size: 1.3rem; }
    .warranty-doc-wrapper ul { padding-left: 1.4rem; }
}

/* Виджет дочерних статей */
.child-posts-widget {
  background: #f5f5f5; /* серый фон */
  padding: 30px 20px 20px;
  border-radius: 12px;
  margin: 30px 0;
}

.child-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.child-post-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.child-post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.child-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.child-post-thumbnail {
  overflow: hidden;
  height: 180px;
  background: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.child-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.child-post-no-image {
  font-size: 48px;
  color: #ccc;
}

.child-post-content {
  padding: 18px 18px 20px;
}

.child-post-title {
  font-size: 18px;
  font-weight: 700;
  color: #8e1416; /* основной красный */
  margin: 0 0 8px;
  line-height: 1.3;
}

.child-post-title:hover {
  color: #ed2125; /* светлый красный при ховере */
}

.child-post-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.child-posts-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.child-posts-all-link {
  display: inline-block;
  padding: 10px 30px;
  background: #8e1416;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.child-posts-all-link:hover {
  background: #ed2125;
  color: #ffffff;
  transform: scale(1.02);
}

/* Адаптивность */
@media (max-width: 992px) {
  .child-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .child-posts-grid {
    grid-template-columns: 1fr;
  }

  .child-posts-widget {
    padding: 20px 15px 15px;
  }
}

.vyazma-full-article {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  color: #333;
  max-width: 1116px; /* Ваша ширина */
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Содержание */
.vyazma-contents {
  background-color: #f9f9f9;
  border-left: 5px solid #ed2125;
  padding: 25px;
  margin-bottom: 40px;
  border-radius: 4px;
}

.vyazma-contents-title {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 15px;
  color: #ed2125;
  text-transform: uppercase;
}

.vyazma-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.vyazma-contents a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
}

.vyazma-contents a:hover {
  color: #ed2125;
  text-decoration: underline;
}

/* Заголовки */
.vyazma-full-article h1 {
  color: #ed2125;
  font-size: 32px;
  border-bottom: 3px solid #ed2125;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.vyazma-full-article h2 {
  color: #1a1a1a;
  font-size: 26px;
  margin-top: 40px;
  scroll-margin-top: 30px;
}

.vyazma-full-article h3 {
  color: #fff;
  background-color: #ed2125;
  padding: 10px 20px;
  border-radius: 4px;
  margin-top: 35px;
  scroll-margin-top: 30px;
}

/* Таблицы с сохранением всей структуры */
.vyazma-full-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px 0;
}

.vyazma-full-table td {
  padding: 15px;
  border: 1px solid #e0e0e0;
  vertical-align: top;
}

.vyazma-full-table tr td:first-child {
  width: 30%;
  font-weight: bold;
  background-color: #fcfcfc;
}

.vyazma-full-table p {
  margin: 0;
  padding: 0;
}

/* Предупреждение */
.vyazma-important-note {
  background-color: #fff5f5;
  border: 1px solid #ed2125;
  padding: 20px;
  border-radius: 6px;
  margin: 25px 0;
}

/* FAQ */
.vyazma-faq-section {
  margin-top: 40px;
  border-top: 2px solid #eee;
  padding-top: 20px;
}

.vyazma-faq-q {
  font-weight: bold;
  color: #ed2125;
  display: block;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .vyazma-full-table tr td:first-child { width: 40%; }
  .vyazma-contents ul { grid-template-columns: 1fr; }
}
.align-center{
  margin: 0px auto;
  display: block;
}