/* RESET / BASE */
:root {
  --primary-color: #222; /* brand color */
  --dark-color: #222;
  --light-bg: #f9f9f9;
  --text-color: #333;
  --font-main: 'Open Sans', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333;
  background-color: #fff;
}

section {
  padding: 60px 20px; /* large top/bottom, moderate left/right */
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem!important; /* Smaller size for mobile */
		font-weight: 700!important;
    }
}

/* HEADER BASE */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 20px 40px;
  border-bottom: 1px solid #ddd;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 40px;
  width: auto;
}

/* DESKTOP NAV */
.header-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* CONTACT CONTAINER */
.header-contact-container {
  display: flex;
  align-items: center;
  gap: 20px; /* space between phone button and telegram icon */
}

/* PHONE BUTTON (pill shape) */
.phone-button {
  display: inline-flex;         /* flex container to align text/icon horizontally */
  align-items: center;
  justify-content: center;
  background-color: #222!important;       /* black or var(--primary-color) */
  padding: 8px 16px;
  border-radius: 999px;         /* pill shape */
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.phone-button:hover {
  background-color: #555;
}

/* The phone text (shown on desktop, hidden on mobile) */
.phone-text {
  display: inline-block; /* visible on desktop by default */
  color: #fff;
  opacity: 1 !important;   /* Remove any fading */
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: 8px; /* space between text and icon */
}

/* The phone icon (hidden on desktop, shown on mobile) */
.phone-icon {
  #width: 20px;
  height: auto;
  display: none; /* hide by default (desktop) */
}


/* Общие стили для кнопок (Telegram / WhatsApp) */
.telegram-btn,
.whatsapp-btn {
  display: inline-flex;       /* Горизонтальное выравнивание */
  align-items: center;        /* Центрируем по вертикали */
  justify-content: center;    /* Центрируем по горизонтали */
  width: 28px;                /* Фиксированная ширина */
  height: 28px;               /* Фиксированная высота */
  text-decoration: none;      /* Без подчёркиваний */
  padding: 0;                 /* Избавляемся от лишнего внутреннего отступа */
  margin: 0;                  /* При необходимости убираем внешние отступы */
}

/* Сами иконки внутри кнопок */
.telegram-btn img,
.whatsapp-btn img {
  width: 100%;                /* Заполняем весь контейнер */
  height: 100%;
  display: block;             /* Убираем лишние отступы, свойственные инлайнам */
  object-fit: contain;        /* Сохраняем пропорции иконки */
}


/* Media query: On mobile, hide text & show icon */
@media (max-width: 768px) {
  .phone-text {
    display: none; /* hide the phone number text on mobile */
  }
  .phone-icon {
    display: inline; /* show the phone icon on mobile */
  }
  .phone-button {
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 768px) {
	.header {
	  padding: 20px 25px;
	}
}


/* MAIN CONTENT WRAPPER */
.main-content {
  display: flex;
  flex-wrap: wrap;
  /* Увеличим отступы для «воздуха» */
  padding: 60px 40px;
  gap: 20px;
  box-sizing: border-box;
  background-color: #fff; /* Светлый фон */
  align-items: stretch; /* Make both columns the same height */
}

/* Make both cards stretch equally */
.service-card, .warranty-card {
  display: flex;
  flex-direction: column;
  flex: 1; /* Make them take equal width */
  min-height: 100%; /* Ensure full height */
}

/* Make the image fill the entire card */
.warranty-card .card-image {
  flex-grow: 1; /* Expand to fill available space */
  display: flex;
}

.warranty-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the space without distortion */
}

/* Базовые стили для карточек */
.card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 45%; /* Две колонки на больших экранах */
  min-width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Лёгкая тень для объёма */
  box-sizing: border-box;
}

/* ----------------------------------- */
/* SERVICE CARD (LEFT) */
/* ----------------------------------- */
.service-card {
  background-color: #f5f5f5; /* Хотим, чтобы левая карточка была белой */
  box-shadow: none;       /* Можно убрать тень, если не нужна */
}

