.center {
  margin: auto;
  width: 80%;
  max-width: 1600px; /* Ограничение для больших экранов */
  border: 1.2px solid #a5addb;
  padding: 20px;
  border-radius: 8px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Сетка для сервисов (адаптивная) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px;
}

/* Строка с корзиной и WhatsApp */
.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 5px;
}

/* Кнопка корзины */
.action-row form button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #ff9800;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}


.action-row form button:hover {
  background-color: #e68a00;
}


/* Кнопка WhatsApp */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6%;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn img {
  width: 100%;
  height: auto;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .center {
    width: 95%;
    padding: 15px;
  }


  .service-grid {
    grid-template-columns: 1fr; /* Одна колонка на мобильных */
    gap: 10px;
  }

  .service-grid button,
  .action-row form button {
    font-size: 14px;
    padding: 10px 15px;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }
}

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

  .whatsapp-btn {
    width: 50px;
    height: 50px;
  }
}


.custom-class {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem; /* 8px */
}

.responsive-text {
  font-size: 1.25rem; /* 20px */
  color: black; /* gray-300 */
  font-weight: 500; /* semibold */
}

@media (min-width: 768px) {
  .responsive-text {
    font-size: 1.5rem; /* 24px */
  }
}


.dynamic-text {
  font-size: 0.875rem;
  color: var(--dynamic-color); /* Определяется JS */
}

.calculation-block {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.left-column,
.right-column {
  display: table-cell;
  vertical-align: top;
  padding: 12px;
}

.left-column {
  width: 70%;
  background-color: #f8f9fa;
}

.right-column {
  width: 3 grinding%;
  text-align: center;
}

.sum-label {
  font-size: 16px;
  font-weight: 600;
  color: #e74c3c;
}

.left-column span {
  display: table-row;
  margin: 8px 0;
}
.futter-calc {
  background-color: #f0f0f0; /* Светло-серый фон подвала */
  padding: 20px 0;
}

.cookie-notice {
  background-color: #90EE90;
  margin: auto;
  width: 80%;
  max-width: 1200px; /* Ограничение для больших экранов */
  padding: 20px;
  border-radius: 8px;
  }


/* css чисто для футера */
.footer-container {
  display: flex;                  /* Flex-контейнер для горизонтального расположения */

  align-items: center;            /* Выравниваем блоки по вертикали */
  flex-wrap: wrap;                /* Позволяем блокам переноситься при нехватке места */
  gap: 20px;                      /* Промежуток между блоками */
  max-width: 1200px;              /* Ограничиваем максимальную ширину контейнера */
  margin: 0 auto;                 /* Центрируем контейнер в пределах подвала */
  padding: 0 20px;                /* Горизонтальные отступы на десктопе */

}

.footer-rab,
.footer-nav,
.footer-contacts{
    margin: 0; /* Убираем лишние вертикальные отступы */
}

.footer-rab li,
.footer-nav li,
.footer-contacts li {
  list-style: none;    /* Убираем маркеры списка */
  margin-bottom: 5px;  /* Отступ между пунктами списка */
}

.footer-nav a,
.footer-contacts a {
  text-decoration: none; /* Убираем подчёркивание у ссылок */
  color: #333;           /* Цвет текста ссылок */
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column; /* На мобильных блоки идут вертикально */
    align-items: flex-start;/* Выравниваем по левому краю */
    text-align: left;       /* Выравниваем текст по левому краю */
    gap: 10px;              /* Меньший промежуток между блоками */
    padding: 0 0px;        /* Меньше горизонтальные отступы слева и справа */
  }

  .footer-nav,
  .footer-contacts {
    margin: 10px 0; /* Вертикальные отступы между блоками на мобильных */
  }
}

/* раздел контакты*/
.b-content-columns_content_a-b.b-content-columns_viewtype_buisnescards>.b-content-column_layout_b>.b-content-column__in,.b-content-columns_content_a-b.b-content-columns_viewtype_information>.b-content-column_layout_b>.b-content-column__in,.b-content-columns_content_a-b.b-content-columns_viewtype_processing>.b-content-column_layout_b>.b-content-column__in,.b-list_content_scroll-pick-up.b-list_type_view .b-story_content_pick-up-points,.b-loader_content-type_calculation.b-loader_viewtype_nospinner .b-loader__text,.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
    padding-left: 0
}

