/* ========================================
   Components
   ======================================== */

/* HONEYPOT — invisible to humans, catches bots */
.np-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* HERO LOGO — shared between about & contacts pages */
.about-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.about-hero-logo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
}
@media (min-width: 768px) {
  .about-hero-logo img {
    max-width: 340px;
  }
}

/* BUTTONS */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  border-radius: 14px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.5px;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  overflow: hidden;
}

/* ---- 1. PRIMARY CTA — Warm dark gradient with shine ---- */
.btn-primary {
  color: var(--color-gray-50);
  background: linear-gradient(135deg, #2c2620, #3d3428);
  border: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(28,26,21,0.12);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(196,180,154,0.25), transparent);
  transform: skewX(-20deg);
  animation: btnShine 4s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(28,26,21,0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ---- 2. CALCULATOR — Dark warm gradient with shine ---- */
.btn-calc {
  color: #fff;
  background: linear-gradient(135deg, #2c2620 0%, #3d3428 100%);
  font-size: 17px;
  letter-spacing: 0.3px;
  padding: 16px 36px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(43, 58, 103, 0.3);
}

.btn-calc::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  animation: btnShine 5s ease-in-out infinite;
  pointer-events: none;
}

.btn-calc:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(43, 58, 103, 0.4);
}

.btn-calc:active {
  transform: translateY(0);
}

/* ---- 3. PROMO — Gold animated border + arrow ---- */
.btn-promo-wrap {
  position: relative;
  display: inline-block;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #c9a84c, #f0d78c, #c9a84c, #a07830, #f0d78c);
  background-size: 300% 300%;
  animation: borderGlow 3s ease infinite;
  cursor: pointer;
}

.btn-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 40px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1a1f36;
  background: linear-gradient(135deg, #f5f6f8, #eaedf3);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-promo:hover {
  background: linear-gradient(135deg, #fff, #f5f6f8);
}

.btn-promo .star {
  font-size: 15px;
}

.btn-promo .arrow {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.btn-promo-wrap:hover .arrow {
  transform: translateX(4px);
}

/* ---- 4. SECONDARY — Warm glass with subtle border ---- */
.btn-secondary {
  color: var(--color-gray-900);
  background: rgba(250,248,244,0.75);
  border: 1.5px solid rgba(28,26,21,0.12);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.3px;
  padding: 16px 36px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(28,26,21,0.04);
}

.btn-secondary:hover {
  background: rgba(250,248,244,0.88);
  border-color: rgba(196,180,154,0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(28,26,21,0.08);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ---- 5. GHOST — Inactive filters, gray text ---- */
.btn-ghost {
  background: transparent;
  color: var(--color-gray-500);
  border: 1px solid rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-gray-700);
}

/* ---- 6. ACTIVE FILTER — accent bg, white text ---- */
.btn-filter-active {
  background: #F59E0B;
  color: var(--color-white);
  font-weight: 600;
}

.btn-filter-active:hover {
  background: #D97706;
}

/* ---- Button sizes ---- */
.btn-lg {
  padding: 20px 44px;
  font-size: 19px;
}

.btn-sm {
  padding: 12px 24px;
  font-size: 16px;
}

/* ---- Button animations ---- */
@keyframes btnShine {
  0%, 100% { left: -80%; }
  50% { left: 140%; }
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.card {
  background: var(--glass-bg);
  border-radius: var(--glass-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
/* Card with image */
.card-image {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-4);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-slow);
}
.card:hover .card-image img {
  transform: scale(1.05);
}
/* Card content */
.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-gray-900);
}
.card-text {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.card-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-4);
}
.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-gray-200);
  text-align: center;
}
.card-footer .btn {
  width: 100%;
}
/* FORMS */
.form-group {
  margin-bottom: var(--space-4);
}
.form-label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-700);
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  background: var(--color-white);
  color: var(--color-gray-700);
  font-size: var(--text-base);
}
.form-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(140, 123, 99, 0.15);
}
.form-input::placeholder {
  color: var(--color-gray-300);
}

/* Textarea */
textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}
.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  margin-top: 2px;
  cursor: pointer;
}
/* BADGES */
.badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-accent {
  background: var(--color-accent-light);
  color: #92400E;
}
.badge-primary {
  background: rgba(196, 180, 154, 0.2);
  color: var(--color-primary);
}
.badge-popular {
  background: rgba(34, 160, 90, 0.1);
  color: #1a8a4a;
  border: 1.5px solid rgba(34, 160, 90, 0.45);
}
.badge-premium {
  background: rgba(220, 50, 50, 0.08);
  color: #d43030;
  border: 1.5px solid rgba(220, 50, 50, 0.35);
}
.badge-best-price {
  background: var(--color-accent-light);
  color: #92400E;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
}
/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-base);
  position: relative;
}
@media (max-width: 1023px) {
  .modal {
    width: 92%;
  }
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-gray-500);
  transition: var(--transition-fast);
  cursor: pointer;
  background: transparent;
  border: none;
}
.modal-close:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-900);
}
.modal-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-gray-900);
}
/* GRIDS */
.grid {
  display: grid;
  gap: var(--space-6);
}
/* 2 columns */
.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}
/* 3 columns */
.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}
/* 4 columns */
.grid-4 {
  grid-template-columns: repeat(1, 1fr);
}
/* Responsive grids */
@media (min-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* SCROLL ANIMATIONS */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Disable sticky hover on touch devices */
@media (hover: none) {
  .btn-primary:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(28,26,21,0.12);
  }
  .btn-calc:hover { transform: none; box-shadow: 0 4px 16px rgba(43, 58, 103, 0.3); }
  .btn-promo:hover { background: linear-gradient(135deg, #f5f6f8, #eaedf3); }
  .btn-promo-wrap:hover .arrow { transform: none; }
  .btn-secondary:hover {
    background: rgba(250,248,244,0.75);
    border-color: rgba(28,26,21,0.12);
    transform: none;
    box-shadow: 0 2px 12px rgba(28,26,21,0.04);
  }
  .btn-ghost:hover { background: transparent; color: var(--color-gray-500); }
  .btn-filter-active:hover { background: #F59E0B; }
  .card:hover { transform: none; box-shadow: var(--shadow-card); }
  .card:hover .card-image img { transform: none; }
  .modal-close:hover { background: rgba(0, 0, 0, 0.08); }
}
