/*!
 * NHOU Europe – Main Stylesheet
 * Version: 1.0.0
 * Description: Core styles for NHOU Europe website, including layout, typography, colors, components, and responsive rules. Designed for consistent visual appearance across all pages.
 * Author: Andrey Sokolov
 */

:root {
  --container-width: 87.4rem;
  --container-width-small: 56rem;
  --container-padding-x: 1.25rem;
  --section-padding-y: clamp(1.875rem, 3.5vw, 3.75rem);
  --border-radius: 0.5rem;
  --border-radius-full: 9999px;
  --button-padding: 1rem 1.5rem;
  --background-color: rgb(255 255 255);
  --dark-grey: #2F2E2E;
  --dark-grey-transparent: rgba(47, 46, 46, 0.9);
  --nhou-red: rgb(217 26 50);
  --nhou-red-rgb: 217, 26, 50;
  --nhou-ring: rgba(0, 0, 0, 0.2);
  --nhou-ring-offset: #fff;
  --nhou--shadows: 0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 6px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.06);
  --transition-duration: 0.3s;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

/* Scroll lock */
body.scroll-lock {
  overflow: hidden;

}



.container {
  max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.container--small {
  --container-width: var(--container-width-small);
}

.section {
  padding-block: var(--section-padding-y);
  padding-inline: var(--container-padding-x);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header p.subtitle {
  max-width: 48rem;
  margin-inline: auto;
}

/* Typography */

.h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
  color: var(--dark-grey);
}

.h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--nhou-dark);
  line-height: 1.25;
}

.h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--nhou-dark);

}

.subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;

}

/* grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}



.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-colums), minmax(0, 1fr));
  gap: var(--card-gap, 1.5rem);
}

/* Grid and Flex utilities */
.align-start {
  align-items: start;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: end;
}

.align-stretch {
  align-items: stretch;
}

.justify-center {
  justify-content: center;
}



/*icons*/
.icons-white {

  color: #ffffff;
}

.icons-nhou-red {
  color: var(--nhou-red);
}

.icon-nhou-dark {
  color: var(--dark-grey);
}

.icon__container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  border-radius: var(--border-radius-full);
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
}

.icon__container--bg {
  background-color: var(--nhou-red);
}

.shadows {
  box-shadow: var(--nhou--shadows);
}

/* buttons */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 3rem;
  padding: 0 2rem;

  font-weight: 500;

  color: #ffffff;

  background-color: var(--nhou-red);


  border-radius: var(--border-radius);

  transition: background-color 0.2s ease, color 0.2s ease;

  cursor: pointer;
  text-decoration: none;
}


/* Hover state */
.primary-button:hover {
  background-color: #b91c1c;
  /* hover:bg-red-700 */
}

/* Focus-visible state */
.primary-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--nhou-ring), 0 0 0 4px var(--nhou-ring-offset, #fff);
}

/* Disabled state */
.primary-button:disabled {
  opacity: 0.5;
  pointer-events: none;
}


/* Стили для вложенного svg */
.button svg {
  pointer-events: none;
  width: 1rem;
  /* size-4 = 16px */
  height: 1rem;
  flex-shrink: 0;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  /* rounded-md */
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  /* font-medium */
  border: 1px solid var(--dark-grey);
  background-color: var(--background, #fff);
  color: var(--nhou-dark);
  padding: 0.5rem 1rem;
  /* py-2 px-4 */
  height: 2.5rem;
  /* h-10 */
  width: 100%;
  transition: background-color 0.3s, color 0.3s;
}

.secondary-button:hover {
  background-color: var(--dark-grey);
  color: #fff;
}

.secondary-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--ring, rgba(0, 0, 0, 0.2)),
    0 0 0 4px var(--ring-offset-background, #fff);
}

.secondary-button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* SVG внутри кнопки */
.secondary-button svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  -webkit-clip-path: inset(100%) !important;
  clip-path: inset(100%) !important;
  clip: rect(0 0 0 0) !important;
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .hidden-mobile:not(footer .hidden-mobile):not(dialog .hidden-mobile) {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .visible-mobile {
    display: none !important;
  }
}

@media (max-width: 1019px) {
  .hidden-tablet:not(footer .hidden-tablet):not(dialog .hidden-tablet) {
    display: none !important;
  }
}

