/* Блок услуг для дочернего шаблона Cassiopeia. */
.evk-services {
  --evk-yellow: #ffbf00;
  --evk-ink: #111316;
  padding: clamp(32px, 5vw, 64px) 20px;
  color: var(--evk-ink);
  background: #f5f5f5;
}

.evk-services__inner {
  max-width: 1320px;
  margin-inline: auto;
}

.evk-services__eyebrow {
  margin: 0 0 6px;
  color: #b87d00;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.evk-services__title {
  margin: 0 0 22px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.evk-services__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.evk-services__card {
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 24px rgb(0 0 0 / 4%);
}

.evk-services__media {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #303942, #101317);
}

.evk-services__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evk-services__icon {
  position: absolute;
  bottom: -17px;
  left: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--evk-yellow);
  color: #111;
  font-size: 1.35rem;
  line-height: 1;
}

.evk-services__body { padding: 30px 13px 16px; }

.evk-services__card-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.evk-services__text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
}

@media (max-width: 1050px) {
  .evk-services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .evk-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .evk-services__grid { grid-template-columns: 1fr; }
}
/* Первый экран: фотография загружена в /images/home.jpg. */
.evk-hero {
  position: relative;
  display: flex;
  min-height: clamp(430px, 56vw, 680px);
  align-items: center;
  padding: 64px 20px;
  color: #fff;
  background-color: #171b20;
  background-image: linear-gradient(90deg, rgb(9 12 17 / 88%) 0%, rgb(9 12 17 / 65%) 45%, rgb(9 12 17 / 15%) 100%), url('/images/home.jpg');
  background-position: center, center 55%;
  background-size: cover;
}

