/* =========================================================
   GRAND MASTER – ЧИСТЫЙ custom.css
   ========================================================= */

/* ---------- Палитра проекта ---------- */

:root {
  --green: #2d9b41;
  --green-dark: #1f7a32;

  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  --telegram: #0088cc;
  --telegram-dark: #0071aa;

  --black: #111111;
  --white: #ffffff;

  /* Алиасы под старые переменные */
  --gm-green: var(--green);
  --gm-green-700: var(--green-dark);
}

/* =========================================================
   1. ШАПКА: меню + телефон + иконка WhatsApp
   ========================================================= */

/* Меню под логотипом – делаем зелёный текст, без фоновых квадратов */
header .header-nav-main nav > ul > li > a {
  color: var(--gm-green) !important;
  transition: color 0.2s ease;
  background: transparent !important;
}

header .header-nav-main nav > ul > li > a:hover,
header .header-nav-main nav > ul > li.active > a {
  color: var(--gm-green-700) !important;
}

/* Телефон в верхней узкой полосе */
.header-nav-top .phone-link {
  color: var(--black) !important;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-nav-top .phone-link:hover {
  color: var(--green) !important;
}

/* Иконка WhatsApp рядом с телефоном (в шапке) */
.whatsapp-icon i {
  color: var(--whatsapp);
  font-size: 26px;
  line-height: 1;
  margin-left: 6px;
  transition: all 0.3s ease;
  text-shadow: 0 0 3px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon i:hover {
  color: var(--whatsapp-dark);
  transform: scale(1.15);
  text-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
}

/* Десктоп: меню по центру */
@media (min-width: 992px) {
  .header-nav-main nav > ul {
    justify-content: center;
    width: 100%;
  }
}

/* =========================================================
   2. БЛОК "Почему выбирают Grand Master"
   ========================================================= */

.gm-why-box {
  background: #ffffff;
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 20px 18px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.gm-why-box h4 {
  color: var(--green);
  font-size: 1rem;
}

.gm-why-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.gm-why-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* =========================================================
   3. СТРАНИЦА "Сборка мебели" (sborka-page)
   ========================================================= */

.sborka-page {
  padding-bottom: 20px;
}

/* HERO */

.sborka-hero {
  padding-top: 10px;
}

.sborka-hero-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  background: #f4f5f7;
  margin-bottom: 12px;
}

.sborka-hero-title {
  font-size: 32px;
  line-height: 1.25;
}

@media (min-width: 992px) {
  .sborka-hero-title {
    font-size: 36px;
  }
}

.sborka-hero-subtitle {
  font-size: 16px;
  color: #4b5563;
}

.sborka-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sborka-hero-badge {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f7ef;
  color: var(--gm-green-700);
  font-weight: 500;
}

.sborka-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sborka-hero-btn-main {
  box-shadow: 0 10px 25px rgba(21, 163, 74, 0.35);
  border-radius: 999px;
}

.sborka-hero-btn-main:hover {
  box-shadow: 0 12px 32px rgba(21, 128, 61, 0.45);
  transform: translateY(-1px);
}

.sborka-hero-btn-secondary {
  border-radius: 999px;
}

.sborka-hero-note {
  font-size: 13px;
  color: #6b7280;
}

/* Заголовки секций */

.sborka-section-title {
  font-size: 22px;
  line-height: 1.3;
}

/* ЧТО МЫ СОБИРАЕМ */

#sborka-services .sborka-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 767.98px) {
  #sborka-services .sborka-services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#sborka-services .sborka-service-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  margin-bottom: 16px;
}

#sborka-services h3.sborka-service-title {
  font-size: 18px !important;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: none !important;
}

#sborka-services p.sborka-service-text {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 0;
}

/* DETAILS (скрытый расширенный список) */

.sborka-more {
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 10px 14px;
  background: #f9fafb;
}

.sborka-more summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.sborka-more summary::-webkit-details-marker {
  display: none;
}

.sborka-more ul,
.sborka-more ol {
  font-size: 14px;
}

/* ФИЧИ */

.sborka-feature-box {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 14px 16px;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
}

/* БЛОК "Для бизнеса" */

