/* Critical CSS for above-the-fold content */

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

img[src$=".svg"] {
  height: auto;
  display: inline-block;
  object-fit: contain;
}

h1,
h2,
h3 {
  color: #333;
}

h1 {
  font-size: 36px;
  text-align: center;
}

h2 {
  font-size: 32px;
}

p {
  font-size: 16px;
  color: #666;
  /* margin-bottom: 15px; */
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-number,
.email {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-number img,
.email img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav_secondary .container {
  padding: 15px;
}

.nav_secondary nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
}

.nav_left,
.nav_right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav_mobile_contacts_row {
  display: none;
}

.nav_menu_item {
  margin-right: 20px;
  position: relative;
}

.nav_menu_item:last-child {
  margin-right: 0;
}

.nav_menu_item_drop_list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 10px 0;
  display: none;
}

.nav_menu_item_drop:hover .nav_menu_item_drop_list {
  display: block;
}

.nav_menu_item_drop_list a {
  display: block;
  padding: 10px 20px;
}

@media (max-width: 991.98px) {
  .nav_menu_item_drop.nav-open .nav_menu_item_drop_list {
    display: block;
  }

  .nav_left,
  .nav_right {
    display: none;
  }

  .nav_burger {
    display: inline-flex;
    margin-left: auto;
  }

  .nav_logo {
    margin-right: auto;
  }
}

@media (min-width: 992px) {
  .nav_mobile_panel,
  .nav_mobile_overlay {
    display: none;
  }
}

.nav_logo img {
  height: 40px;
  width: auto;
}

.nav_burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  background: #fff;
  padding: 10px;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav_burger span[aria-hidden="true"] {
  display: block;
  width: 100%;
  height: 2px;
  background: #222;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#siteNav.is-mobile-open .nav_burger span[aria-hidden="true"]:nth-of-type(1) {
  transform: translateY(7px) rotate(45deg);
}

#siteNav.is-mobile-open .nav_burger span[aria-hidden="true"]:nth-of-type(2) {
  opacity: 0;
}

#siteNav.is-mobile-open .nav_burger span[aria-hidden="true"]:nth-of-type(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav_mobile_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.nav_mobile_panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 80vw);
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1001;
}

.nav_mobile_panel_inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav_mobile_heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
  margin-top: 4px;
}

.nav_mobile_item {
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
  color: #222;
}

#siteNav.is-mobile-open .nav_mobile_panel {
  transform: translateX(0);
}

#siteNav.is-mobile-open .nav_mobile_overlay {
  opacity: 1;
  pointer-events: auto;
}

body.nav-locked {
  overflow: hidden;
}

.hero-tv-mounting {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 30px;
}

.hero-title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-cta {
  font-size: 18px;
}

.hero-reviews {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.hero-reviews img {
  height: 24px;
  width: auto;
}

.hero-reviews span {
  font-size: 16px;
  font-weight: 600;
}

/* Homepage services grid scaffolding */
.seo-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.seo-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

.seo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin-bottom: 15px;
  height: 200px;
}

.service-card {
  padding-bottom: 0;
}

.service-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-select-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: 20px auto 0;
  text-align: center;
  background-color: #218838;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .seo-articles-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .seo-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Reviews & social proof scaffolding */
.review-platforms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 30px auto;
  max-width: 1000px;
  padding: 10px 0;
}

.review-platforms .platform {
  flex: 0 1 150px;
}

.review-platforms .platform img {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  object-fit: contain;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  min-height: 220px;
}

.review-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

.review-card h3,
.review-card h4 {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.3;
}

.review-card p {
  font-size: 16px;
  text-align: center;
  line-height: 1.45;
  margin: 0;
}

.reviews-section {
  padding-top: 40px;
}

.reviews-section .carousel-heading {
  text-align: center;
  margin-bottom: 8px;
}

.reviews-section .review-tagline {
  text-align: center;
  margin: 24px 0;
}

.review-tagline--emph {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 20px;
}

@media (max-width: 768px) {
  .review-tagline--emph {
    display: block;
  }
}

@media (min-width: 1025px) {
  .reviews-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
  }

  .review-card {
    padding: 16px;
  }
}

/* Floating chat menu scaffolding */
.floating-chat-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: min-content;
}

.main-chat-btn,
.chat-sub-btn {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.main-chat-btn img,
.chat-sub-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  position: absolute;
}

.chat-menu-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  opacity: 1;
  transform: translateY(0);
}

.chat-menu-items.hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
}

/* === Reviews layout tweaks (desktop ≤ 3 per row, centered) === */

/* Центруем слоган и сам блок */
.reviews-section .container { max-width: 1000px; margin: 0 auto; }  /* ширина как у соседних секций */
.review-tagline,
.review-tagline--emph { text-align: center; }
.review-tagline--emph { display: inline-block; margin: 20px auto; }

/* Сетка карточек: моб./планшет оставляем как есть, на десктопе максимум 3 в ряд */
@media (min-width: 768px) and (max-width: 1023.98px){
  .reviews-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}

@media (min-width: 1024px){
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr)); /* не больше 3-х */
    justify-content: center;   /* центрируем сетку внутри контейнера */
  }
}
