/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE.CSS — Адаптивные стили для chestnokupit
   ГРАДИЕНТ ПОД ИЗОБРАЖЕНИЕМ (заполняет пустые места)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   DESKTOP (1200px+) — Большие сочные кнопки с фоновыми изображениями
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .ha-main-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 10px;
  }

  /* БАЗОВЫЕ СТИЛИ */
  .ha-btn {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    display: flex;

    padding: 24px;
    min-height: 200px;

    border-radius: 18px;
    border: 1px solid var(--border);

    /* Градиент фон (виден там где нет изображения) */
    background: linear-gradient(180deg, var(--bg2), var(--surface));
    
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;

    font-size: 16px;
    font-weight: 600;
    z-index: 1;
  }

  /* КНОПКА 1: По телефону */
  .ha-btn[onclick*="haShowPhone"] {
    /* ВАЖНО: изображение ПЕРВЫМ = поверх градиента */
    background-image: 
      url('../images/hero-actions/phone-bg.webp'),
      linear-gradient(180deg, var(--bg2), var(--surface));
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
  }

  .no-webp .ha-btn[onclick*="haShowPhone"] {
    background-image: 
      url('../images/hero-actions/phone-bg.png'),
      linear-gradient(180deg, var(--bg2), var(--surface));
    background-size: cover, cover;
    background-position: center, center;
  }

  /* КНОПКА 2: По интернету */
  .ha-btn[onclick*="haShowOnline"] {
    background-image: 
      url('../images/hero-actions/internet-bg.webp'),
      linear-gradient(180deg, var(--bg2), var(--surface));
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
  }

  .no-webp .ha-btn[onclick*="haShowOnline"] {
    background-image: 
      url('../images/hero-actions/internet-bg.png'),
      linear-gradient(180deg, var(--bg2), var(--surface));
    background-size: cover, cover;
    background-position: center, center;
  }

  /* КНОПКА 3: Вызвать оценщика */
  .ha-btn[onclick*="haShowEval"] {
    background-image: 
      url('../images/hero-actions/evaluator-bg.webp'),
      linear-gradient(180deg, var(--bg2), var(--surface));
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
  }

  .no-webp .ha-btn[onclick*="haShowEval"] {
    background-image: 
      url('../images/hero-actions/evaluator-bg.png'),
      linear-gradient(180deg, var(--bg2), var(--surface));
    background-size: cover, cover;
    background-position: center, center;
  }

  /* Скрываем эмодзи */
  .ha-btn .ico {
    display: none;
  }

  /* HOVER */
  .ha-btn:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.15);
  }

  /* Золотая подсветка */
  .ha-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
  }

  .ha-btn:hover::after {
    opacity: 1;
  }

  /* Другие кнопки */
  .phone-reveal-box a {
    font-size: 28px;
    font-weight: 700;
  }

  .eval-link-btn {
    padding: 20px 24px;
    min-height: 90px;
  }

  .eval-link-btn .el-ico {
    font-size: 36px;
  }

  .eval-link-btn > div > div:first-child {
    font-size: 18px;
  }

  .callback-btn {
    padding: 18px 40px;
    font-size: 17px;
    min-height: 64px;
  }

  .nav-cta {
    padding: 14px 32px;
    font-size: 15px;
  }

  .btn-primary,
  .cta-btn {
    padding: 18px 40px;
    font-size: 17px;
    min-height: 64px;
  }
}

/* Текст кнопок */
.ha-btn-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
  z-index: 10;
}

.ha-btn-sub {
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 10;
}