.service-card .breadcrumb {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

.service-card .title {
  font-family: 'Poppins', sans-serif; 
  /*font-size: 2.4rem;      /* Крупный заголовок */
  /* Минимальное, «идеальное» и максимальное значение */
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;       /* Жирный */
  color: #1d1d1d;         /* Тёмно-серый/чёрный */
  margin-bottom: 20px;    
  line-height: 1.2;       /* Чуть плотнее межстрочье */
}


.service-card .description {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem; 
  color: #444;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 30px;    /* больше отступ до кнопки */
}

.service-card .cta-button {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #222;
  padding: 14px 24px;      /* чуть крупнее кнопка */
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* Fix button width issue inside service-card */
.service-card .cta-button {
  align-self: flex-start; /* Ensures button doesn't stretch */
  width: auto; /* Keeps the button at its original size */
  max-width: fit-content; /* Prevents it from expanding */
}

.service-card .cta-button:hover {
  background-color: #555;
}

/* ----------------------------------- */
/* WARRANTY CARD (RIGHT) */
/* ----------------------------------- */
.warranty-card {
  position: relative;
  padding: 0 !important; 
  border: none;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none; /* Убираем тень, если хотим сделать «картинку на всю» */
}

/* Обёртка для картинки */
.card-image {
  position: relative;
  margin-bottom: 0;
  border-radius: 0;
}

.card-image img {
  width: 100%;
  display: block;
  border-radius: 10px; /* Оставляем немного скруглённых углов */
  object-fit: cover;   /* если нужно обрезать лишнее */
}

/* Пример: яркий красный цвет для скидки */
.accent-discount {
  color: #fff;   /* ярко-красный */
  font-weight: 500; /* жирный текст */
}

/* Пример: оранжевый для бесплатной диагностики */
.accent-diagnostic {
  color: #fff;
  font-weight: 500;
}

/* Текст поверх изображения */
.card-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  /* Лёгкий полупрозрачный чёрный фон */
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Если нужно, чтобы сам заголовок был крупнее */
.card-text h2 {
  margin: 0;
  font-size: 1.1rem;  /* немного крупнее */
  line-height: 1.4;
  color: #fff;        /* белый текст на тёмном фоне */
  font-weight: 600;
}

/* ----------------------------------- */
/* MOBILE (max-width: 768px) */
/* ----------------------------------- */
@media (max-width: 768px) {
  /* Вертикальная раскладка + меньше отступы */
  .main-content {
    flex-direction: column;
    padding: 40px 20px;
  }
  
  .card {
    flex: 1 1 100%;
    min-width: auto;
    margin-bottom: 20px;
  }
  
  .service-card .title {
    font-size: 1.6rem; /* уменьшить заголовок на мобильном */
	font-weight: 700;
  }
  
  .service-card .description {
    font-size: 1rem;
  }
  
  .service-card .cta-button {
    font-size: 0.95rem;
    padding: 12px 20px;
  }
}

/* ------------------- */
/* RESPONSIVE STYLES   */
/* ------------------- */
@media (max-width: 768px) {
  .logo-svg {
    height: 30px; /* smaller height on mobile */
  }

  /* Hide desktop nav, show phone link on mobile */
  .header-nav {
    display: none;
  }

  .mobile-phone {
    display: block;
  }

  /* Stack cards in one column on mobile */
  .main-content {
    flex-direction: column;
  }

  .card {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* 1) Desktop Defaults: pinned at bottom, narrower width */
.warranty-card .card-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  /* We'll limit the width so it doesn't stretch full width. 
     Adjust as needed (e.g. 250px / 300px). */
  max-width: 380px; 
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

/* 2) On Mobile (max-width: 768px): move to the top */
@media (max-width: 768px) {
  .warranty-card .card-text {
    top: 10px;       /* pinned near top */
    bottom: auto;    /* remove bottom pin */
    left: 10px;
    right: 10px;     /* let it stretch across if you prefer */
    max-width: none; /* or keep a narrower max-width if you like */
  }
}

@media (max-width: 1180px) {
  .service-card .title {
    font-size: 2rem; /* или любое подходящее значение */
  }
  .service-card .description {
    font-size: 1rem;
  }
  .main-content {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .service-card .title {
    font-size: 1.6rem; /* или ещё меньше */
  }
  .service-card .description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 20px 10px;
  }
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column; /* Вместо двух колонок будет одна */
    padding: 40px 20px;     /* Уменьшим отступы */
  }
  .card {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 20px;
  }
}
@media (max-width: 900px) {
  .main-content {
    padding: 20px 20px;
  }
}

@media (max-width: 320px) {
  .service-card .title {
    font-size: 1.2rem; /* или ещё меньше */
  }
  .service-card .description {
    font-size: 0.95rem;
  }
}

/* ----------------------------------- */
/* MODULE 2: Почему мы (Why Us)        */
/* ----------------------------------- */
.why-us-section {
  padding: 40px 20px;
  background-color: #fff;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center; /* Ensures text is centered */
  font-weight: 800;
  max-width: 550px; /* Adjust width as needed */
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-left: auto; /* Center the block */
  margin-right: auto; /* Center the block */
  display: block; /* Ensures max-width is applied properly */
}


/* ===== Base / Desktop styles ===== */
.why-us-grid {
  display: flex;
  flex-wrap: wrap;  /* 4 columns on desktop */
  gap: 20px;
  align-items: stretch; /* stretch cards to same height */
}

.why-us-card {
  background-color: #1d1d1d;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* image on top, text below */
  align-items: flex-start;
  flex: 1 1 calc(25% - 20px); /* 4 columns => ~25% each */
  min-width: 220px;
  margin-bottom: 20px; 
}

.why-us-card-content {
  flex: 1 1 auto;  /* expand to fill leftover space => same height */
  padding: 15px;
  box-sizing: border-box;
}

.why-us-card-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff; 
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 2;
}

.why-us-card-img {
  width: 100%;
  display: block;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
}

.why-us-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.why-us-card-text {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  white-space: normal; /* wrap text inside card */
  color: #ccc;
}

/* ===== Mobile override: horizontal slider ===== */
@media (max-width: 768px) {
  .why-us-grid {
    flex-wrap: nowrap !important;        /* Force single row */
    overflow-x: auto !important;         /* Horizontal scroll */
    gap: 20px !important;
    padding-bottom: 10px !important;
    -webkit-overflow-scrolling: touch;
    align-items: stretch !important;     /* same height across cards */
  }

  .why-us-card {
    flex: 0 0 70% !important;  /* each card ~70% screen => partial next card */
    margin-bottom: 0 !important;
    min-width: 0 !important;
  }
}


/* ----------------------------------- */
/* MODULE 3: Что входит в услугу       */
/* ----------------------------------- */
.service-includes {
  padding: 40px 20px;
  background-color: #fff; /* or any other color */
}

.service-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto; /* center the list horizontally */
}