/* ============================================================
   НОВЫЙ ДИЗАЙН — Калькулятор final
   ============================================================ */

/* --- Глобальный сброс отступов body --- */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f5f7;
}

/* ---- ХЕДЕР ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2340;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a.active {
  color: #3a7bd5;
  border-bottom: 2px solid #3a7bd5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.header-btn:hover {
  background: #f5f7fa;
}

.header-separator {
  width: 1px;
  height: 32px;
  background: #e0e0e0;
  margin: 0 4px;
}

.header-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3a7bd5;
  text-decoration: none;
  flex-shrink: 0;
}

.header-telegram img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

/* ---- HERO-БАННЕР ---- */
.hero-banner {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: #f4f5f7;
  box-sizing: border-box;
  height: 260px;
}

/* Только панель "Добрый день" */
.hero-panel {
  flex: 0 0 28%;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 16px;
}

.hero-panel--navy { background: linear-gradient(135deg, #2c3e6e 0%, #3b5998 100%); }

.hero-panel__img {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  max-height: 120px;
  max-width: 120px;
  object-fit: contain;
}

.hero-panel__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.hero-panel__date {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Правая группа с готовым баннером */
.hero-right {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-right img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left top;
}

/* ---- СТРОКА СЕРВИСОВ ---- */
.services-section {
  background: #fff;
  padding: 12px 40px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
  overflow-x: auto;
}

.services-row {
  display: inline-flex;
  text-align: left;
  gap: 12px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.services-row::-webkit-scrollbar {
  height: 4px;
}
.services-row::-webkit-scrollbar-track {
  background: transparent;
}
.services-row::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 4px;
}

.service-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 10px 10px;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  color: #333;
  font-weight: 500;
  white-space: normal;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
  flex: 0 0 110px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.service-btn:hover {
  background: #f5f7ff;
  border-color: #c5cfe0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.service-btn img {
  width: 100px;
  height: 70px;
  object-fit: contain;
}

/* ---- АКТИВНАЯ КНОПКА СЕРВИСА ---- */
.service-btn--active {
  border-color: #3a7bd5;
  background: #f0f4ff;
  box-shadow: 0 0 0 2px #3a7bd540;
}

/* ---- ГЛАВНАЯ СТРАНИЦА: СЕТКА УСЛУГ ---- */
.calc-categories-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 40px;
}

.calc-categories-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2340;
  margin: 0 0 24px 0;
}

.calc-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.calc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 20px;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  text-decoration: none;
  color: #1a2340;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.calc-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-color: #b0bfd8;
  transform: translateY(-2px);
}

.calc-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.calc-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a2340;
}

@media (max-width: 1200px) {
  .calc-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .calc-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .calc-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-categories-section {
    padding: 0 20px;
    margin: 24px auto;
  }
}

@media (max-width: 480px) {
  .calc-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- ДВУХКОЛОНОЧНЫЙ LAYOUT СТРАНИЦЫ КАЛЬКУЛЯТОРА ---- */
.calc-page-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1400px;
  margin: 16px auto;
  padding: 0 24px;
}