@media (min-width: 1020px) {
  .visible-tablet {
    display: none !important;
  }
}

/* Header */
.header {

  box-shadow: var(--nhou--shadows);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
  background-color: #FFFFFF;
}

.header_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: clamp(1.25rem, 2.63vw, 2.5rem);
  padding-block: 0.625rem;
}

.logo__image {
  display: block;
  object-fit: contain;
  width: 100%;
  max-width: 12.5rem;
  max-height: 5rem;
}

.logo__image[src$=".svg"] {
  width: 100%;
  height: auto;
}

.header__menu-list {
  display: flex;
  align-items: center;
  column-gap: 1.875rem;
  color: var(--nhou-dark);
  font-weight: 400;
}

dialog .header__menu-list {
  flex-direction: column;
  row-gap: 1.25rem;
}

.header__menu-list a {
  text-decoration: none;
  position: relative;
  color: currentColor;
}

.header__menu-list a::after {
  position: absolute;
  content: "";
  bottom: 0;
  display: block;
  width: 0;
  height: 2px;
  background: var(--nhou-red);
  transition: var(--transition-duration);
  left: 50%;
  transform: translateX(-50%);
}

.header__menu-list a:hover::after {
  width: 100%;
  left: 0;
  transform: translateX(0);
}

@media (max-width: 1020px) {
  .header__menu-list {
    gap: 1.25rem;
  }
}

.soc1al-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 1020px) {
  .soc1al-list {
    gap: 1.25rem;
  }
}

.soc1als_list {
  display: flex;
  -moz-column-gap: 1.875rem;
  column-gap: 1.875rem;
  flex-direction: row;
  align-items: center;
}

.soc1als__link {
  display: flex;
  align-items: center;
}


.icons svg {
  fill: var(--nhou-red);
  transition: fill var(--transition-duration);
  width: var(--social-icon-width);
  aspect-ratio: 1;
}

/* Для устройств, поддерживающих hover */
@media (hover: hover) {
  .soc1als__link:hover svg {
    fill: var(--nhou-dark);
    /* Цвет SVG при наведении */
  }
}

/* Для устройств, не поддерживающих hover */
@media (hover: none) {
  .soc1als__link:active svg {
    fill: var(--click-color);
    /* Цвет SVG при активном нажатии */
  }
}

.tel-number {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

@media (max-width: 460px) {
  .tel-number {
    display: none;
  }
}

.tel-number-row {
  display: flex;
  flex-direction: column;
}

/* Burger menu  */
.burger-button {
  padding: 0;
  background-color: transparent;
  border: none;
  width: 48px;
  aspect-ratio: 1;
  position: relative;
  border-radius: var(--border-radius);
}

@media (hover: hover) {
  .burger-button:hover {
    background-color: var(--nhou-red);
  }
}

@media (hover: none) {
  .burger-button:active {
    background-color: var(--nhou-red);
  }
}

.burger-button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  content: "";
  width: 50%;
  height: 2px;
  background-color: var(--dark-grey);
  border-radius: 5px;
  box-shadow: 0 -8px 0 0 var(--dark-grey),
    /* Верхняя полоска */
    0 8px 0 0 var(--dark-grey);
  /* Нижняя полоска */
}

.cross-button {
  padding: 0;
  background-color: transparent;
  border-radius: var(--border-radius);
  border: none;
  width: 48px;
  aspect-ratio: 1;
  position: relative;
}

@media (hover: hover) {
  .cross-button:hover {
    background-color: var(--nhou-red);
    cursor: pointer;
  }
}

@media (hover: none) {
  .cross-button:active {
    background-color: var(--nhou-red);
  }
}

.cross-button::before,
.cross-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  width: 70%;
  height: 2px;
  background-color: var(--dark-grey);
  border-radius: 5px;
}

.cross-button::before {
  rotate: 45deg;
}

.cross-button::after {
  rotate: -45deg;
}

.mobile-overlay {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 14px 20px;
  border: none;
  background-color: #ffffff;
}

.mobile-overlay__body {
  display: flex;
  flex-direction: column;
  /* height: 100%; */
  align-items: center;
  gap: 40px;
}

.mobile-overlay:modal {
  max-width: 100%;
  max-height: 100%;
}