.service-list-item {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

/* ----------------------------------- */
/* SECTION 5: Модели Lixiang           */
/* ----------------------------------- */
.models-section {
  padding: 40px 20px;
  background-color: #fff; /* or another color if desired */
  text-align: center;
}

/* The heading is already using .section-title, 
   so it matches the rest of the site. */
.models-section .section-title {
  margin-bottom: 30px;
}

.models-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center horizontally */
  gap: 20px;
  max-width: 1200px; /* optional limit */
  margin: 0 auto;
}

/* Each card: container for the image + text */
.model-card {
  width: 200px; /* make the card larger */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The gray background wrapper for the car image */
.model-card-image {
  background-color: #f4f4f4;
  border-radius: 19px;
  padding: 15px;
  width: 100%;
  box-sizing: border-box; /* ensure padding doesn't overflow */
}

/* The car image itself */
.model-card-image img {
  width: 100%;
  display: block;
  border-radius: 0; /* or keep 8px if you want rounded corners for the image */
}

/* The car name below the image */
.model-name {
  margin-top: 10px;
  font-weight: bold;
  font-size: 1rem; /* or adjust as needed */
  color: #333;
}

/* RESPONSIVE: On smaller screens, let the cards fill the width */
@media (max-width: 768px) {
  .model-card {
    width: calc(50% - 20px); 
    /* 2 columns on mobile. Adjust if you want 3 columns, etc. */
  }
}

@media (min-width: 1024px) { /* Hide only on screens wider than 1024px */
  .models-grid .model-card:nth-child(6) {
    display: none;
  }
}

/* ----------------------------------- */
/* SECTION: Как это работает           */
/* ----------------------------------- */
/* SECTION: Как это работает */
.how-we-work {
  background-color: #f9f9f9; /* same as “Выбор и покупка” background */
  padding: 60px 20px;
  color: #1d1d1d
}

/* Override the left card description color */
.hw-left .hw-description {
  color: #666 !important; /* pick your desired color */
}

/* Override the text color in the 3 right-side cards */
.hw-card .hw-card-text {
  color: #666 !important; /* pick your desired color */
}


/* 3 columns x 2 rows on desktop */
.hw-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr; /* left tile bigger => 1.3fr, then 1fr + 1fr for top squares */
  grid-template-rows: auto auto;        /* 2 rows total */
  gap: 20px;
  max-width: 1200px; /* optional for centering */
  margin: 0 auto;
  align-items: stretch;
  min-height: 400px; /* ensures enough vertical space */
}

