/*
Theme Name: Афтоп: Автосервис
Author URI: aftop.ru
Author: aftop.ru
Version: 2.0
Description: 

Text Domain: aftop.ru
*/

body:has(#wpadminbar) .header__nav.fixed {
  top: 32px;
}

.header__nav.fixed {
  background-color: #00000087;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.get-consultation.md-style-2 .get-consultation__person {
  width: 38.614583vw;
}

.first.md-thanx-page .first__title {
  color: #1c1c1c;
}

.header__download a {
  background: #d43228;
  transition: all 0.15s ease 0s;
}

.header__download a:hover {
  opacity: 0.8;
}

.header__download a span {
  color: #fff;
}

.header__download a img {
  fill: #fff;
  filter: brightness(0) invert(1);
}

.header.md-white-header .header__download a:hover span {
  color: #fff !important;
}

.first__text p {
  color: #1c1c1c;
}

.header {
  background-color: #000000d9 !important;
}

.header.md-white-header .header__download a {
  border-color: rgb(255 255 255 / 50%) !important;
}

.header.md-bg-transparent.md-white-header {
  background: none !important;
}

body.page.main-page {
  background: #212121;
}

body {
  background: #fff;
}

.simple-text.open .simple-text__content {
  -webkit-background-clip: inherit;
  -webkit-text-fill-color: inherit;
  text-fill-color: inherit;
}

.md-main-title {
  color: #1c1c1c;
}

.breadcrumbs__item.active a {
  color: #1c1c1c;
}

.other-reviews {
  color: #1c1c1c;
}

.price {
  color: #1c1c1c;
}

.reviews.md-style-2 .reviews__title {
  color: #1c1c1c;
}

.warranty__bullets {
  color: #1c1c1c;
}

.main-page .partners__title {
  color: #fff;
}

.main-page .services__title {
  color: #fff;
}

.main-page .clients-choose__title {
  color: #fff;
}

.main-page .download-price__title {
  color: #fff;
}

.main-page .clear-talk__title {
  color: #fff;
}

.main-page .get-consultation__title {
  color: #fff;
}

.calc-banner__title {
  color: #fff;
}

.side-banner {
  color: #1c1c1c;
}

.page {
  color: #1c1c1c;
}

.page .header__top {
  color: #fff;
}

/* Общие стили для статьи */
.articles-typical__content,
.portfolio-typical__editor {
  font-size: 16px;
  line-height: 1.7;
  color: #222;
}

/* Заголовки */
.articles-typical__content h2:not(:first-of-type),
.articles-typical__content h3:not(:first-of-type),
.portfolio-typical__editor h2:not(:first-of-type),
.portfolio-typical__editor h3:not(:first-of-type) {
  margin-top: 100px;
  font-weight: 600;
  line-height: 1.3;
  position: relative;
}

.portfolio-typical__editor h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.articles-typical__content h2,
.portfolio-typical__editor h2 {
  border-left: 4px solid #d43228; /* декоративная полоса, можно убрать */
  margin-bottom: 15px;
  padding-left: 10px;
  font-size: 2rem;
  line-height: 2.8rem;
}

.articles-typical__content h3,
.portfolio-typical__editor h3 {
  font-size: 20px;
  color: #333;
}

/* Параграфы */
.articles-typical__content p,
.portfolio-typical__editor p {
  margin-bottom: 18px;
  font-size: 1.25rem;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 1200px) {
  .articles-typical__content .wp-block-columns p,
  .portfolio-typical__editor .wp-block-columns p,
  .articles-typical__content .wp-block-columns p.has-medium-font-size,
  .portfolio-typical__editor .wp-block-columns p.has-medium-font-size {
    font-size: 0.9rem !important;
  }
}

.articles-typical__content .wp-block-columns img,
.portfolio-typical__editor .wp-block-columns img {
  width: 100%;
  height: 300px;
}

/* Списки */
.articles-typical__content ul,
.portfolio-typical__editor ul,
.articles-typical__content ol,
.portfolio-typical__editor ol {
  margin: 15px 0 20px 25px;
  padding: 0;
}

.articles-typical__content li,
.portfolio-typical__editor li {
  margin-bottom: 8px;
  list-style: disc;
  font-size: 1.25rem;
}