.mobile-overlay__close-button-wrapper {
  display: flex;
  justify-content: flex-end;
}

.mobile-overlay__list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 30px;
}

dialog {
  transition: overlay;

  -webkit-animation: close 0.5s forwards;

  animation: close 0.5s forwards;

  &[open] {
    -webkit-animation: open 0.5s forwards;
    animation: open 0.5s forwards;
  }
}

@-webkit-keyframes open {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes open {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

dialog .soc1al-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

dialog .soc1als_list {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

/* Hero section */
.hero-main {
  background-color: var(--dark-grey-transparent);
  height: 100vh;
  color: #e5e7eb;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-heading {
  font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.hero-subheading {
  font-size: clamp(1.125rem, 1vw + 1rem, 1.5rem);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-inline: auto;
}

.hero-advantages__container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;

}

.hero-advantages__item {
  font-weight: 500;
}

.hero__content .subtitle {
  margin-bottom: 1rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  /* вместо space-y */
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

@supports not (backdrop-filter: blur(4px)) {
  .feature-card {
    background-color: rgba(255, 255, 255, 0.15);
    /* чуть плотнее, если нет blur */
  }
}


.feature-grid-item h3 {
  font-size: 0.875rem;
  /* text-sm — примерно 14px */
  font-weight: 500;
  /* font-medium */
  text-align: center;
  /* text-center */
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* No video hero */

.hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
  background-image: linear-gradient(to bottom, #FAFAFA, #FFFFFF);

}

.flex-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .flex-wrapper {
    flex-direction: row;

  }
}

.hero__content {
  margin-bottom: 2rem;

}

.hero__image img {
  border-radius: var(--border-radius);
  height: auto;
  width: 100%;
  object-fit: contain;
  /* или 'cover', см. ниже */
}


@media (min-width: 48rem) {
  .hero__content {
    width: 50%;
    margin-bottom: 0;
  }

  .hero__image {
    width: 50%;
  }
}

.feature__list {
  --grid-colums: 3;
  --card-gap: 2rem;
}


@media (max-width: 768px) {
  .feature__list {
    --grid-colums: 2;
    /* или другое значение для мобильных */
  }
}

@media (max-width: 500px) {
  .feature__list {
    --grid-colums: 1;

    /* или другое значение для мобильных */
  }
}

.card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  gap: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
  max-width: var(--card-width);
}

.card:hover {
  transform: scale(1.03);

}

.product-list {
  --grid-colums: 3;
  --card-gap: 2rem;
  justify-items: center
}

@media (max-width: 1000px) {
  .product-list {
    --grid-colums: 2;
    /* или другое значение для мобильных */
  }
}

@media (max-width: 700px) {
  .product-list {
    --grid-colums: 1;
    /* или другое значение для мобильных */
  }
}

.product-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 26rem;

}

.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 300ms ease, border-color 300ms ease;
  border-color: var(--nhou-red);
}

.card__header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;

}

.product--header {
  align-items: flex-start;
}

.product__mb {
  margin-bottom: 1.5rem !important;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  transition: background-color 300ms;
  width: 3rem;
  height: 3rem;
}

.icon__product {

  background-color: var(--dark-grey);

}

.product-card:hover .icon__product {
  background-color: var(--nhou-red);
}


.card__properties {
  list-style: none;
  /* убираем стандартные маркеры */
  padding-left: 1.25rem;
  /* отступ слева для текста, чтобы точки не накладывались */
  margin: 0;
  margin-bottom: 1rem;
}

.card__property {
  position: relative;
  margin-top: 0.5rem;
  /* отступ между пунктами */
  padding-left: 1rem;
  /* место под маркер */
}

.card__property::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--nhou-red, #e63946);
  border-radius: 50%;
  transform: translateY(-50%);
}

.button__container {
  text-align: center;
  margin-top: 2rem;
}

.product-card__content .primary-button {
  background-color: #FFFFFF;
  color: var(--dark-grey);
}

.product-list-section .primary-button {
  background-color: var(--dark-grey);
  color: #ffffff;
}

.dealer-advantages__list {
  --grid-colums: 2;
  --card-gap: 2rem;
  padding-top: 2rem;
  padding-inline: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
  /* hyphens: auto; */

}

@media (max-width: 900px) {
  .dealer-advantages__list {
    --grid-colums: 1;
    /* или другое значение для мобильных */
  }
}