@media (min-width: 769px) {
  /* Increase the horizontal gap ONLY between the left tile and right cards */
  .hw-card1, 
  .hw-card2, 
  .hw-card3 {
    margin-left: 20px; /* or 30px / 40px as you prefer */
  }
}

/* LEFT TILE: spans col1, row1–2 => 2 rows total */
.hw-left {
  grid-column: 1 / 2; 
  grid-row: 1 / 3;    /* row1 through row2 => 2 rows */
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;

  display: flex; /* container for pinned heading & text */
}

/* Inner container => heading at top, text at bottom */
.hw-left-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* heading pinned top, text pinned bottom */
  width: 100%;
}

.hw-heading {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

@media (min-width: 769px) {
    .hw-heading {
        font-size: 1.2rem; /* Bigger on non-mobile devices */
		font-weight: 500;
    }
}

@media (max-width: 768px) {
  .hw-card-text {
    display: none;
  }
}

.hw-steps-list {
  list-style: none;         /* убираем стандартные маркеры */
  padding-left: 0;          /* убираем отступ слева */
  margin-bottom: 20px;
}

/* Каждый элемент списка – “иконка” + текст */
.hw-steps-list li {
  display: flex;            /* иконка + текст в одной строке */
  align-items: center;
  margin-bottom: 20px;      /* отступ между шагами */
}

/* Стили иконки (круг с цифрой) */
.hw-step-icon {
  width: 24px;
  height: 24px;
  background-color: #222;   /* тёмный фон */
  color: #fff;              /* белый текст */
  border-radius: 50%;       /* скругление => круг */
  display: flex;            /* центрируем цифру внутри */
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 10px;       /* отступ от текста */
  font-size: 0.8rem;
}

/* Текст шага */
.hw-steps-list li span {
  font-size: 1rem;
  line-height: 1.4;
  color: #555;
}


.hw-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 10px;
}

/* RIGHT SIDE CARDS */
.hw-card1 {
  grid-column: 2 / 3; /* col2, row1 => top-left of right side */
  grid-row: 1 / 2;
}
.hw-card2 {
  grid-column: 3 / 4; /* col3, row1 => top-right of right side */
  grid-row: 1 / 2;
}
.hw-card3 {
  grid-column: 2 / 4; /* col2–3 => wide bottom tile */
  grid-row: 2 / 3;    /* row2 only */
}

/* SHARED CARD STYLING */
.hw-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background-color 0.5s ease, color 0.5s ease;
  min-height: 160px; /* ensure consistent height even if text is short */
}

/* On hover => black background, white text + arrow */
.hw-card:hover {
  background-color: #1d1d1d;
  color: #fff;
  cursor: pointer;
}

.hw-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333; /* default => invert to white on hover (inherit) */
}

.hw-card-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555; /* default => invert to white on hover (inherit) */
  margin-bottom: 30px; /* optional spacing above arrow */
}

/* Arrow => also white on hover (inherit) */
.hw-card-arrow {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 1.4rem;
  color: #999;
  /* Make arrow a “block” so transform applies cleanly */
  display: inline-block;      
  transform: rotate(315deg);   
  transform-origin: center;   
}

/* 1) Make text elements inherit color from .hw-card */
.hw-card-title,
.hw-card-text,
.hw-card-arrow {
  color: #1d1d1d; /* default color */
  transition: color 0.2s ease; /* smooth color transition */
}


/* 2) Force text & arrow to white on hover, overriding any leftover rules */
.hw-card:hover .hw-card-title,
.hw-card:hover .hw-card-text,
.hw-card:hover .hw-card-arrow {
  color: #fff !important; 
}

/* 1) By default: show DESKTOP-ONLY, hide MOBILE-ONLY */
.hw-desktop-only {
  display: block;
}
.hw-mobile-only {
  display: none;
}

