/*!
 * 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-light: rgb(75 85 99);
  --dark-grey-transparent: rgba(47, 46, 46, 0.9);
  --nhou-red: rgb(217 26 50);
  --nhou-red-transparent: rgba(217, 26, 50, 0.6);
  --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;
}

html,
body {
  height: 100%;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark-grey);

}

/* Scroll lock */
body.scroll-lock {
  overflow: hidden;

}

.hidden {
  display: none;
}

.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);

}

.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(--dark-grey);
  line-height: 1.25;
}

.h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark-grey);

}

.subtitle {
  font-size: 1.25rem;
  color: var(--dark-grey-light);
  margin-bottom: 2rem;

}

.white-text {
  color: #ffffff;
}

/* grids */



.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 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;
}

.mr-2 {
  margin-right: 0.5rem;
}

/*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;
}


/* Styles for nested svg */
.button svg {
  pointer-events: none;
  width: 1rem;
  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(--dark-grey);
  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;
  max-width: 12.5rem;
  max-height: 5rem;
  width: 100%;
}

.logo__image[src$=".svg"] {
  width: 100%;
  height: auto;
}

.header__menu-list {
  display: flex;
  align-items: center;
  column-gap: 1.875rem;
  color: var(--dark-grey);
  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;
}

/* For devices that support hover */
@media (hover: hover) {
  .soc1als__link:hover svg {
    fill: var(--dark-grey);
    /* SVG color on hover */
  }
}

/* For devices that do not support hover */
@media (hover: none) {
  .soc1als__link:active svg {
    fill: var(--click-color);
    /* SVG color when active press */
  }
}

.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%;
  transform: 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),
    /* Top bar */
    0 8px 0 0 var(--dark-grey);
  /* Bottom bar */
}

.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-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;

}

.svg-icon-text-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;


}

.svg-icon-text-wrapper svg {
  flex-shrink: 0;
}

.svg-icon-text-wrapper p {
  text-align: left;
  white-space: pre-line;
}

.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);

  }
}


.feature-grid-item h3 {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: 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;

}


@media (min-width: 48rem) {
  .hero__content {
    width: 50%;
    margin-bottom: 0;
  }

  .hero__image {
    width: 50%;
  }
}

.feature__list {
  --grid-columns: 3;
  --card-gap: 2rem;
}

@media (max-width: 768px) {
  .feature__list {
    --grid-columns: 2;
  }
}

@media (max-width: 500px) {
  .feature__list {
    --grid-columns: 1;
  }
}

.card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  gap: 1rem;
  text-align: center;
  transition: transform 0.3s ease;

}

.card:hover {
  transform: scale(1.03);

}

.product-list {
  --card-width: 24rem;

}

@media (max-width: 768px) {
  .product-list {
    --card-width: 16rem;

  }
}

.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;
}

.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;
}

.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 {
  --card-width: 28rem;
  --card-gap: 3rem;
  padding-top: 2rem;
  margin-bottom: 3rem;

}

.product-card__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;

}

.card__header.product--header {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .dealer-advantages__list {
    --card-width: 18rem;
    padding-inline: 0.5rem;

  }
}

.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;
}

.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;

  transition: background-color 0.3s ease;
}


.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;

  height: 5rem;

  border-top-left-radius: 9999px;

  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 window styles */
.modal-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {

  width: 90%;
  max-width: 1000px;
  max-height: 90%;
  /* total height of modal */
  border-radius: var(--border-radius);
  overflow: hidden;
  /* hide excess, scroll inside content */
  z-index: 10000;
}

/* Internal content */
.modal-content {
  max-height: 100%;

  background-color: #fff;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--nhou-red);
}


/* Overlay to darken the background */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

/* Modalka is centered on top */
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;

}

.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;
  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;
  max-width: 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;
}



.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;

  padding: 0.5rem 1rem;

  white-space: nowrap;
  font-size: 0.875rem;

  font-weight: 500;

  border-radius: 0.375rem;

  border: 1px solid var(--input-border, #d1d5db);

  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;

  border-color: #93c5fd;

  color: var(--accent-foreground, #1e40af);
}

.fb-button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* SVG support inside the button */
.fb-button svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Focus and ring (if required) */
.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;

  height: 5rem;

  object-fit: cover;

  border-radius: 0.5rem;

  flex-shrink: 0;

}


footer {
  background-color: var(--dark-grey);
  color: #ffffff;
  padding-block: 4rem;

}

.grid-4-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;

}

@media (min-width: 1024px) {
  .grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__wrapper {
  justify-items: center;
  --grid-columns: 3;
}

@media (max-width: 768px) {
  .footer__wrapper {
    --grid-columns: 2;
  }
}

.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);

}


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;

  font-weight: 700;

  margin-bottom: 1.5rem;

}