.product-card__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;

}

.card__header.product--header {
  margin-bottom: 0;
}



.dealer-advantages__item {
  border-radius: var(--border-radius);
  position: relative;
  display: block;
  background-color: #fff;
  border: 1px solid #f3f3f3;
  padding: 2rem;
  transition-property: border, box-shadow;
  transition-duration: 500ms;
  transition-timing-function: ease;

}

.dealer--header {
  align-items: center;
  flex-direction: column;
}

@media (max-width: 400px) {
  .dealer--header {
    flex-direction: column;
    /* или другое значение для мобильных */
  }
}

.dealer--header .h3 {
  margin-bottom: 0;
}

.dealer-advantages__item:hover {
  border-color: rgba(var(--nhou-red-rgb), 0.2);
  box-shadow: var(--nhou--shadows);
}

.icon__dealer {
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgb(249 250 251);
}

.dealer-advantages__item:hover .icon__dealer {
  background-color: rgba(var(--nhou-red-rgb), 0.1);
}

/* Обёртка с счётчиком */
.numbered-cards {
  counter-reset: item;
}

/* Карточка */
.numbered-cards .dealer-advantages__item {
  position: relative;
  counter-increment: item;

}

/* Цифра в углу */
.numbered-cards .dealer-advantages__item::before {
  content: counter(item);
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--dark-grey);
  color: #fff;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.125rem;
  /* ~text-lg */
  transition: background-color 0.3s ease;
}

/* При наведении (если карточка — .group, можно переопределить) */
.dealer-advantages__item:hover::before {
  background-color: var(--nhou-red-hover, #b9162a);
}

.dealer-advantages__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 5rem;
  /* = 80px = w-20 */
  height: 5rem;
  /* = 80px = h-20 */
  border-top-left-radius: 9999px;
  /* rounded-tl-full */
  background-image: linear-gradient(to top left, rgba(var(--nhou-red-rgb), 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

.dealer-cta__container {
  max-width: 56rem;

  margin-inline: auto;

}

.dealer-cta__wrapper {
  position: relative;
  background-image: linear-gradient(to right, var(--dark-grey), #2d2d2d);
  border-radius: 1.5rem;
  padding: 3rem;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.dealer-cta__wrapper .h3 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.dealer--header {
  max-width: 100%;
}


.icon__dealer .h3 {
  margin-bottom: 0;
}


.dealer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.dealer-country {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--nhou--shadows);
  background-color: #fff;
}

.dealer-country__title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}



.dealer-city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.dealer-city {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1rem;
}

.dealer-city::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.5em;
  width: 0.6rem;
  height: 0.6rem;
  background-color: #26791a;
  border-radius: 50%;
}

.secondary-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #fff;
  color: #333;
  border: 2px solid #333;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.secondary-button:hover {
  background-color: #333;
  color: #fff;
}

/* Стили модального окна */
.modal-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}



/* Внутреннее содержимое */
.modal-content {
  position: relative;
  background-color: #fff;
}

.modal-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close:hover {
  color: var(--nhou-red);
}


/* Оверлей для затемнения фона */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

/* Модалка центрируется поверх */
dialog {
  margin-inline: auto;
  margin-block: auto;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 1000px;
  max-height: 90%;
  overflow-y: auto;
  z-index: 10000;
}

.modal-content .product--header {
  align-items: center;
  max-width: 80%;

}

.modal-content .product--header h3 {

  margin-bottom: 0;
}

.grid-modal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-modal {
    grid-template-columns: 1fr;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .main-image img {
    max-height: 200px;
  }
}

.thumbnail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.thumbnail-list img {
  max-width: 80px;
  max-height: 60px;
  object-fit: contain;

  padding: 0.1rem;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  transition: border 0.2s;
}

.thumbnail-list img.active {
  border-color: #d33;
}

.thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.modal-text {
  font-size: 1.125rem;

  color: var(--dark-grey);

  margin-bottom: 1rem;
}

.button-wrapper {
  text-align: center;
  margin-top: 2rem;
}


.blog-section {
  background-color: rgb(249 250 251);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  /* gap-6 = 1.5rem */
  max-width: 80rem;
  /* max-w-7xl = 1280px = 80rem */
  margin-inline: auto;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.blog-item {
  border-radius: var(--border-radius, 0.5rem);
  background-color: #fff;
  color: var(--dark-grey);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  ;
}

.blog-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

}