/* 2) On mobile (<=768px): hide DESKTOP-ONLY, show MOBILE-ONLY */
@media (max-width: 768px) {
  .hw-desktop-only {
    display: none !important;
  }
  .hw-mobile-only {
    display: block !important;
  }
}


/* MOBILE: 2 columns for the top squares, left tile full width, bottom wide full width */
@media (max-width: 768px) {
  .hw-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
    grid-template-rows: auto auto auto; 
    /* row1 => left tile spanning col1->2
       row2 => top squares side by side
       row3 => bottom wide spanning col1->2 */
  }

  /* left tile => col1->2, row1 => full width */
  .hw-left {
    grid-column: 1 / 3; 
    grid-row: 1 / 2;
  }

  /* top squares => side by side in row2 */
  .hw-card1 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .hw-card2 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  /* bottom wide => col1->2, row3 => full width */
  .hw-card3 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }
  
  .hw-card {
	  min-height: 120px;
  }
  
  .hw-card-title {
	  font-size: 1.1rem;
  }
  
	  
}


/* ----------------------------------- */
/* SECTION 4: Частые вопросы (FAQ)     */
/* ----------------------------------- */
.faq-section {
  padding: 40px 20px;
  background-color: #fff; /* Adjust as needed */
}

.faq-list {
  max-width: 800px;
  margin: 0 auto; /* center the list */
  display: flex;
  flex-direction: column;
  gap: 15px; /* space between FAQ items */
}

/* Each FAQ item (question + answer) */
.faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px 10px 20px 20px;
  position: relative;
  /* optionally: border: 1px solid #eee; */
}

/* Remove default marker from <summary> */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  outline: none; /* remove focus outline if desired */
  margin-bottom: 5px; /* space below question */
  padding-right: 2rem; /* enough space for a bigger plus sign */
}

/* 2) Increase the plus sign size and shift it slightly left if needed */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 15px;       /* adjust as needed */
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; /* bigger plus sign */
  line-height: 1;    /* to prevent extra spacing issues */
}

/* When <details> is open, switch "+" to "-" (same size, position) */
.faq-item[open] summary::after {
  content: "-";
}

/* The answer text (inside <p>) */
.faq-item p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: 10px; /* space above answer text */
  color: #555;      /* slightly darker text color */
}

/* (Optional) Style for the main FAQ heading */
.faq-section .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 800;
}

/* ----------------------------------- */
/* FULL-SCREEN CTA SECTION             */
/* ----------------------------------- */
.full-screen-cta {
  /* Fill the entire viewport height */
  min-height: 100vh;

  /* Center content vertically and horizontally */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Background color (or image, if desired) */
  background-color: #f9f9f9;
  padding: 20px; /* fallback padding for small screens */
  box-sizing: border-box;
}

.cta-content {
  /* White card in the middle */
  background-color: #fff;
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  padding: 60px 40px;
  text-align: center;
  box-sizing: border-box;
}