/* ---- СЕКЦИЯ КАЛЬКУЛЯТОРА ---- */
.calc-section {
  flex: 3 0 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.calc-section--media {
  flex: 2 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a2340;
  margin: 0 0 14px 0;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  margin-bottom: 14px;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.shirka-photo {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
}

.calc-input,
.calc-select,
.calc-textarea {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: #f0f2f5;
  font-size: 0.9rem;
  color: #333;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.calc-input:focus,
.calc-select:focus,
.calc-textarea:focus {
  background: #e8eaf0;
  box-shadow: 0 0 0 2px #3a7bd540;
}

.calc-textarea {
  resize: vertical;
  min-height: 52px;
}

.calc-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.calc-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3a7bd5;
  cursor: pointer;
  flex-shrink: 0;
}

.calc-checkbox-row label {
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  font-weight: 500;
}

.calc-submit-btn {
  padding: 9px 28px;
  background: #3a7bd5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.calc-submit-btn:hover {
  background: #2c63b8;
}

/* ---- КАРТОЧКА РЕЗУЛЬТАТА ---- */
.result-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.result-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-card__label {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}

.result-card__price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a2340;
}

.result-card__btn {
  padding: 9px 22px;
  background: #3a7bd5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.result-card__btn:hover {
  background: #2c63b8;
}

/* ---- ФУТЕР ---- */
.site-footer {
  background: #2c3448;
  color: #cdd5e0;
  padding: 40px 32px 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.footer-col__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  color: #aab4c4;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-col p {
  margin: 4px 0;
  font-size: 0.875rem;
  color: #aab4c4;
}

.footer-bottom {
  border-top: 1px solid #3d4a62;
  padding-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: #7a8699;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- БУРГЕР-КНОПКА ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Анимация крестика */
.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- МОБИЛЬНОЕ МЕНЮ ---- */
.mobile-nav {
  display: none;
  position: absolute;
  top: 64px; /* высота шапки */
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 99;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.mobile-nav--open {
  max-height: 400px;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.mobile-nav ul li a {
  display: block;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.mobile-nav ul li:last-child a {
  border-bottom: none;
}

.mobile-nav ul li a:hover {
  background: #f5f7ff;
  color: #3a7bd5;
}

/* Позиционируем шапку для выпадающего меню */
.site-header {
  position: relative;
}

/* ---- АДАПТИВНЫЕ ВИДЕО ---- */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* соотношение 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  flex: 1 1 280px;
  max-width: 480px;
  min-width: 220px;
}

/* Видео внутри правой колонки калькулятора */
.calc-section--media .video-responsive {
  flex: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- АДАПТАЦИЯ ---- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-nav {
    display: block;
  }
  .services-section {
    padding: 10px 16px;
  }
  /* Медиа-блок уходит под калькулятор */
  .calc-page-layout {
    flex-direction: column;
    gap: 28px;
    padding: 0 16px;
    margin: 12px auto;
  }
  .calc-section {
    flex: none;
    width: 100%;
  }
  .calc-section--media {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  .shirka-photo {
    height: 160px;
  }
  /* Форма остаётся 2-колоночной */
  .calc-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
  }
}

/* Мобильные: сжать строку сервисов, скрыть картинки */
@media (max-width: 640px) {
  .calc-page-layout {
    padding: 0 10px;
    margin: 8px auto;
  }
  /* Скрываем картинки в кнопках сервисов — экономим ~90px */
  .service-btn img {
    display: none;
  }
  .service-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    gap: 0;
    font-size: 11px;
    white-space: nowrap;
  }
  .services-section {
    padding: 6px 10px;
  }
  .calc-section h2 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
  }
  .calc-form-grid {
    gap: 7px 14px;
    margin-bottom: 10px;
  }
}

@media (max-width: 670px) {
  /* Hero */
  .hero-banner {
    flex-direction: column;
    height: auto;
  }
  .hero-panel {
    min-height: 120px;
    height: auto;
    padding: 16px;
  }
  .hero-panel__title {
    font-size: 1.1rem;
  }
  .hero-panel__img {
    max-height: 110px;
    max-width: 110px;
  }

  /* Header */
  .site-header {
    padding: 0 12px;
    gap: 8px;
  }
  .header-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  /* Services */
  .services-section {
    padding: 12px 8px;
  }

  /* Calc section */
  .calc-section {
    padding: 0 12px;
    margin: 20px auto;
  }
  .calc-section h2 {
    font-size: 1.2rem;
    margin: 0 0 16px 0;
  }
  .calc-submit-btn {
    width: 100%;
  }
  .result-card__btn {
    width: 100%;
  }

  /* Video grid */
  .video-grid {
    flex-direction: column;
  }
  .video-responsive {
    max-width: 100%;
    flex: 1 1 auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .result-card {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .site-logo {
    font-size: 1rem;
  }
  .header-btn {
    padding: 5px 8px;
    font-size: 0.72rem;
  }
  .header-telegram {
    width: 32px;
    height: 32px;
    display: block;
  }
  .calc-section h2 {
    font-size: 1.05rem;
  }
}