/* 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(--dark-grey);
  line-height: 1.625;
  margin-top: 0;
  margin-bottom: 0;
  animation: fade-in 0.5s ease-out both;
}


.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(--dark-grey);
  margin-bottom: 0.5rem;
}

.video-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  width: 100%;
  padding-top: 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;
  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;
  width: 100%;
  max-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;

}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;

  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: 0.5rem;

}

.wpcf7-list-item {
  margin-left: 0;
}

.privacy-policy {
  margin-top: 10rem;
}

.banner {
  background-image: linear-gradient(to right,
      rgb(var(--nhou-red-rgb)),
      rgba(var(--nhou-red-rgb), 0.8));
  color: #fff;
  padding: 2rem;
  text-align: center;
  border-radius: 1rem;


}

.banner .subtitle {
  margin-bottom: 0;
}

.banner .section__header {
  margin-bottom: 0;
}

.banner__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  color: #fff;
  text-align: center;
}

@media (min-width: 768px) {
  .banner__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.banner__list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

dd {
  margin: 0;
  padding: 0;
}

.banner__list-item dd {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-inline: auto;
  max-width: 48rem;
}

.step-list li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-list li::before {
  content: counter(step);
  background-color: var(--nhou-red);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  height: 3rem;
  width: 3rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 1rem;
}


.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  font-weight: 600;
  cursor: pointer;
}

.tab-button.active {
  background-color: #f1f1f1;
  border-radius: 0.5rem;
}

.price-table {
  display: none;
  overflow-x: auto;
}

.price-table.active {
  display: block;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.text-red {
  color: var(--nhou-red);
  font-weight: bold;
}

.table-wrapper {
  position: relative;
  overflow-x: auto;
}


.table-wrapper-inner {
  overflow-x: auto;

}


.table-wrapper table {
  min-width: 600px;
}


.table-fade-right {
  position: absolute;
  top: 0;
  right: -2px;
  height: 100%;
  width: 2rem;
  pointer-events: none;
  background: linear-gradient(to left, #fff, transparent);
  z-index: 10;
}

.table-wrapper {
  overflow-x: scroll;

  scrollbar-gutter: stable;

}


.table-wrapper::-webkit-scrollbar {
  height: 2px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.icon-label {
  color: inherit;
  margin-right: 0.5rem;
}

.price-section__warning {
  margin-top: 2rem;
}


.price-button-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.reviews__item {
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;

}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.reviews-image__wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  margin-bottom: 1rem;

}

.reviews-image__content {
  flex: 1 1 0%;
}

.reviews-image__content img {
  width: 100%;
  height: 12rem;
  border-radius: calc(var(--border-radius) - 2px);
  object-fit: cover;
}


@media (min-width: 768px) {
  .reviews-image__wrapper {
    flex-direction: row;
  }
}

.grey-text {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 0.25rem;

}

.reviews__quote {
  font-style: italic;
}



cite {
  font-style: normal;
  font-weight: 700;
  color: var(--dark-grey);
  font-size: 1.2rem;
}

.reviews__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contacts-section a {
  text-decoration: none;
  position: relative;
  color: currentColor;
}

.contacts-section 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%);
}

.contacts-section a:hover::after {
  width: 100%;
  left: 0;
  transform: translateX(0);
}

.contacts-map {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.modal-city-list {
  --grid-columns: 3;
  --card-gap: 1rem;
  justify-items: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .modal-city-list {
    --grid-columns: 2;
    --card-gap: 0.5rem;

  }
}

@media (max-width: 360px) {
  .modal-city-list {
    --grid-columns: 1;

  }
}

.city-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: normal;
  word-break: break-word;
  border-radius: 0.375rem;
  font-weight: 500;
  background-color: var(--background-color);
  transition: background-color 0.2s, color 0.2s;
  border: 1px solid hsl(214.3, 31.8%, 91.4%);
  color: var(--dark-grey);
  padding: 0.5rem 1rem;
  height: 4rem;
  font-size: 1.125rem;
  cursor: pointer;
  width: 100%;

}

@media (max-width: 768px) {
  .city-btn {
    font-size: 1rem;
    padding: 0.5rem 0.5rem;
    height: 3rem;

  }
}



.city-btn:hover {
  background-color: hsl(210, 40%, 96.1%);

  color: #1f2937;

}

.city-btn:focus-visible {
  outline: 2px solid #3b82f6;

  outline-offset: 2px;
}

.city-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.city-steps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  height: 2.5rem;
  margin-bottom: 1rem;


  background-color: var(--background-color, #fff);

  color: var(--dark-grey, #000);


  transition: background-color 0.2s ease, color 0.2s ease;

  outline: none;
  --ring-color: var(--ring, hsl(215, 20%, 65%));
  --ring-offset: var(--ring-offset, 2px);
}

.city-steps-btn:focus-visible {
  box-shadow: var(--nhou--shadows);
}

.city-steps-btn:hover {
  background-color: hsl(210, 40%, 96.1%);
  color: #1f2937;
}

.city-steps-btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}


.city-steps-btn svg {
  pointer-events: none;
  width: 1rem;

  height: 1rem;
  flex-shrink: 0;
}

.city-list-map {
  margin-block: 2rem;
  height: 16rem;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.modal-step-h3 {
  margin-top: 1rem;
  text-align: center;
}

.center-list-container {
  position: relative;
  width: 94%;
  margin: 0 auto;
}

.map-loader {
  position: absolute;
  inset: 0;
  background-color: #f5f5f5;
  color: #555;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.city-map {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.city-list {
  margin-block: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  justify-items: stretch;
}

@media (max-width: 400px) {
  .city-list {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
}

.city-list__item-wrapper {
  padding: 1rem;
  position: relative;
  border-width: 1px;
  border-radius: var(--border-radius);
  background-color: var(--background-color, #fff);
  color: var(--dark-grey-light, #000);
  border: 1px solid hsl(214.3, 31.8%, 91.4%);
  cursor: pointer;
  transition: background-color 0.2s ease;
  max-width: 100%;
}

.center-btn {
  background-color: transparent;
}

.city-list__item-wrapper:hover {
  background-color: rgb(249 250 251);

}

@media (max-width: 460px) {
  .city-list__item-wrapper {
    width: 100%;
  }
}

.city-list__item {
  color: var(--dark-grey-light, #000);
  background-color: transparent;
  font-size: .875rem;
  line-height: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;

}

.city-list__item .svg-icon-text-wrapper {
  gap: 0.5rem;
}

.city-list__item a {
  position: relative;
  text-decoration: none;
  color: inherit;
}

.city-list__item 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%);
}

.dealer-form-wrapper {
  --grid-columns: 2;
  --card-gap: 1.5rem;
}

@media (max-width: 768px) {
  .dealer-form-wrapper {
    --grid-columns: 1;

  }
}

.dealer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-field.contact-social {
  display: none;
}

.dealer-info .city-list__item-wrapper {
  cursor: auto;
}

.modal-step {
  display: none;
}

.modal-step.is-active {
  display: block;
}

.dealer-type-partner {
  position: absolute;
  top: 0;
  right: 0;
  padding-inline: 0.25rem;
  padding-block: 0.15rem;
  line-height: 1;
  color: white;
  background: rgb(59 130 246 / 0.6);
  border-radius: calc(var(--border-radius) - 2px);

}

.dealer-type-dealer {
  position: absolute;
  top: 0;
  right: 0;
  padding-inline: 0.25rem;
  padding-block: 0.15rem;
  line-height: 1;
  color: white;
  background: var(--nhou-red-transparent);
  border-radius: calc(var(--border-radius) - 2px);

}

.city-list:has(> :only-child) {
  justify-items: center;
}

iframe .i4ewOd-pzNkMb-haAclf {
  display: none;
}

.modal-step h3 {
  max-width: 80%;
}

.contacts-wrapper {
  display: flex;
  gap: 1.5rem;
}

.contacts-list-block {
  width: 40%;


}

.contacts-detail {
  width: 60%;
  padding: 20px;
  background: #f7f7f7;
  border-radius: var(--border-radius);
}

.contacts-filter {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  max-height: 30rem;
  overflow-y: auto;
  margin-top: 1rem;
  gap: 1rem;
}

.contacts-card {
  background: #fff;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 1px solid #ddd;
}

.contacts-card:hover {
  background: #f0f0f0;
}

.status-badge.dealer {
  background: #ff4d4d;
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.status-badge.partner {
  background: #3b82f6;
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .contacts-wrapper {
    flex-direction: column;
  }

  .contacts-list-block,
  .contacts-detail {
    width: 100%;
  }
}

select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  font-size: 1rem;
  color: #111827;
  outline-offset: 2px;
}

.contacts-list .center-list__item {
  max-width: 96%;
}

.contacts-map {
  max-width: 100%;
  max-height: 100%;
}

.dealer-paragraph {
  margin-top: 1rem;
  text-align: center;
}

.be_a_dealer_text {
  color: inherit;
  text-decoration-color: var(--nhou-red) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;

}

#dealers-container {
  max-width: 94%;
  margin-inline: auto;
}

.site-main {
  margin-top: 10rem;
}

#lang-switcher {
  width: auto;
}

@media (max-width: 500px) {
  #lang-switcher {
    padding: 0.1rem;
  }

}
#chat-widget-push-to-talk {
  color: #FFFFFF;
}