/* Title and subtitle inside the card */
.cta-title {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.cta-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* The form layout: vertical stack with spacing */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-form select {
  background-color: #fff !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5em; 

  /* Use your PNG instead of the SVG: */
  background: 
    url("images/down-arrow.png") 
    no-repeat 
    right 1em center / 1em auto, 
    #fff; 
  /* Explanation:
     - "images/down-arrow.png": your PNG file path
     - "no-repeat right 1em center": positions the icon 1em from the right, centered vertically
     - "/ 1em auto": scales the PNG to ~1em width (auto height)
     - "#fff": sets a white background layer behind the icon
  */
}

/* Hide system arrow in IE/Edge */
.cta-form select::-ms-expand {
  display: none;
}




/* Inputs and select fields */
.cta-form input,
.cta-form select {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
}

.cta-form input:focus,
.cta-form select:focus {
  border-color: #888; /* highlight on focus */
}

.cta-button,
button {
  background-color: var(--primary-color); /* #2B65EC or your chosen color */
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #555; /* a darker shade of your primary color */
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-content {
    padding: 40px 20px;
  }
  .cta-title {
    font-size: 1.6rem;
  }
  .cta-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}


/* ---------- */
/* RESPONSIVE FAQ*/
/* ---------- */
@media (max-width: 768px) {
  .faq-item summary {
    font-size: 1rem;
  }
  .faq-item summary::after {
    font-size: 1.2rem;
  }
}

/* ----------------------------------- */
/* SECTION 7: Yandex Reviews           */
/* ----------------------------------- */
.yandex-reviews-section {
  padding: 40px 20px;
  background-color: #f9f9f9; /* or any color you prefer */
  text-align: center;     /* centers the heading */
}

/* Reuse your .section-title for the heading, if already defined. */

.yandex-reviews-wrapper {
  max-width: 560px; /* limit to widget's max width */
  margin: 0 auto;   /* center the widget horizontally */
  position: relative;
}

/* The container for the iframe + link */
.yandex-reviews-embed {
  width: 100%;
  height: 800px;           /* maintain the widget’s original height */
  overflow: hidden;
  position: relative;
  border-radius: 8px;      /* if you want a smooth corner on container */
  margin: 0 auto;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .yandex-reviews-embed {
    height: 600px; /* reduce height if 800px is too tall on mobile */
  }
}

/* ------------------------------- */
/* SECTION: Shorts / Reviews       */
/* ------------------------------- */
.reviews-section {
  background-color: #fff;   /* match your site’s background */
  overflow: hidden;         /* hide any stray horizontal scrollbars */
  padding: 60px 20px;       /* standard section spacing */
  position: relative;       /* for absolutely positioned content */
}

/* The horizontal container for all cards */
.reviews-grid {
  display: flex;
  flex-wrap: nowrap;        /* single row */
  gap: 20px;                /* space between cards */
  overflow-x: auto;         /* horizontal scroll */
  padding-bottom: 20px;     /* spacing so scrollbar doesn’t overlap content */
  scroll-behavior: smooth;  /* optional smooth scrolling */
  -webkit-overflow-scrolling: touch; /* smooth iOS scrolling */
}

/* Remove scrollbar arrows */
.reviews-grid::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Set overall scrollbar height */
.reviews-grid::-webkit-scrollbar {
  height: 3px; /* thin bar */
}

/* Make the track transparent, then fake a 50%-width bar using :after */
.reviews-grid::-webkit-scrollbar-track {
  background-color: transparent;
  position: relative;
}

/* The "fake" background bar, centered at 50% width */
.reviews-grid::-webkit-scrollbar-track:after {
  content: '';
  position: absolute;
  left: 33%;         /* смещение влево, чтобы "фейковый" трек располагался по центру */
  width: 34%;        /* сама ширина скролл-бара */
  height: 3px;       /* совпадает с общей высотой скролл-бара */
  background-color: #eee; 
  border-radius: 2px;
  pointer-events: none;
}

/* The thumb (draggable part) is still full-range, but visually it’s on top of the fake track */
.reviews-grid::-webkit-scrollbar-thumb {
  background-color: #222;
  border-radius: 2px;
}

/* Optional hover effect on the thumb */
.reviews-grid::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* Firefox-specific fallback (doesn't support partial track centering):
   We'll at least make it thin and match colors. */
.reviews-grid {
  scrollbar-width: thin;
  scrollbar-color: #1d1d1d transparent; 
}

/* 1) Text card (title + subtitle + button) */
/* Увеличиваем ширину первого текстового блока */
.text-card {
  width: 350px !important;      /* делаем шире */
  min-width: 350px !important;  /* чтобы при скролле не сжималось */
  height: auto !important;      /* убираем фиксированную высоту, если она наследуется */
}
/* 2) Image cards */
.review-card {
  position: relative; /* allows positioning hashtags over images */
  width: 300px;   /* fixed width to accommodate hashtags inside */
  height: 320px;  /* adjusted height */
}

/* Title and subtitle in the text card */
.reviews-title {
  font-size: 2rem;  /* adjust to match your site’s headings */
  margin-bottom: 10px;
  font-weight: 800;
}
}

.reviews-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.4;
}

.review-card img {
  /*width: 100%;   /* ensures image covers the entire space */
  height: 100%;
  object-fit: cover !important;
  border-radius: 6px;
  display: block;
}

/* Hashtags inside the images */
.hashtag-container {
  position: absolute;
  top: 10px;    /* position at the top of the image */
  left: 10px;   /* adjust left for proper alignment */
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;  /* white text on dark image background */
  background: rgba(0, 0, 0, 0.5);  /* transparent black background */
  padding: 5px 10px;
  border-radius: 10px;
  text-align: center;
  max-width: 85%;   /* prevent overflow */
  word-wrap: break-word; /* ensure hashtags wrap within the container */
}

