:root {
  --bg: #3b3c43;
  --text: #e8e9eb;
  --muted: #a9abb0;
  --accent: #ffd166;
  --container: 1400px;
  --footer-padding-vertical: 64px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}
a {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: Roboto, sans-serif;
  background: #fff;
  min-width: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

/* Header */
.header {
  margin: 0;
  padding: 0;
  min-width: 100%;
  max-height: 110px;
  background-color: #fff;
  /* box-shadow: 0px 2px 4px 2px rgba(173, 173, 173, .2); */
}
.header__container {
  max-width: 1340px;
  margin: 0 auto;
  margin-top: 30px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.header_logo_container {
  cursor: pointer;
  margin-right: 32px;
}
.image__logo {
  width: 108px;
  height: 56.75px;
  cursor: pointer;
}
.header_found {
  margin-right: 151px;
}
.found__input {
  width: 250px;
  height: 46.43px;
  border: none;
  border-radius: 32px;
  color: #3b3c43;
  background-color: #e9e9e9;
  padding: 0 20px 0 60px;
  font-size: 16px;
  box-sizing: border-box;
  background-image: url("./img/header/lupa.png");
  background-repeat: no-repeat;
  background-position: 20px center;
  background-size: 24px 24px;
}
.found__input:focus {
  outline: none;
  transition: 0.3s;
  background-color: #f3f3f3;
  box-shadow: 0 0 0 2px #dddddd;
}

.found__input::placeholder {
  color: #444;
}

.header__nav {
  margin-right: 29px;
}

.header__nav_list {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  gap: 46px;
}
.header__nav_item {
  font-size: clamp(14px, 1.04167vw, 50px);
  font-weight: 500;
  cursor: pointer;
  color: #444;
}

.header__nav_item:hover {
  color: #e11f27;
}

.header__menu_icon {
  display: flex;
  justify-content: center;
  align-self: center;
  align-content: center;
  gap: 13px;
}

.header__menu_icon_item {
  width: 35px;
  height: auto;
  cursor: pointer;
  transition: filter 0.1s ease;
}
.header__menu_icon_item_basket {
  width: 38px;
  min-height: auto;
  cursor: pointer;
  transition: filter 0.1s ease;
}
.header__menu_icon_item_prof {
  width: 35px;
  max-height: 34px;
  align-content: center;
  margin: 0 auto;
  align-self: center;
  cursor: pointer;
  transition: filter 0.1s ease;
}
.header__menu_icon_item:hover {
  filter: invert(25%) sepia(95%) saturate(5000%) hue-rotate(350deg);
}
.header__menu_icon_item_prof:hover {
  filter: invert(25%) sepia(95%) saturate(5000%) hue-rotate(350deg);
}
.header__menu_icon_item_basket:hover {
  filter: invert(25%) sepia(95%) saturate(5000%) hue-rotate(350deg);
}

.block_slider {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

.main {
  height: auto;
  max-width: 1340px;
  margin: 0 auto;
  margin-top: 30px;
  padding-left: 20px;
  padding-right: 20px;
}
.block {
  margin: 0 auto;
}

/* Стили для слайдера Новостей*/
.block_slider {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

.slider {
  position: relative;
  width: 100%;
  height: 302px;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 auto;
}

.slider__images {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider__images .image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.slider__images .image.active {
  opacity: 1;
}

.slider-next,
.slider-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 250, 250, 0.5);
  color: black;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.2s ease;
}

.slider-next:hover,
.slider-prev:hover {
  background: rgba(250, 250, 250, 0.9);
  transform: translateY(-50%) scale(1.01);
}

.slider-next {
  right: 15px;
}

.slider-prev {
  left: 15px;
}
.slider-next svg,
.slider-prev svg {
  width: 20px;
  height: 24px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Главный блок */
.hero_container {
  margin: 0 auto;
  margin-top: 38px;
  display: flex;
  flex-direction: row;
  gap: 37px;
}

.hero__link {
  position: relative;
  display: inline-block;
}

.img__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-transform: uppercase;
  color: white;
  font-size: clamp(30px, 1.875vw, 50px);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero__block_1 {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero__block_2 {
  flex: 1;
  width: 100%;
}

.hero__img_item {
  width: 60vw;
  max-width: 866.67px;
  height: auto;
  aspect-ratio: 866.67 / 186.31;
  filter: brightness(70%);
}

.hero__img_item_help {
  width: 25vw;
  max-width: 396px;
  height: auto;
  aspect-ratio: 1 / 1;
  filter: brightness(70%);
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
  .hero_container {
    flex-direction: column;
    gap: 20px;
  }

  .hero__block_1 {
    flex-direction: column;
    align-items: center;
  }

  .hero__block_1 .hero__link {
    width: 100%;
    max-width: 400px;
  }
  .hero__img_item {
    width: 90vw;
    aspect-ratio: 4 / 1;
  }

  .hero__img_item_help {
    width: 100%;
    max-width: 300px;
  }

  .hero__text {
    font-size: 18px;
  }
}
/* О компании */
.hero__about_container {
  margin: 0 auto;
  margin-top: 6.875rem;
}
.about__title {
  margin: 0 auto;
  text-align: center;
  color: #3b3c43;
  font-size: clamp(30px, 1.875vw, 50px);
  margin-bottom: 46px;
}
.about__cards {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 46px;
}
.card__item {
  margin: 0;
  width: 201px;
  min-height: 116px;
  border-radius: 20px;
  box-shadow: 0 0 4px 1px rgba(59, 60, 67, 0.5);
}
.card__text {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  text-align: center;
  padding: 13px 20px 0 20px;
}
.card__text_item {
  margin: 0;
  font-size: clamp(14px, 0.833vw, 25px);
  color: #111;
  font-weight: 200;
}
.card__text_red {
  margin: 0;
  color: #ba1e24;
  font-size: clamp(16px, 1.458vw, 35px);
  font-weight: 500;
}
/* Стили для слайдера О компании */
.block_slider_about {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

.slider_about {
  position: relative;
  width: 100%;
  height: 532px;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 auto;
}

.slider__images_about {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider__images_about .image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.slider__images_about .image.active {
  opacity: 1;
}

/* Youtube and VK */
.block_sliderAndSoc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin: 2rem auto;
}
.block__social {
  display: flex;
  justify-content: space-between;
  width: 61.385%;
  gap: 129px;
}
.youtube__img {
  width: 285px;
  height: 64px;
}
.vk__img {
  width: 384px;
  height: 67px;
}
/* Стили для Fancybox модального окна */
.fancybox__container {
    z-index: 99999;
}

.fancybox__content {
    width: 70% !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
}
.fancybox__iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
}
/* Гарантируем, что кнопка закрытия видна */
.fancybox__button--close {
    opacity: 1 !important;
    visibility: visible !important;
    color: white !important;
    background: rgba(184, 0, 0, 0.9) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    top: 20px !important;
    right: 20px !important;
}

.fancybox__button--close:hover {
    background: #ff0000 !important;
}

/* Убедимся, что иконка закрытия видна */
.fancybox__button--close svg {
    display: block !important;
    filter: invert(1);
    width: 20px !important;
    height: 20px !important;
}

/* Фон модального окна */
.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Адаптивность для видео */
@media (max-width: 1024px) {
    .fancybox__content {
        width: 90vw !important;
        height: 70vh !important;
    }
}

@media (max-width: 768px) {
    .fancybox__content {
        width: 95vw !important;
        height: 60vh !important;
    }
}

@media (max-width: 480px) {
    .fancybox__content {
        width: 98vw !important;
        height: 50vh !important;
        margin: 10px !important;
    }
    
    .fancybox__button--close {
        top: -40px !important;
        right: 0 !important;
        background: rgba(184, 0, 0, 0.9) !important;
    }
}

/* кнопка: Узнать о нас больше */
.about_btn {
  margin: 0 auto;
}
.about_btn_item {
  font-family: Roboto;
  text-transform: uppercase;
  cursor: pointer;
  background-color: #fff;
  color: #3b3c43;
  font-size: clamp(30px, 1.875vw, 50px);
  font-weight: 800;
  line-height: auto;
  padding: 18px 54px 12px 54px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 0 4px 1px rgba(59, 60, 67, 0.5);
}
.about_btn_item:hover {
  color: #e11f27;
  transform: scale(1.03);
  transition: 0.2s;
  box-shadow: 0 0 4px 1px rgba(186, 30, 36, 0.3);
}

/* Схема работы*/
.block__scheme {
  margin: 0 auto;
  margin-top: 6.875rem;
  margin-bottom: 6.875rem;
}
.icon__scheme {
  display: flex;
  width: 100%;
  margin: 0 auto;
  gap: 2rem;
}
.scheme__title {
  margin: 0;
  margin-bottom: 2.875rem;
  text-align: center;
  color: #3b3c43;
  font-size: clamp(30px, 1.875vw, 50px);
}
.card__scheme {
  margin: 0 auto;
  margin-bottom: 31.82px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
}
.arrow {
  width: 116px;
  height: 38px;
  margin: 0 auto;
  align-content: center;
  align-self: center;
}
.img__item_sheme {
  cursor: pointer;
  width: 96px;
  height: auto;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.3, 1), filter 220ms;
  transform-origin: center;
  will-change: transform, opacity;
}
.img__item_sheme:hover {
  transform: scale(1.1);
  transition: 0.3s;
}
/* стартовое состояние (скрыто/опущено) */
.sheme-anim__icon {
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.3, 1), opacity 420ms;
}
/* когда входит в экран */
.sheme-anim__in.sheme-anim__icon {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.sheme-anim__icon.sheme-anim__hover {
  transition-delay: 0.3ms !important;
}
/* (подпрыгивание + лёгкий rotate) */
.sheme-anim__hover {
  transform: translateY(-4px) rotate(-6deg) scale(1.06) !important;
  filter: drop-shadow(0 10px 18px rgba(59, 60, 67, 0.12));
}

/* текст: стартовое состояние */
.sheme-anim__text {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 480ms cubic-bezier(0.2, 0.9, 0.3, 1), opacity 480ms;
  box-shadow: none; /* чтобы не конфликтовать с вашими карточками */
}

/* текст при входе */
.sheme-anim__in.sheme-anim__text {
  transform: translateY(0);
  opacity: 1;
}

/* стрелки пульс и легкое движение */
.sheme-anim__arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: transform 420ms, opacity 420ms;
}
.sheme-anim__in.sheme-anim__arrow {
  opacity: 1;
  transform: translateX(0);
  animation: shema-arrow-pulse 1800ms ease-in-out infinite 600ms;
}
.text__scheme {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 66px;
}
.shema__text {
  margin: 0 auto;
  width: 207px;
  min-height: 87px;
  font-weight: 400;
  color: #111;
  font-size: clamp(14px, 0.937vw, 25px);
  text-align: center;
  align-content: center;
  padding: 13px 10px 11px 10px;
  border-radius: 20px;
  box-shadow: 0 0 4px 1px rgba(59, 60, 67, 0.5);
}
/* FOOTER */
footer.site-footer {
  background: var(--bg);
  color: var(--text);
  padding: var(--footer-padding-vertical) 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  min-height: 400px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 52px;
  align-items: start;
}

/* logo / about */
.footer-brand {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.logo {
  width: 126px;
  height: 76px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
  flex: 0 0 76px;
}
.brand-text h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
}
.brand-text p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* links */
.footer-col h4 {
  margin: 0 0 14px 0;
  font-size: 20px;
}
.menu_hero {
  cursor: pointer;
}
.menu_hero:hover {
  color: #b80000;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links .link_item {
  color: var(--muted);
  font-size: 18px;
}
.footer-links .link_item:hover {
  color: var(--text);
  text-decoration: none;
  color: #b80000;
}

/* contact block */
.contact .phone {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}
.contact .phone:hover {
  color: #b80000;
  transition: 0.2s;
}
.contact p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 14px;
}
.contact .email:hover {
  color: #b80000;
  transition: 0.2s;
}
.contact .email {
  cursor: pointer;
}
/* Форма подписки */
.newsletter form {
  display: flex;
  gap: 8px;
}
.newsletter input[type="email"] {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.newsletter button {
  background: var(--accent);
  color: #111;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Нижняя линия */
.footer-bottom {
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 10px;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.soc_icon {
  width: 40px;
  height: auto;
}

.soc_whatsApp_icon {
  width: 35px;
  height: auto;
}

.reviews {
  margin: 0 auto;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 100px;
}
.review_item:hover {
  cursor: pointer;
}

.socials {
  margin-top: 1rem;
  display: flex;
  gap: 30px;
  align-items: center;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.socials svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: var(--text);
}
.political:hover {
  cursor: pointer;
}
/* back-to-top */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.18s ease, opacity 0.18s ease;
  z-index: 1200;
}
.back-to-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}
@media (max-width: 640px) {
  :root {
    --footer-padding-vertical: 48px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .newsletter form {
    flex-direction: column;
  }
  .newsletter button {
    width: 100%;
  }
  .footer-links {
    display: block;
  }
  .footer-col .col-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  .footer-links ul {
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
  }
  .footer-links.open ul {
    max-height: 400px;
  }
}

.muted {
  color: var(--muted);
}

@keyframes shema-arrow-pulse {
  0% {
    transform: translateX(0) scaleX(1);
    opacity: 1;
  }
  50% {
    transform: translateX(6px) scaleX(1.02);
    opacity: 0.85;
  }
  100% {
    transform: translateX(0) scaleX(1);
    opacity: 1;
  }
}

/* адаптив: колонки вместо строки на мобилках */
@media (max-width: 860px) {
  .card__scheme {
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
  }
  .text__scheme {
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
  }
  .shema__text {
    width: calc(50% - 20px);
  }
}