.sborka-business {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 18px 18px 14px;
  background: #f3f4f6;
}

/* ЭТАПЫ */

.sborka-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 767.98px) {
  .sborka-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sborka-step {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.sborka-step:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.sborka-step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.sborka-step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sborka-step-text {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 0;
}

/* ПРАВАЯ КОЛОНКА */

.sborka-sidebar-image-wrapper {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.sborka-sidebar-image {
  display: block;
  width: 100%;
  height: auto;
}

.sborka-sidebar-card {
  margin-top: 24px;
  border-radius: 20px;
  background: #ffffff;
  padding: 18px 20px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.9);
}

.sborka-sidebar-title {
  font-size: 18px;
}

/* Мобилка – залипающая нижняя плашка */

.sborka-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.18);
  z-index: 1050;
  display: flex;
  gap: 8px;
}

.sborka-sticky-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.sborka-sticky-btn-call {
  border: 1px solid rgba(148, 163, 184, 0.9);
  color: #111827;
  background: #ffffff;
}

.sborka-sticky-btn-main {
  background: var(--green);
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .sborka-hero-title {
    font-size: 26px;
  }

  .sborka-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sborka-sidebar-card {
    margin-bottom: 70px; /* место под залипающую плашку */
  }
}

/* =========================================================
   4. B2B: маленькие зелёные иконки списков
   ========================================================= */

.section .b2b-list-small.list-icons {
  margin-top: -0.1rem;
}

.section .b2b-list-small.list-icons li {
  padding-left: 22px;
  margin-bottom: 0.15rem;
  font-size: 14px;
  line-height: 1.3;
}

.section .b2b-list-small.list-icons li > i {
  width: 12px !important;
  height: 12px !important;
  line-height: 12px !important;
  font-size: 8px !important;
  top: 1.75em !important;
}

/* =========================================================
   5. FAQ блок
   ========================================================= */

.faq {
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid #eeeeee;
  padding: 12px 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================================
   6. Компактный футер
   ========================================================= */

#footer {
  padding: 20px 0 10px;
  background: #151515;
}

/* основная строка футера */
#footer .footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* логотип */
#footer .footer-logo img {
  max-height: 40px;
}

/* телефон */
#footer .footer-phone {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 6px;
}

#footer .footer-phone i {
  font-size: 14px;
  margin-right: 8px;
  color: #ffffff;
}

#footer .footer-phone a {
  color: #ffffff;
  text-decoration: none;
}

/* возможная кнопка WhatsApp в футере */
#footer .footer-wa {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--whatsapp);
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

#footer .footer-wa:hover {
  opacity: 0.85;
}

/* копирайт */
#footer .footer-bottom {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}

/* =========================================================
   7. Выключаем appear-анимации темы
   ========================================================= */

.appear-animation,
.appear-animation-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

/* =========================================================
   8. СЧЁТЧИКИ: зелёный фон + белые цифры
   ========================================================= */

.section.section-primary {
  background: #15a34a !important;
}

/* только цифры и подписи – белые */
.section.section-primary .counter strong,
.section.section-primary .counter label,
.section.section-primary .counters .counter strong,
.section.section-primary .counters .counter label {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 700;
}

/* =========================================================
   9. Плавающие кнопки WhatsApp + Telegram
   ========================================================= */

.contact-float-wrapper {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.contact-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* иконка внутри (Font Awesome) */
.contact-float-btn i {
  font-size: 24px;
  color: #ffffff;
  line-height: 1;
}

/* WhatsApp */
.contact-float-btn--wa {
  background: var(--whatsapp);
}

.contact-float-btn--wa:hover {
  background: var(--whatsapp-dark);
}

/* Telegram */
.contact-float-btn--tg {
  background: var(--telegram);
}

.contact-float-btn--tg:hover {
  background: var(--telegram-dark);
}

/* ховер общий */
.contact-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0.95;
}

/* мобильная версия */
@media (max-width: 767px) {
  .contact-float-wrapper {
    right: 16px;
    bottom: 16px;
  }

  .contact-float-btn {
    width: 46px;
    height: 46px;
  }

  .contact-float-btn i {
    font-size: 20px;
  }
}