/* TABLET LANDSCAPE */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-inner {
    gap: 40px;
  }

  .ha-btn[onclick*="haShowPhone"],
  .ha-btn[onclick*="haShowOnline"],
  .ha-btn[onclick*="haShowEval"] {
    min-height: 160px;
  }

  .assets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
  .container { padding-inline: 40px; }

  .nav-links { gap: 20px; }
  .nav-links a { font-size: 12px; }
  .nav-cta { padding: 10px 18px; font-size: 13px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }
  .hero-title { font-size: 56px; line-height: 1.05; }

  .hero-right {
    max-width: 520px;
  }

  .ha-main-btns { gap: 12px; }
  .ha-btn {
    padding: 15px 24px;
    font-size: 14px;
    min-height: 64px;
  }
  .ha-btn .ico { font-size: 20px; }

  .assets-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { gap: 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* MOBILE */
@media (max-width: 767px) {
  .container { padding-inline: 16px; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .burger    { display: flex; }

  #hero { padding-top: 68px; min-height: auto; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 48px;
  }
  .hero-left,
  .hero-right { width: 100%; }

  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
    opacity: 0.8;
  }

  .hero-title {
    font-size: clamp(42px, 6vw, 72px);
    opacity: 0.9;
  }
  .hero-title .line-accent { display: block; }

  .ha-question {
    animation: fadeUp 0.6s ease;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .ha-main-btns { 
    flex-direction: column; 
    gap: 10px; 
  }
  
  .ha-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 18px;
    font-size: 14px;
    min-height: auto;
    background: linear-gradient(180deg, var(--bg2), var(--surface)) !important;
    background-size: auto !important;
    background-position: center !important;
  }
  
  .ha-btn .ico { 
    display: inline-block !important;
    font-size: 18px; 
  }

  .phone-reveal-box {
    padding: 18px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .phone-reveal-box a { font-size: 22px; }

  .evaluator-wrap { max-width: 100%; }
  .eval-link-btn { padding: 14px 16px; font-size: 14px; }
  .eval-link-btn .el-ico { font-size: 22px; min-width: 32px; }

  .callback-row { flex-direction: column; gap: 8px; }
  .callback-btn { padding: 14px; font-size: 15px; }

  .step-form-wrap { max-width: 100%; }
  .step-form-wrap .form-control { font-size: 16px; }

  .hero-stats { gap: 20px; margin-top: 32px; padding-top: 28px; flex-wrap: wrap; }
  .stat-num   { font-size: 30px; }

  .hero-form-card { padding: 24px 20px; }

  .section { padding: 64px 0; }
  .section-title { font-size: 36px; line-height: 1.05; }
  .section-sub { font-size: 15px; }

  .assets-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 40px;
  }
  .asset-card { padding: 24px 20px; }
  .asset-icon { font-size: 36px; margin-bottom: 12px; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }
  .step-item { padding: 28px 20px; }
  .step-num { font-size: 60px; }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 40px;
  }
  .why-card { padding: 24px 20px; }
  .why-icon { width: 40px; height: 40px; font-size: 18px; margin-bottom: 14px; }
  .why-title { font-size: 16px; }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 40px;
  }
  .review-card { padding: 22px 18px; }

  .cta-band { padding: 56px 0; }
  .cta-band-title { font-size: 32px; }
  .cta-band-sub { font-size: 15px; }
  .btn-dark { padding: 14px 28px; font-size: 15px; }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
  }
  .map-placeholder { height: 240px; }
  .contact-item { margin-bottom: 20px; }
  .contact-val { font-size: 15px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-links { flex-direction: column; gap: 10px; }
  .footer-links a { font-size: 13px; }

  .social-compact { margin-top: 20px; }
  .social-compact-link { padding: 14px 16px; }
  .social-compact-icon { font-size: 22px; width: 34px; }
  .social-compact-name { font-size: 15px; }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .hero-badge { display: none; }

  .ha-question { font-size: 13px; }
  .ha-btn { padding: 12px 16px; font-size: 13px; }

  .section-title { font-size: 30px; }
  .section-sub { font-size: 14px; }

  .stat-num { font-size: 26px; }
  .hero-stats { gap: 16px; }
}

/* LANDSCAPE MOBILE */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding-top: 68px;
    padding-bottom: 32px;
  }

  .hero-title { font-size: 28px; }

  .ha-question { font-size: 13px; margin-bottom: 8px; }
  .ha-btn { padding: 10px 14px; min-height: auto; }

  .hero-stats { margin-top: 20px; padding-top: 16px; }
}

/* UTILITY CLASSES */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

@media (min-width: 1200px) {
  .show-desktop-lg { display: block !important; }
}
@media (max-width: 1199px) {
  .show-desktop-lg { display: none !important; }
}