/**
 * ===================================
 * КАСТОМНЫЕ СТИЛИ
 * LWM Estate
 * ===================================
 */

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Utilities ===== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Font weight 450 (Inter) */
.font-450 {
  font-weight: 450;
}

/* ===== Animations ===== */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(1rem);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zoom-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out both;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out both;
}

.animate-zoom-in {
  animation: zoom-in 0.3s ease-out both;
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Animation delays */
.delay-100 {
  animation-delay: 100ms;
}

.delay-150 {
  animation-delay: 150ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  width: calc(100% - 2rem);
  max-width: 28rem;
}

.modal-content.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Body scroll lock */
body.modal-open {
  overflow: hidden;
}

/* ===== FAQ Accordion ===== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.5rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ===== Country Dropdown ===== */
.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  width: 100%;
  max-width: 250px;
  max-height: 15rem;
  overflow-y: auto;
  background: white;
  border: 1px solid #e7e5e4;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: none;
}

.country-dropdown.open {
  display: block;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.country-option:hover {
  background: #f5f5f4;
}

/* ===== Form States ===== */
.form-input:focus {
  outline: none;
  border-color: #B8925E;
  box-shadow: 0 0 0 1px #B8925E;
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  border-width: 1.5px;
  border-style: solid;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: #111111;
  color: white;
  border-color: #111111;
}

.btn-primary:hover {
  background: #B8925E;
  border-color: #B8925E;
}

.btn-gold {
  background: #B8925E;
  color: white;
  border-color: #B8925E;
}

.btn-gold:hover {
  background: #9A7B4F;
  border-color: #9A7B4F;
}

.btn-white {
  background: white;
  color: #111111;
  border-color: white;
}

.btn-white:hover {
  background: #F5F5F4;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== Cards Hover Effects ===== */
.card-hover {
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card-hover:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ===== Section Spacing ===== */
.section {
  padding: 5rem 1.25rem;
}

@media (min-width: 768px) {
  .section {
    padding: 7.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 8rem 4rem;
  }
}

@media (min-width: 1280px) {
  .section {
    padding: 10rem 6rem;
  }
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d6d3d1, transparent);
}

.section-divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 146, 94, 0.4), transparent);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.98), rgba(17, 17, 17, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.mobile-sticky-cta.visible {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none;
  }
}

/* ===== Error Messages ===== */
.error-message {
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

/* ===== Selection Color ===== */
::selection {
  background: #B8925E;
  color: white;
}