.evk-hero__inner {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

.evk-hero__content { max-width: 660px; }

.evk-hero__eyebrow {
  margin: 0 0 14px;
  color: #ffbf00;
  font-size: clamp(.9rem, 1.6vw, 1.1rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.evk-hero__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
}

.evk-hero__text {
  max-width: 560px;
  margin: 0;
  color: #f0f0f0;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.6;
}

@media (max-width: 680px) {
  .evk-hero {
    min-height: 520px;
    padding-block: 56px;
    background-image: linear-gradient(90deg, rgb(9 12 17 / 82%), rgb(9 12 17 / 50%)), url('/images/home.jpg');
    background-position: center, 60% center;
  }
}
.evk-hero__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 30px;
  padding: 12px 24px;
  border-radius: 6px;
  background: #ffbf00;
  color: #171b20;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease;
}

.evk-hero__call:hover,
.evk-hero__call:focus-visible {
  background: #ffdc59;
  color: #171b20;
  text-decoration: none;
}

.evk-hero__call:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
/* Название рядом с логотипом только в дочернем шаблоне */
.container-header .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.container-header .brand-logo::after {
  content: "Эвакуатор Камышин";
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.container-header .brand-logo:hover,
.container-header .brand-logo:focus-visible {
  color: #fff;
  text-decoration: none;
}
/* Главная: растягиваем первый экран и услуги до краёв окна.
   Добавить в КОНЕЦ user.css, существующие правила не удалять. */
.evk-hero,
.evk-services {
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* Первый экран в стиле образца: изменения действуют только внутри .evk-hero. */
.evk-hero {
  min-height: clamp(440px, 48vw, 580px);
  padding-block: 42px 44px;
}

.evk-hero__inner { position: relative; }
.evk-hero__content { max-width: 700px; }

.evk-hero__intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: clamp(.8rem, 1.2vw, 1rem);
}
.evk-hero__intro p { margin: 0; }
.evk-hero__247 {
  flex: none;
  padding: 3px 12px;
  border: 1px solid #ffbf00;
  border-radius: 4px;
  color: #ffbf00;
  font-weight: 800;
}
.evk-hero__title {
  margin-bottom: 10px;
  font-size: clamp(2.8rem, 7vw, 6.25rem);
  line-height: .94;
  letter-spacing: -.035em;
}
.evk-hero__title span {
  display: block;
  color: #ffbf00;
}
.evk-hero__text {
  max-width: 620px;
  font-size: clamp(.9rem, 1.25vw, 1.05rem);
  line-height: 1.5;
}
.evk-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.evk-hero__features li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .74rem;
  line-height: 1.3;
}
.evk-hero__feature-icon {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 5px;
  color: #ffbf00;
  font-size: 1.5rem;
  font-weight: 800;
}
.evk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.evk-hero__actions .evk-hero__call { margin-top: 0; }
.evk-hero__services-link {
  display: inline-flex;
  min-height: 52px;
  min-width: 145px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 6px;
  background: rgb(10 13 17 / 45%);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}
.evk-hero__services-link:hover,
.evk-hero__services-link:focus-visible {
  background: rgb(255 255 255 / 18%);
  color: #fff;
}
.evk-hero__phone {
  position: absolute;
  right: 0;
  bottom: -14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgb(255 191 0 / 60%);
  border-radius: 6px;
  background: rgb(9 12 17 / 84%);
  color: #fff;
  text-decoration: none;
}
.evk-hero__phone:hover,
.evk-hero__phone:focus-visible { color: #fff; border-color: #ffbf00; }
.evk-hero__phone-icon { color: #ffbf00; font-size: 2.25rem; line-height: 1; }
.evk-hero__phone strong { display: block; font-size: 1.1rem; white-space: nowrap; }
.evk-hero__phone small { display: block; color: #ffbf00; font-size: .85rem; }

@media (max-width: 860px) {
  .evk-hero__phone { position: static; width: fit-content; margin-top: 24px; }
}
@media (max-width: 680px) {
  .evk-hero { min-height: 0; padding-block: 42px; }
  .evk-hero__title { font-size: clamp(2.45rem, 11vw, 4.5rem); }
  .evk-hero__intro { align-items: flex-start; }
  .evk-hero__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evk-hero__features li { font-size: .68rem; }
  .evk-hero__desktop-break { display: none; }
}
@media (max-width: 380px) {
  .evk-hero__title { font-size: 10vw; }
  .evk-hero__actions > a { width: 100%; }
}
/* Жёлтая вторая строка заголовка первого экрана. */
#evk-hero-title em {
  display: block;
  color: #ffbf00 !important;
  font-style: normal;
}
/* Шапка Cassiopeia: бренд слева, меню в центре, телефон справа. */
header.container-header {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 36px);
  padding: 12px clamp(20px, 3.1vw, 60px);
  background: #0b0e12;
  background-image: none;
}

header.container-header > .grid-child {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

header.container-header > .grid-child:first-child {
  flex: 0 0 auto;
}

header.container-header .container-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1.7vw, 32px);
  min-width: 0;
}

header.container-header .container-nav nav {
  flex: 0 1 auto;
  margin: 0;
}

header.container-header .mod-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(8px, 1.05vw, 20px);
}

header.container-header .mod-menu > li {
  flex: none;
}

header.container-header .mod-menu > li > a {
  padding: 9px 3px;
  color: #fff;
  font-size: clamp(.75rem, .84vw, .95rem);
  white-space: nowrap;
}

header.container-header .mod-menu > li > a:hover,
header.container-header .mod-menu > li > a:focus-visible,
header.container-header .mod-menu > li.active > a,
header.container-header .mod-menu > li.current > a {
  color: #ffbf00;
}

header.container-header .evk-header-phone {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

header.container-header .evk-header-phone:hover,
header.container-header .evk-header-phone:focus-visible {
  color: #ffbf00;
}

header.container-header .evk-header-phone__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 5px;
  background: #ffbf00;
  color: #0b0e12;
  font-size: 1.45rem;
  line-height: 1;
}

header.container-header .evk-header-phone__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

header.container-header .evk-header-phone__info strong {
  color: #fff;
  font-size: clamp(.8rem, 1vw, 1.05rem);
}

header.container-header .evk-header-phone__info small {
  color: #ffbf00;
  font-size: .75rem;
}