/* Captions under each image */
.review-caption {
  font-size: 0.9rem;
  color: #333;
  margin-top: 10px;
}

.reviews-cta-button {
  display: none !important;
}
/* CTA button in the text card */

.reviews-cta-button:hover {
  background-color: #555;
}

/* ----------------------------------- */
/* Make the entire row slightly smaller on smaller screens,
   so 3 images + partial 4th can be visible. */
/* Adjust as needed for your exact layout. */
@media (max-width: 1200px) {
  .review-card {
    flex: 0 0 220px; /* slightly narrower cards on mid-sized screens */
  }
}

/* MOBILE: you can keep or tweak this if needed */
@media (max-width: 768px) {
  .reviews-section {
    overflow: visible !important; 
    /* или overflow: initial; 
       чтобы не обрезался следующий блок */
    padding: 40px 20px;
  }
  
   .text-card {
    flex: 0 0 200px !important;  /* «жёсткая» ширина 240px */
    width: 200px !important;     
    min-width: 200px !important; 
    height: auto !important;     /* как и раньше */
  }
  .review-card {
    flex: 0 0 180px; /* уже прописано, но дублируем для ясности */
  }
  .reviews-title {
    font-size: 1.5rem;
  }
  .reviews-subtitle {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
}

/* ----------------------------------- */
/* SECTION 8: Оценить ремонт по фото   */
/* ----------------------------------- */

/* Outer section: white background, vertical padding */
.photo-estimate-outer {
  background-color: #fff; /* white background */
  padding: 60px 0;       /* top/bottom spacing */
}

/* Inner black box, centered with a max-width */
.photo-estimate-inner {
  background-color: #1d1d1d; 
  color: #fff;
  max-width: 1200px;   /* adjust to your preferred width */
  margin: 0 auto;      /* center horizontally */
  border-radius: 8px;  /* optional rounding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  #padding: 40px;       /* internal padding inside the black box */
  padding-left: 40px;
  padding-right: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 20px;
}

/* Left column (text + CTA) */
.photo-estimate-left {
  flex: 1;
}

.photo-estimate-title {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 800;
  /*----------------*/
  max-width: 450px; /* Adjust width as needed */
  word-wrap: break-word;
  overflow-wrap: break-word;

  display: block; /* Ensures max-width is applied properly */
}

.photo-estimate-subtitle {
  font-size: 1rem;
  line-height: 1.4;
  color: #ccc;
  margin-bottom: 20px;
  max-width: 450px; /* Adjust width as needed */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.photo-estimate-button {
  display: inline-block;
  background-color: #fff; /* white button on black bg */
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 30px;  /* narrower button */
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.photo-estimate-button:hover {
  background-color: #e0e0e0;
}

/* Right column (image) */
.photo-estimate-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-estimate-right img {
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Mobile styles: stack columns, image on top, text below */
@media (max-width: 768px) {
  .photo-estimate-inner {
    flex-direction: column;
    padding: 20px;
    margin-left: 20px;
    margin-right: 20px;
  }
  /* Reorder so .photo-estimate-right is on top (order: 1)
     and .photo-estimate-left is below (order: 2) */
  .photo-estimate-right {
    order: 1;
  }
  .photo-estimate-left {
    order: 2;
  }

  .photo-estimate-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  .photo-estimate-subtitle {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }
  .photo-estimate-button {
    padding: 10px 20px;
    font-size: 0.95rem;
	margin-bottom: 20px;
  }
  .photo-estimate-right img {
    margin-top: 0; /* no extra margin needed since it's now on top */
  }
}


/* Main footer area */
.footer {
  background-color: #1d1d1d;
  color: #fff;
  padding: 40px 20px 20px; /* top & bottom padding, reduce bottom if needed */
  border-top: 1px solid #ddd;
  box-sizing: border-box;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* This aligns items at the top */
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* 1) Left side: Logo + City */
.footer-left {
  display: flex;
  align-items: center;
  margin-bottom: 20px; /* space for small screens */
}

.footer-logo {
  width: 60px;
  height: auto;
}

.city {
  font-size: 1rem;
  margin-left: 10px;
  color: #fff;
}

/* 2) Middle Nav */
.footer-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #e6e6e6;
}

/* 3) Contact info */
.footer-contact {
  text-align: left;
  margin-bottom: 20px;
}

.phone {
  font-size: 1.2rem;
  font-weight: bold;
}

/* PHONE BUTTON (pill shape) */
.phone-button-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;                /* Ensure text is white */
  border: 1px solid #fff;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.addresses {
  margin-top: 10px;
  font-size: 0.9rem;
}

.address {
  margin-bottom: 5px;
}

.footer-hours {
  font-size: 1rem;
  margin-top: 10px;
}

/* 4) Action buttons (Telegram & WhatsApp) */
.footer-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.telegram-btn-footer,
.whatsapp-btn-footer {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.telegram-btn-footer img,
.whatsapp-btn-footer img {
  width: 30px;
  height: auto;
}

/* 5) LEGAL + COMPANY INFO: new block under .footer-container */
.footer-legal {
  max-width: 1200px; /* match container width */
  margin: 0 auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.2); /* subtle divider */
  display: flex;
  flex-wrap: wrap;        /* let it wrap on small screens */
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.company-info {
  font-size: 0.9rem;
  color: #ccc;            /* slightly lighter text color than white? */
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #fff;
}

/* MEDIA QUERIES: For narrower screens */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Each group stacked */
  .footer-left,
  .footer-nav,
  .footer-contact,
  .footer-actions {
    margin-bottom: 15px;
  }
  
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .legal-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .phone-text-footer {
    font-size: 0.95rem;
    color: #fff;            /* Inherit from .phone-button-footer */
	padding: 8px 16px;
  }

}



/* 1) Sticky Button Container (hidden by default for desktop) */
.mobile-sticky-container {
  display: none; /* only show on mobile via media query */
}

/* Show the sticky container at screen widths up to 768px */
@media (max-width: 768px) {
    .mobile-sticky-button {
        background-color: #1d1d1d;
        color: #fff;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 20px;
        padding: 12px 18px;
        font-size: 16px;
        line-height: 1.2;
        width: 100%;
        max-width: 340px;
        border: 4px solid #999; /* Added white 2px border */
        cursor: pointer;
        opacity: 0;  /* Initially hidden for animation */
        /*transform: translateY(20px);  /* Initial position for smooth entry */
        animation: fadeInUp 0.6s ease-out 0.3s forwards; /* Delay and smooth appearance */
    }

    .mobile-sticky-button:hover {
        background-color: #222;
    }

    /* Smooth fade-in effect for the sticky container */
    .mobile-sticky-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        z-index: 9999;
        padding: 10px 30px;
        box-sizing: border-box;
        opacity: 0;  /* Initially hidden */
        animation: fadeIn 0.8s ease-out 0.2s forwards; /* Delayed appearance */
    }

    /* Button appearance animation */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Container fade-in animation */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
	
  .button-text {
    flex: 1;
    margin-right: 12px;
  }

  .circle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
  }
  .circle-arrow svg {
    stroke: #000;
    width: 14px;
    height: 14px;
  }
}

