/**
 * ОрёлКонтейнер — минималистичные доп. стили
 * Основной layout — Tailwind
 */

/* Brand accent #0E8FA8 */
.text-accent { color: #0E8FA8; }
.bg-accent { background-color: #0E8FA8; transition: opacity 0.2s; }
.bg-accent:hover { opacity: 0.9; }
.border-accent { border-color: #0E8FA8; }
.hover\:bg-accent:hover,
.social-link:hover { background-color: #0E8FA8 !important; }

/* Form & modal overrides */
.form-status { display: flex; align-items: center; padding: 1rem; border-radius: 0.5rem; }
.form-status.success { background: #dcfce7; color: #15803d; }
.form-status.error { background: #fef2f2; color: #b91c1c; }
.form-status svg { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; flex-shrink: 0; }

/* Contact modal */
.contact-modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.contact-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
}
.contact-modal-box {
  position: relative; background: white;
  border-radius: 1rem; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  width: 100%; max-width: 28rem; padding: 1.5rem;
}
.contact-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  padding: 0.5rem; color: #94a3b8; background: none; border: none; cursor: pointer;
}
.contact-modal-close:hover { color: #64748b; }

/* Discount popup */
.discount-popup-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.discount-popup-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); }
.discount-popup-box {
  position: relative; background: white;
  border-radius: 1rem; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  width: 100%; max-width: 28rem; overflow: hidden;
}

/* Contact form spacing */
.contact-form > div { margin-bottom: 1rem; }
.contact-form > div:last-of-type { margin-bottom: 0; }

/* Hero panel cards — эффект парения */
.hero-panel-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-panel-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25), 0 12px 24px -8px rgb(0 0 0 / 0.15);
}

/* Hero panel buttons — эффект парения */
.hero-btn-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-btn-float:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px -5px rgb(0 0 0 / 0.15), 0 6px 10px -6px rgb(0 0 0 / 0.1);
}

/* Product card hover — эффект парения */
.product-card {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  outline: 1px solid #0E8FA8;
  transition: transform 0.3s ease, box-shadow 0.3s ease, outline-width 0.2s ease;
}
.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px -15px rgb(0 0 0 / 0.3), 0 15px 30px -10px rgb(0 0 0 / 0.2);
  outline-width: 2px;
}

/* Product card badge */
.product-card .badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.25rem 0.75rem; background: #0284c7; color: white;
  font-size: 0.75rem; font-weight: 500; border-radius: 9999px;
}
.product-card .badge.badge-sale { left: auto; right: 1rem; background: #ef4444; }

/* Status watermark overlay */
.product-img-wrap { position: relative; overflow: hidden; }
.product-img-wrap.status-sold::before,
.product-img-wrap.status-reserved::before,
.product-img-wrap.status-transit::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.product-img-wrap.status-sold::before {
  background: rgba(239, 68, 68, 0.18);
}
.product-img-wrap.status-reserved::before {
  background: rgba(245, 158, 11, 0.18);
}
.product-img-wrap.status-transit::before {
  background: rgba(59, 130, 246, 0.18);
}
.product-img-wrap.status-sold::after,
.product-img-wrap.status-reserved::after,
.product-img-wrap.status-transit::after {
  content: attr(data-status-label);
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0.4em 1.5em;
  font-family: Inter, system-ui, -apple-system, Arial, sans-serif;
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  border-radius: 6px;
  transform: translate(-50%, -50%) rotate(-18deg);
  pointer-events: none;
  z-index: 5;
}
.product-img-wrap.status-sold::after {
  color: #fff;
  background: rgba(220, 38, 38, 0.82);
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.35);
}
.product-img-wrap.status-reserved::after {
  color: #fff;
  background: rgba(217, 119, 6, 0.82);
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.35);
}
.product-img-wrap.status-transit::after {
  color: #fff;
  background: rgba(37, 99, 235, 0.82);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
  font-size: clamp(0.7rem, 2.2vw, 1rem);
  white-space: normal;
  width: 80%;
  line-height: 1.2;
}
.product-img-wrap.status-sold img,
.product-img-wrap.status-reserved img,
.product-img-wrap.status-transit img {
  filter: grayscale(40%);
}

/* Line clamp */
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* Mobile menu toggle */
.mobile-menu.is-open { display: block !important; }
.mobile-menu-btn.is-open .menu-icon { display: none; }
.mobile-menu-btn.is-open .close-icon { display: block !important; }
.has-submenu.is-open .submenu { display: block !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Mobile / safe area */
.safe-area-top { padding-top: env(safe-area-inset-top, 0); }
.safe-area-inset { padding-bottom: env(safe-area-inset-bottom, 0); }
html { -webkit-text-size-adjust: 100%; }

/* Prevent horizontal overflow */
img, video, iframe { max-width: 100%; height: auto; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Touch-friendly modals on mobile */
@media (max-width: 640px) {
  .contact-modal-overlay { align-items: flex-end; padding: 0; }
  .contact-modal-box {
    max-height: 90vh; overflow-y: auto; border-radius: 1rem 1rem 0 0;
  }
  .discount-popup-overlay { align-items: flex-end; padding: 0; }
  .discount-popup-box { max-height: 90vh; overflow-y: auto; border-radius: 1rem 1rem 0 0; }
}

/* Prevent iOS zoom on input focus */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
}