/* Если ширины недостаточно, меню переходит под логотип и телефон. */
@media (max-width: 1250px) {
  header.container-header {
    flex-wrap: wrap;
  }
  header.container-header .container-nav {
    flex-wrap: wrap;
  }
  header.container-header .mod-menu {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  header.container-header {
    padding: 12px 20px;
  }
  header.container-header .container-nav {
    flex: 1 1 100%;
  }
  header.container-header .container-nav nav {
    flex: 1 1 100%;
  }
  header.container-header .evk-header-phone {
    margin-top: 6px;
  }
}
/* Более компактная шапка; остальные страницы и блоки не меняем. */
header.container-header {
  padding-top: 5px;
  padding-bottom: 5px;
}

header.container-header .site-description {
  margin-top: 2px;
  margin-bottom: 0;
  line-height: 1.2;
}
/* Только модуль первого экрана в позиции top-a. */
.site-grid > .container-top-a > .top-a.card {
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-grid > .container-top-a > .top-a.card > .card-body {
  padding: 0;
}
/* Только главная (itemid-102): фото начинается за шапкой. */
body.itemid-102 header.container-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 12, .94) 0%,
    rgba(5, 8, 12, .76) 55%,
    rgba(5, 8, 12, -28.88) 100%
  );
}

/* Компенсируем высоту шапки: текст первого экрана остаётся ниже меню. */
body.itemid-102 .evk-hero__inner {
  padding-top: 90px;
}

@media (max-width: 760px) {
  /* На телефоне меню может стать выше: не перекрываем первый экран. */
  body.itemid-102 header.container-header {
    position: relative;
    background: #0b0e12;
  }
  body.itemid-102 .evk-hero__inner {
    padding-top: 0;
  }
}
/* Убираем оформление обёртки Joomla у модуля услуг (позиция top-b). */
body.itemid-102 .site-grid > .container-top-b > .top-b.card {
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.itemid-102 .site-grid > .container-top-b > .top-b.card > .card-body {
  padding: 0;
}
/* Номер и подпись в правой нижней плашке баннера. */
.evk-hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
}

.evk-hero__phone-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: nowrap;
}

.evk-hero__phone .evk-hero__phone-copy strong {
  color: #fff;
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 800;
  line-height: 1.15;
}

.evk-hero__phone .evk-hero__phone-copy small {
  color: #ffbf00;
  font-size: clamp(13px, 1vw, 17px);
  line-height: 1.25;
}

@media (max-width: 480px) {
  .evk-hero__phone {
    gap: 8px;
    padding: 10px;
  }
  .evk-hero__phone .evk-hero__phone-copy strong {
    font-size: 17px;
  }
  .evk-hero__phone .evk-hero__phone-copy small {
    font-size: 12px;
  }
}
/* Название рядом с логотипом выводится через CSS, а не из HTML. */
header.container-header .navbar-brand .brand-logo {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
}

header.container-header .navbar-brand .brand-logo img {
  order: 1;
}