.fb__date {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 1rem;
  align-items: center;
}

.fb__span {
  display: flex;
  justify-content: center;
  color: #fff;
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 700;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  font-weight: 700;
  background-color: rgb(37 99 235);
}

.fb__date svg {
  color: rgb(107 114 128);
  margin-right: 0.25rem;
}

.fb__date p {
  font-size: .875rem;
  line-height: 1.25rem;
  color: rgb(107 114 128);
}

.blog-fb__content {
  padding-block: 1rem;
  line-height: 1.625;
  border-top: 1px solid #f3f4f6;
}

.line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.button-wrapper-fb {
  padding: 1rem;
  border-top: 1px solid #f3f4f6;

}

.fb-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.5rem;
  /* h-10 */
  padding: 0.5rem 1rem;
  /* px-4 py-2 */
  white-space: nowrap;
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  /* font-medium */
  border-radius: 0.375rem;
  /* rounded-md */
  border: 1px solid var(--input-border, #d1d5db);
  /* border-input */
  background-color: var(--background, #fff);
  color: var(--text-color, #1f2937);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fb-button:hover {
  background-color: #eff6ff;
  /* hover:bg-blue-50 */
  border-color: #93c5fd;
  /* hover:border-blue-300 */
  color: var(--accent-foreground, #1e40af);
}

.fb-button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Поддержка SVG внутри кнопки */
.fb-button svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Фокус и кольцо (если требуется) */
.fb-button:focus-visible {
  outline: 2px solid var(--ring-color, #3b82f6);
  outline-offset: 2px;
}

.fb-image__wrapper {
  margin-block: 1rem;


}

.fb-image__wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.fb-galery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 1fr));
  gap: 0.5rem;
}

.button-wrapper-fb a {
  text-decoration: none;
}

.fb-article-content__wrapper {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border-color: rgb(229 231 235);
  border-width: 1px;
  border-style: solid;
}

.media-thumb {
  width: 5rem;
  /* w-20 = 80px */
  height: 5rem;
  /* h-20 = 80px */
  object-fit: cover;
  /* object-cover */
  border-radius: 0.5rem;
  /* rounded-lg */
  flex-shrink: 0;
  /* flex-shrink-0 */
}

.fb-article__title {
  font-weight: 600;
  /* font-semibold */
  color: var(--dark-grey);
  /* text-nhou-dark */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* line-clamp-2 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
  /* mb-1 = 4px */
}

.fb-article__text {

  font-size: 0.875rem;
  /* text-sm */
  color: #4B5563;
  /* text-gray-600 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* line-clamp-2 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

footer {
  background-color: var(--dark-grey);
  color: #ffffff;
  padding-block: 4rem;

}

.grid-4-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  /* gap-8 = 2rem */
  margin-bottom: 3rem;
  /* mb-12 = 3rem */
}

@media (min-width: 1024px) {
  .grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__wrapper {
  justify-items: center;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;

}

.footer__bottom {
  padding-top: 2rem;
  text-align: center;
  position: relative;
}

.footer__bottom::before {
  content: '';
  display: block;
  width: 70%;
  margin: 1rem auto;
  border-top: 1px solid rgb(55 65 88);
  /* поправил цвет — видимо, ошибка в rgb(55 65 8) */
}


footer a {
  color: #ffffff;
  position: relative;
  text-decoration: none;
  fill: #ffffff;
}

footer a::after {
  position: absolute;
  content: "";
  bottom: -0.5rem;
  display: block;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width var(--transition-duration), left var(--transition-duration),
    transform var(--transition-duration);
  left: 50%;
  transform: translateX(-50%);
}

footer a:hover::after {
  width: 100%;
  left: 0;
  transform: translateX(0);
}

.footer__h3 {
  font-size: 1.25rem;
  /* соответствует text-xl */
  font-weight: 700;
  /* соответствует font-bold */
  margin-bottom: 1.5rem;
  /* соответствует mb-6 */
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  row-gap: 1.25rem;
  list-style: none;
  max-width: 80%;
  margin: 0 auto;
  --indicatorVerticalRotate: 90deg;
}

.faq-text {
  white-space: pre-line;
}

.faq-item {
  border-bottom: 2px solid rgba(var(--nhou-red-rgb), 0.4);
  padding-bottom: 1.25rem;
}

.accordion__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  -moz-column-gap: 3rem;
  column-gap: 3rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.accordion__content {
  display: grid;
  grid-template-rows: 0fr;
  transition-duration: var(--transition-duration);
}

.accordion__content-body {
  overflow: hidden;
}

.accordion__details[open]+.accordion__content {
  grid-template-rows: 1fr;
}

.accordion__details[open] {
  --indicatorVerticalRotate: 0deg;
}

.process__accordion-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  aspect-ratio: 1;
  flex-shrink: 0;
  position: relative;
}

.process__accordion-indicator::before,
.process__accordion-indicator::after {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  content: "";
  width: 45%;
  height: 10%;
  background-color: var(--dark-grey);
}

.process__accordion-indicator::after {
  rotate: var(--indicatorVerticalRotate);
  transition-duration: var(--transition-duration);
}

summary::-webkit-details-marker {
  display: none;
}

/* Mission */
.mission__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  justify-items: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .mission__wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mission-section .subtitle {
  font-size: 1.5rem;

  font-weight: 600;

  color: var(--nhou-red);

  margin-bottom: 2rem;

  animation: fade-in 0.5s ease-out both;
}



@media (min-width: 768px) {
  .mission-section .subtitle {
    font-size: 1.875rem;

  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-fade-paragraph {
  font-size: 1.125rem;
  color: var(--nhou-dark);
  line-height: 1.625;
  margin-top: 0;
  margin-bottom: 0;
  animation: fade-in 0.5s ease-out both;
}

/* Между соседними параграфами (space-y-4 — 1rem = 16px) */
.text-fade-paragraph+.text-fade-paragraph {
  margin-top: 1rem;
}

/* Ключевые кадры для анимации (можно вынести отдельно) */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mission-list__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;

}

.mission-list__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;

}

.mission-list__icon {
  background-color: rgba(217, 26, 50, 0.1);
  padding: 0.75rem;
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-list__title {
  font-weight: 600;
  color: var(--nhou-dark);
  margin-bottom: 0.5rem;
}

.video-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 = 9 / 16 = 0.5625 = 56.25% */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.form-wrapper {
  background-color: #fff;

  color: var(--dark-grey);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

}

.form-group {
  width: 100%;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  display: flex;
  height: 2.5rem;
  /* ✅ Только для input */
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  outline-offset: 2px;
  transition: box-shadow 0.2s ease;
  color: #111827;
}

textarea {
  display: block;
  /* Лучше block, чем flex */
  width: 100%;
  min-height: 6rem;
  /* Задай начальную высоту */
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  outline-offset: 2px;
  transition: box-shadow 0.2s ease;
  color: #111827;
  resize: vertical;
  /* Пользователь может растянуть */
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: #9ca3af;
  /* placeholder:text-muted-foreground */
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  /* focus-visible:ring-2 focus-visible:ring-blue-500 */
  border-color: #3b82f6;
}

input[disabled],
textarea[disabled],
input[readonly],
textarea[readonly] {
  cursor: not-allowed;
  opacity: 0.5;
}

.modal-dialog .primary-button {
  border-width: 0;
}


.accept-policy {
  font-size: 14px;
  line-height: 1.5;
}

.accept-policy a {
  margin-inline: auto;
  color: var(--text-basic-color);
  text-decoration: underline;
  text-align: center;
}

.accept-policy label {
  display: flex;
  align-items: center;
  gap: 1rem;

}

.wpcf7-list-item {
  margin-left: 0;
}

.privacy-policy {
  margin-top: 10rem;
}

.lang__container {
  display: flex;

  align-items: center;
  gap: 0.5rem;
}

.lang-emoji {
  font-size: 1.5rem;
  padding: 0.5rem;
  text-align: center;
  line-height: 1;


}

.lang-item--active {
  scale: 1.2;
}

@media (max-width: 349px) {
  .lang__container {
    flex-direction: column;
  }

  .lang-emoji {
    font-size: 1rem;
  }
}

#chat-widget-push-to-talk {
  color: #FFFFFF;
}

.grecaptcha-badge {
  display: none !important;
}