/* 1) Popup Overlay (hidden by default) */
.popup-overlay {
  display: none; /* будет показан через JS (style.display = 'flex') */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

/* 2) Тёмная подложка (без blur) */
.popup-overlay .popup-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Просто полупрозрачный чёрный фон */
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 0;
  transition: all 0.3s ease;
}


/* 3) Popup Content Box */
.popup-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 360px;
    position: relative;
    z-index: 10;
    transform: scale(0.95);
}

/* Close Button */
.popup-close {
  position: absolute;
  top: -5px;
  right: -10px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.2s;
}
.popup-close:hover {
  color: #000;
}

/* Title */
.popup-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

/* Description */
.popup-content p {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 16px;
}

.popup-phone-input {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;  /* ADDED BACK */
    border: 1px solid #ddd; /* ADDED BACK */
    outline: none;
    transition: border-color 0.3s; /* ADDED BACK */
    position: relative; /* ADDED BACK */
    background-color: transparent; /* KEEP TRANSPARENT BACKGROUND */
    z-index: 10; /* ADDED BACK */
}

.popup-phone-input:focus {
    border-color: #000;
    outline: none !important;
    box-shadow: none !important;
}

/* Send Button */
.popup-send-button {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.popup-send-button:hover {
  background: #222;
  transform: scale(1.02);
}

/* Animation Effects */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