header.container-header .navbar-brand .brand-logo::after {
  content: "Эвакуатор";
  order: 2;
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

header.container-header .navbar-brand .brand-logo::before {
  content: "Камышин";
  order: 3;
  margin-left: -0.4em;
  color: #ffbf00;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
/* Сдвигаем подпись под начало названия, не трогая логотип и меню. */
header.container-header .navbar-brand .site-description {
  margin-left: 74px; /* 62 px ширина логотипа + 12 px расстояние до названия */
  margin-top: -12px; /* сдвиг выше к лого */
}
/* Одинаковые жёлтые круги и ограничение размера SVG в карточках услуг. */
.evk-services .evk-services__icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 9px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}

.evk-services .evk-services__icon img {
  display: block;
  width: 26px;
  height: 26px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}
/* Два полноширинных модуля без стандартной карточки Joomla. */
body.itemid-102 .site-grid > .container-bottom-a,
body.itemid-102 .site-grid > .container-bottom-b {
  grid-column: 1 / -1;
  min-width: 0;
}
body.itemid-102 .container-bottom-a > .card,
body.itemid-102 .container-bottom-b > .card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
body.itemid-102 .container-bottom-a > .card > .card-body,
body.itemid-102 .container-bottom-b > .card > .card-body {
  padding: 0;
}

.evk-how, .evk-why { box-sizing: border-box; width: 100%; }
.evk-how *, .evk-why * { box-sizing: border-box; }
.evk-how__inner, .evk-why__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Четыре шага на тёмном фоне. */
.evk-how { background: #101113; color: #fff; padding: 25px 0 28px; }
.evk-how__title, .evk-why__title {
  margin: 0 0 16px;
  color: #ffbf00;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}
.evk-how__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.evk-how__step { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; }
.evk-how__step:not(:last-child)::after {
  content: '➜';
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffbf00;
  font-size: 24px;
  line-height: 1;
}
.evk-how__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border: 1px solid #a87900;
  border-radius: 50%;
}
.evk-how__icon img { display: block; width: 38px; height: 38px; object-fit: contain; }
.evk-how__info { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.evk-how__number {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #ffbf00;
  color: #101113;
  font-weight: 800;
}
.evk-how__info h3 { margin: 2px 0 5px; color: #fff; font-size: 14px; font-weight: 700; }
.evk-how__info p { margin: 0; color: #dedede; font-size: 13px; line-height: 1.45; }

/* Преимущества на светлом фоне. */
.evk-why { background: #f5f5f5; padding: 24px 0 34px; }
.evk-why__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.evk-why__item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.evk-why__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffbf00;
  color: #101113;
  overflow: hidden;
}
.evk-why__icon img { display: block; width: 26px; height: 26px; object-fit: contain; }
.evk-why__icon--text { font-size: 19px; font-weight: 900; }
.evk-why__item h3 { margin: 0 0 4px; color: #111; font-size: 15px; font-weight: 700; line-height: 1.25; }
.evk-why__item p { margin: 0; color: #444; font-size: 13px; line-height: 1.4; }

@media (max-width: 1100px) {
  .evk-how__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .evk-how__step:nth-child(2)::after { content: none; }
  .evk-why__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .evk-how__list, .evk-why__list { grid-template-columns: 1fr; }
  .evk-how__step::after { display: none; }
  .evk-how__icon { flex-basis: 58px; width: 58px; height: 58px; }
  .evk-how__icon img { width: 30px; height: 30px; }
  .evk-why__item { align-items: flex-start; }
}
/* Информационный текст после преимуществ. */
.evk-bottom-text { background: #f5f5f5; color: #161616; padding: 12px 0 28px; }
.evk-bottom-text__inner { max-width: 1320px; margin: 0 auto; padding: 22px 20px 0; border-top: 1px solid #ddd; }
.evk-bottom-text h2 { margin: 0 0 12px; color: #161616; font-size: 20px; line-height: 1.35; font-weight: 750; }
.evk-bottom-text p { margin: 0 0 10px; max-width: 1000px; font-size: 14px; line-height: 1.65; }
.evk-bottom-text a { color: #8a6500; text-decoration: underline; }

/* Снимаем ограничение ширины и внутренние отступы стандартного футера Cassiopeia. */
.container-footer.footer { background: #101113; padding: 0; color: #fff; }
.container-footer.footer > .grid-child { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }

.evk-footer { width: 100%; background: #101113; color: #fff; }
.evk-footer, .evk-footer * { box-sizing: border-box; }
.evk-footer__inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.evk-footer__main { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 42px; padding: 32px 0 30px; }
.evk-footer__main > * + * { border-left: 1px solid #303033; padding-left: 36px; }
.evk-footer__logo { display: flex; align-items: center; gap: 12px; width: fit-content; color: #fff; text-decoration: none; font-size: 25px; font-weight: 800; line-height: 1.08; }
.evk-footer__logo:hover { color: #fff; }
.evk-footer__logo strong { color: #ffbf00; font-weight: 800; }
.evk-footer__logo img { display: block; width: 66px; height: 54px; object-fit: contain; filter: brightness(0) saturate(100%) invert(76%) sepia(88%) saturate(1044%) hue-rotate(357deg) brightness(102%) contrast(104%); }
.evk-footer__slogan { margin: 10px 0 16px; color: #fff; font-size: 13px; }
.evk-footer__about { margin: 0; max-width: 310px; color: #bfbfbf; font-size: 14px; line-height: 1.6; }
.evk-footer h2 { margin: 2px 0 18px; color: #ffbf00; font-size: 14px; font-weight: 800; }
.evk-footer__nav ul { margin: 0; padding: 0; list-style: none; }
.evk-footer__nav li { border-bottom: 1px solid #303033; }
.evk-footer__nav li:last-child { border-bottom: 0; }
.evk-footer__nav a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: #f2f2f2; text-decoration: none; font-size: 14px; }
.evk-footer__nav a:hover, .evk-footer__phone:hover { color: #ffbf00; }
.evk-footer__nav a span { color: #bfbfbf; }
.evk-footer__contact { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #fff; font-size: 14px; }
.evk-footer__round { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #ffbf00; color: #101113; font-size: 24px; font-weight: 700; }
.evk-footer__phone { color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.evk-footer__contact small { display: block; margin-top: 3px; color: #c5c5c5; font-size: 12px; }
.evk-footer__button { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; max-width: 300px; padding: 10px 16px; border-radius: 7px; background: #ffbf00; color: #111; font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.evk-footer__button:hover { background: #ffd15a; color: #111; }
.evk-footer__button span { font-size: 22px; line-height: 1; }
.evk-footer__bottom { border-top: 1px solid #303033; padding: 17px 0; color: #ababab; font-size: 12px; }

/* Модуль с текстом ставится в bottom-b после модуля преимуществ. */
body.itemid-102 .container-bottom-b > .card { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body.itemid-102 .container-bottom-b > .card > .card-body { padding: 0; }

@media (max-width: 900px) {
  .evk-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .evk-footer__contacts { grid-column: 1 / -1; }
  .evk-footer__main > .evk-footer__contacts { border-left: 0; border-top: 1px solid #303033; padding: 24px 0 0; }
}
@media (max-width: 600px) {
  .evk-footer__main { grid-template-columns: 1fr; gap: 20px; }
  .evk-footer__contacts { grid-column: auto; }
  .evk-footer__main > * + *, .evk-footer__main > .evk-footer__contacts { border-left: 0; border-top: 1px solid #303033; padding: 20px 0 0; }
  .evk-footer__logo { font-size: 21px; }
  .evk-footer__phone { font-size: 16px; }
  .evk-bottom-text h2 { font-size: 18px; }
}
.evk-footer__socials {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}
.evk-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #ffbf00;
  text-decoration: none;
  transition: background-color .2s ease;
}
.evk-footer__socials a:hover,
.evk-footer__socials a:focus-visible {
  background: #ffd15a;
}
.evk-footer__socials a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.evk-footer__socials img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.evk-footer__socials a:nth-child(2) img {
  filter: brightness(0);
}

.evk-footer__bottom--legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.evk-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.evk-footer__legal-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .evk-footer__bottom--legal {
    flex-direction: column;
    align-items: flex-start;
  }
  .evk-footer__legal {
    flex-direction: column;
  }
}
.evk-footer__bottom--legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.evk-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.evk-footer__legal-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 640px) {
  .evk-footer__bottom--legal {
    flex-direction: column;
    align-items: flex-start;
  }
  .evk-footer__legal {
    flex-direction: column;
  }
}
/* Размер логотипа в шапке. */
header.container-header .navbar-brand img,
header.container-header .navbar-brand > img {
  width: 74px !important;
  height: auto !important;
  max-width: 74px !important;
  max-height: 60px !important;
  object-fit: contain;
}

@media (max-width: 600px) {
  header.container-header .navbar-brand img {
    width: 56px !important;
    max-height: 46px !important;
  }
}
/* На главной странице нижние блоки располагаются вертикально */
body.itemid-ИД_ГЛАВНОЙ .site-grid {
  display: flex;
  flex-direction: column;
}

/* Материал занимает всю ширину */
body.itemid-ИД_ГЛАВНОЙ .com-content,
body.itemid-ИД_ГЛАВНОЙ .component-area {
  width: 100%;
  max-width: 100%;
  order: 20;
}
/* Модули bottom-b располагаем друг под другом */
.container-bottom-b {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

/* Каждый модуль bottom-b занимает всю ширину */
.container-bottom-b > * {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Материал идёт после блока "Почему выбирают нас" */
.container-bottom-b > *:last-child {
  margin-top: 0 !important;
}
/* Тёмные карточки услуг на странице «Наши услуги» */
body.itemid-103 .evk-services__card {
  background: #101214 !important;
  color: #fff !important;
  border: 1px solid #626262 !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Тёмная нижняя часть карточки */
body.itemid-103 .evk-services__body {
  background: #101214 !important;
  color: #fff !important;
}

/* Заголовок карточки */
body.itemid-103 .evk-services__card-title {
  color: #fff !important;
}

/* Текст карточки */
body.itemid-103 .evk-services__text {
  color: #e5e5e5 !important;
}

/* Эффект при наведении */
body.itemid-103 .evk-services__card:hover {
  border-color: #ffbf00 !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(255, 191, 0, 0.2);
}

/* Жёлтый круг с иконкой */
body.itemid-103 .evk-services__icon {
  background: #ffbf00 !important;
  border-color: #ffbf00 !important;
}

/* Общая прозрачная шапка поверх баннера на всех страницах */
.container-header {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.35) !important;
  box-shadow: none !important;
}

/* Убираем фон внутренних блоков шапки */
.container-header .grid-child,
.container-header header,
.container-header .header {
  background: transparent !important;
}

/* Меню, логотип и телефон находятся поверх изображения */
.container-header a,
.container-header .mod-menu,
.container-header .navbar,
.container-header .container-nav {
  position: relative;
  z-index: 1001;
}

/* Контент начинается сверху, без отступа под шапку */
.container-header + .site-grid,
.container-header + main {
  margin-top: 0 !important;
}

/* Баннеры занимают верхнюю часть страницы */
.container-banner,
.evk-hero,
.hero,
.banner {
  margin-top: 0 !important;
}
/* Оставляем место под прозрачной шапкой */
.container-banner,
.evk-hero,
.hero,
.banner {
  padding-top: 105px !important;
  box-sizing: border-box;
}

/* Одинаковая высота большого баннера на всех страницах */
.evk-hero,
.container-banner,
.hero {
  min-height: 680px !important;
  box-sizing: border-box;
  background-size: cover !important;
  background-position: center center !important;
}
/* Убираем пустую область основного компонента на странице услуг */
body.itemid-103 .component-area,
body.itemid-103 main.com-content {
  display: none !important;
}

/* Убираем заголовок страницы «Услуги» */
body.itemid-103 .page-header {
  display: none !important;
}
body.itemid-103 .com-content {
  display: none !important;
}
/* Убираем фон и рамку внешней карточки вокруг модуля услуг */
body.itemid-103 .container-top-b,
body.itemid-103 .container-top-b > .top-b.card,
body.itemid-103 .container-top-b > .top-b.card > .card-body {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Убираем пустые внутренние отступы */
body.itemid-103 .container-top-b > .top-b.card,
body.itemid-103 .container-top-b > .top-b.card > .card-body {
  padding: 0 !important;
  margin: 0 !important;
}

/* Сам модуль остаётся без лишнего фона */
body.itemid-103 #mod-custom118 {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Сетка модулей страницы «Контакты» */
.container-top-b:has(#mod-custom120) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* Убираем стандартную обёртку Joomla */
.container-top-b:has(#mod-custom120) > .top-b.card {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Тёмные карточки модулей */
.container-top-b:has(#mod-custom120) > .top-b.card > .card-body {
  height: 100%;
  padding: 22px !important;
  background: #101214 !important;
  border: 1px solid #3d444b !important;
  border-radius: 12px !important;
  color: #f5f5f5;
}

/* Заголовки модулей */
.container-top-b:has(#mod-custom120) h2 {
  margin: 0 0 18px;
  color: #ffbd00;
  font-size: 25px;
  line-height: 1.15;
}

/* Контактная информация и форма — два столбца */
.container-top-b:has(#mod-custom120) > .top-b.card:nth-child(1),
.container-top-b:has(#mod-custom120) > .top-b.card:nth-child(2) {
  grid-column: span 1;
}

/* Соцсети, менеджеры и телефон — на всю ширину */
.container-top-b:has(#mod-custom120) > .top-b.card:nth-child(3),
.container-top-b:has(#mod-custom120) > .top-b.card:nth-child(4),
.container-top-b:has(#mod-custom120) > .top-b.card:nth-child(5) {
  grid-column: 1 / -1;
}

/* Поля формы */
.container-top-b:has(#mod-custom120) input,
.container-top-b:has(#mod-custom120) textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0 14px;
  padding: 12px;
  color: #fff;
  background: #191d21;
  border: 1px solid #687078;
  border-radius: 7px;
}

.container-top-b:has(#mod-custom120) label {
  color: #ddd;
}

/* Ссылки */
.container-top-b:has(#mod-custom120) a {
  color: #fff;
}

.container-top-b:has(#mod-custom120) a:hover {
  color: #ffbd00;
}

/* На телефоне — одна колонка */
@media (max-width: 800px) {
  .container-top-b:has(#mod-custom120) {
    grid-template-columns: 1fr;
  }

  .container-top-b:has(#mod-custom120) > .top-b.card {
    grid-column: 1 / -1 !important;
  }
}
/* Общий фон страницы контактов */
body:has(#mod-custom120) {
  background: #0d0f11 !important;
}

body:has(#mod-custom120) .site-grid {
  background: #0d0f11 !important;
}

/* Убираем белые промежутки вокруг модулей */
body:has(#mod-custom120) .container-top-b {
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 28px 20px 40px !important;
  background: transparent !important;
}

/* Карточки контактов */
body:has(#mod-custom120) .container-top-b > .top-b.card > .card-body {
  min-height: 250px;
  padding: 24px !important;
  background: #111315 !important;
  border: 1px solid #3f464d !important;
  border-radius: 12px !important;
  color: #f4f4f4 !important;
}

/* Верхние две карточки */
body:has(#mod-custom120) > .top-b.card:nth-child(1),
body:has(#mod-custom120) > .top-b.card:nth-child(2) {
  min-height: 360px;
}

/* Заголовки */
body:has(#mod-custom120) .container-top-b h2 {
  margin: 0 0 22px !important;
  color: #ffbd00 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

/* Телефон и почта */
body:has(#mod-custom120) .evk-contact-phone {
  display: block;
  margin: 14px 0 8px;
  color: #fff !important;
  font-size: 40px;
  font-weight: 800;
  text-decoration: none;
}

body:has(#mod-custom120) .evk-contact-email {
  margin: 24px 0;
  font-size: 17px;
}

body:has(#mod-custom120) .evk-contact-email a {
  color: #fff !important;
}

/* Кнопки */
body:has(#mod-custom120) .evk-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body:has(#mod-custom120) .evk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
  box-sizing: border-box;
}

body:has(#mod-custom120) .evk-button--yellow {
  color: #111 !important;
  background: #ffbd00 !important;
  border: 1px solid #ffbd00 !important;
}

body:has(#mod-custom120) .evk-button--outline {
  color: #fff !important;
  background: transparent !important;
  border: 1px solid #aaa !important;
}

/* Поля формы */
body:has(#mod-custom120) .evk-contact-form form {
  max-width: 100%;
}

body:has(#mod-custom120) .evk-contact-form input,
body:has(#mod-custom120) .evk-contact-form textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 7px 0 16px;
  padding: 12px 14px;
  box-sizing: border-box;
  color: #fff !important;
  background: #1b1f23 !important;
  border: 1px solid #606870 !important;
  border-radius: 7px;
}

body:has(#mod-custom120) .evk-contact-form textarea {
  min-height: 105px;
}

body:has(#mod-custom120) .evk-contact-form button {
  width: 100%;
}

/* Социальные сети */
body:has(#mod-custom120) .evk-social__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

body:has(#mod-custom120) .evk-social__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 15px 8px;
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid #565d63;
  border-radius: 9px;
}

body:has(#mod-custom120) .evk-social__item span {
  color: #ffbd00;
  font-size: 27px;
  font-weight: 800;
}

body:has(#mod-custom120) .evk-social__item small {
  color: #ccc;
}

/* Менеджеры */
body:has(#mod-custom120) .evk-managers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

body:has(#mod-custom120) .evk-manager {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #565d63;
  border-radius: 9px;
}

body:has(#mod-custom120) .evk-manager__avatar {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  color: #ffbd00;
  font-size: 35px;
  border: 2px solid #ffbd00;
  border-radius: 50%;
}

body:has(#mod-custom120) .evk-manager strong,
body:has(#mod-custom120) .evk-manager small {
  display: block;
}

body:has(#mod-custom120) .evk-manager small {
  margin-top: 7px;
  color: #ffbd00;
}

/* Большой телефонный блок */
body:has(#mod-custom120) .evk-contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

body:has(#mod-custom120) .evk-contact-cta strong {
  display: block;
  font-size: 28px;
}

body:has(#mod-custom120) .evk-contact-cta small {
  display: block;
  margin-top: 7px;
  color: #ffbd00;
}

/* Убираем заголовок «Контакты» снизу */
body:has(#mod-custom120) .container-component .page-header,
body:has(#mod-custom120) .container-component h1 {
  display: none !important;
}

/* Мобильная версия */
@media (max-width: 700px) {
  body:has(#mod-custom120) .container-top-b {
    grid-template-columns: 1fr !important;
  }

  body:has(#mod-custom120) .evk-social__grid,
  body:has(#mod-custom120) .evk-managers__grid {
    grid-template-columns: 1fr 1fr;
  }

  body:has(#mod-custom120) .evk-contact-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Модуль Контакты первый */
.evk-contact-info {
  color: #fff;
}

.evk-contact-info h2 {
  margin: 0 0 24px;
  color: #ffbd00;
  font-size: 28px;
  line-height: 1.2;
}

.evk-contact-phone-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.evk-contact-icon--phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  background: #ffbd00;
  border-radius: 50%;
}

.evk-contact-icon--phone img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.evk-contact-phone {
  color: #fff !important;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  white-space: nowrap;
}

.evk-contact-note {
  margin: 8px 0 26px 80px;
  color: #ffbd00;
  font-size: 17px;
  font-weight: 700;
}

.evk-contact-email-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid #5b6167;
}

.evk-contact-email-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.evk-contact-email-row a {
  color: #fff !important;
  font-size: 17px;
  text-decoration: none;
}

.evk-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.evk-contact-actions .evk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
}

.evk-contact-actions .evk-button img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-right: 8px;
  object-fit: contain;
}

.evk-contact-actions .evk-button--yellow {
  color: #111 !important;
  background: #ffbd00;
}

.evk-contact-actions .evk-button--outline {
  color: #fff !important;
  border: 1px solid #aaa;
}

@media (max-width: 600px) {
  .evk-contact-phone {
    font-size: 22px;
  }

  .evk-contact-note {
    margin-left: 0;
  }

  .evk-contact-email-row a {
    font-size: 14px;
  }
}
/* Форма заявки в Контактах  */
.evk-application-form {
  color: #fff;
}

.evk-application-form h2 {
  margin: 0 0 24px;
  color: #ffbd00;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.evk-application-form label {
  display: block;
  margin: 0 0 7px;
  color: #f5f5f5;
  font-size: 16px;
}

.evk-application-form input,
.evk-application-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 13px 14px;
  color: #fff;
  background: #171b1f;
  border: 1px solid #687078;
  border-radius: 7px;
  font: inherit;
}

.evk-application-form input {
  height: 47px;
}

.evk-application-form textarea {
  min-height: 105px;
  resize: vertical;
}

.evk-application-form input::placeholder,
.evk-application-form textarea::placeholder {
  color: #92979c;
}

.evk-application-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 12px 18px;
  color: #111;
  background: #ffbd00;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.evk-application-submit img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0);
}

.evk-application-consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
  color: #aeb3b8;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.evk-application-consent-icon {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 32px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .evk-application-form h2 {
    font-size: 24px;
  }
}
/* Конпка социальные сети в Контактах */
.evk-social {
  width: 100%;
  color: #fff;
}

.evk-social h2 {
  margin: 0 0 24px;
  color: #ffbd00;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}

.evk-social__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.evk-social__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
}

.evk-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  background: #ffbd00;
  border: 0;
  border-radius: 50%;
}

.evk-social__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
}

.evk-social__item strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 16px;
}

.evk-social__item small {
  color: #ddd;
  font-size: 15px;
  line-height: 1.25;
}

.evk-social__item:hover .evk-social__icon,
.evk-social__item:focus-visible .evk-social__icon {
  background: #ffbd00;
}

@media (max-width: 600px) {
  .evk-social__icon {
    width: 72px;
    height: 72px;
  }

  .evk-social__icon img {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .evk-social__grid {
    grid-template-columns: 1fr;
  }
}