.portfolio-typical__description .description-text {
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Дополнительное оформление */
.articles-typical__content em,
.portfolio-typical__editor em {
  color: #555;
  font-style: italic;
}

.articles-typical__content strong,
.portfolio-typical__editor strong {
  font-weight: 600;
  color: #000;
}

/* Серая линия перед каждым заголовком, кроме первого */
.articles-typical__content h2:not(:first-of-type)::before,
.articles-typical__content h3:not(:first-of-type)::before,
.portfolio-typical__editor h2:not(:first-of-type)::before,
.portfolio-typical__editor h3:not(:first-of-type)::before {
  content: "";
  position: absolute;
  top: -48px; /* расстояние от текста заголовка вверх */
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(241, 241, 241); /* серая линия */
}

.wp-block-code {
  background: #fafafa;
  border-left: 4px solid #c00;
  padding: 25px 40px;
  margin: 40px 0;
  border-radius: 10px;
  font-family: "Courier New", monospace;
  font-size: 17px;
  line-height: 1.8;
  color: #222;
  position: relative;
}

.wp-block-code::before {
  content: "Схема:";
  position: absolute;
  top: -12px;
  left: 15px;
  background: #fafafa;
  color: #c00;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 13px;
  padding: 0 6px;
}

.wp-block-code code {
  background: none;
  padding: 0;
  display: block;
  white-space: pre-line;
  text-align: left;
  letter-spacing: 0.5px;
}

.top-margin {
  margin-top: 110px;
}

.article_img {
  margin-top: 40px;
  margin-bottom: 40px;
}

.wp-block-quote {
  position: relative;
  margin: 1.5em 0;
  padding: 1em 1.5em 1em 2em;
  border-left: 4px solid #e63946; /* Цвет линии слева */
  background: #f9f9f9; /* Лёгкий фон */
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
}

.wp-block-quote p {
  margin: 0; /* убираем лишние отступы */
}

.wp-block-quote cite {
  display: block;
  margin-top: 0.8em;
  font-size: 0.9em;
  color: #666;
  text-align: right;
}

.wp-block-quote:before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 3em;
  color: #e63946; /* тот же цвет, что и линия */
  font-family: Georgia, serif;
  line-height: 1;
}

.quiz-final__img img {
  width: 30.9375vw;
}

.company-video__content .video-title {
  color: #fff;
}

#cookie_notification p {
  color: #fff;
}

.header.md-white-header .header__download a span {
  color: #fff;
}

.download-price__title.md-main-title {
  color: #fff;
}

.md-review-popup p {
  color: #1c1c1c;
}

.md-standart-form .form-textarea::placeholder {
  color: #1c1c1c;
}

/* Полупрозрачное затемнение для верхней части шапки */
.header.md-bg-transparent.md-white-header {
  position: relative;
  background: none !important;
  z-index: 10;
}

.header.md-bg-transparent.md-white-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.65) 0%,
    /* тёмное затемнение сверху */ rgba(0, 0, 0, 0.35) 80%,
    /* плавный переход */ rgba(0, 0, 0, 0) 100% /* прозрачный низ */
  );
  pointer-events: none;
  z-index: -1;
}

.header__download {
  display: none;
}

.first__bg img.main-bg {
  position: relative;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.first__title {
  width: 45.770833vw;
  font-weight: 600;
  font-size: 4.385417vw;
  line-height: 5vw;
  letter-spacing: 0.02em;
  margin-bottom: 2.34375vw;
}

.first__bg .second-bg {
  right: 70px;
  top: 150px;
  max-width: unset;
  max-height: unset%;
}

.vacancy__text a {
  color: #d43228;
}

.vacancy__item ul {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.vacancy__item li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #222;
  font-size: 16px;
}

/* Кастомная «пуля» */
.vacancy__item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3vw;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: linear-gradient(135deg, #d43228, #ff7b00);
  box-shadow: 0 0 5px rgba(255, 100, 0, 0.4);
}

@media only screen and (max-width: 768px) {
    .vacancy__item li::before  {
       top: 1.3vw;
    }
}

    

/* Добавим плавное появление */
.vacancy__item li {
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeInList 0.4s ease forwards;
}

.vacancy__item li:nth-child(2) {
  animation-delay: 0.1s;
}
.vacancy__item li:nth-child(3) {
  animation-delay: 0.2s;
}
.vacancy__item li:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes fadeInList {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media only screen and (max-width: 768px) {
  body {
    padding-top: 0;
  }
}

@media only screen and (max-width: 768px) {
  .first__title {
    margin-top: 6vw;
  }
}

.vacancy__item .item-content p {
  font-size: 1em;
  line-height: 1.3em;
}
