/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

.site-footer {
  background: transparent !important;
  border-top: none !important;
  font-family: sans-serif; /* Додай свій шрифт за потреби */
}

.site-footer__top {
  padding: 30px 0 20px;
  background: transparent;
}

.site-footer__inner {
  display: grid;
  /* Лого | Центральна сітка | Кнопки */
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  margin: 0 auto;
  padding: 0 20px; /* Уніфіковано з рештою сайту */
  max-width: 1200px;
}

/* --- BRAND (LOGO) --- */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
}

.footer-brand__logo {
  width: 210px;
  height: auto;
  display: block;
}

.footer-brand__text {
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.05;
  text-transform: uppercase;
  font-size: 13px;
  color: #2a353a;
}

/* --- MAIN GRID (NAV + CONTACTS) --- */
.footer-main-grid {
  display: grid;
  grid-template-columns: 160px 1fr; 
  column-gap: 40px;
  justify-self: center; /* Центруємо саму сітку меню відносно вільного простору */
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contacts-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}

.footer-nav__link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #2a353a;
  opacity: .9;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.footer-nav__link:hover {
  opacity: 1;
  text-decoration: underline !important;
}

/* --- CONTACTS & SOCIAL ITEMS --- */
.footer-contacts__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #2a353a;
  text-decoration: none !important;
}

/* Універсальна іконка (квадратна та кругла) */
.footer-contacts__icon, 
.footer-social__link,
.footer-social__link2,
.footer-social__link3,
.footer-social__link4 {
  width: 20px;  /* Твій запит: 20x20 */
  height: 20px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px; /* Розмір самої іконки всередині */
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Квадратні іконки контактів */
.footer-contacts__icon {
  background-image: url('../images/location.png');
}

.footer-contacts__icon--phone {
  background-image: url('../images/phone.png');
}

.footer-contacts__icon--mail {
  background-image: url('../images/mail.png');
}

.footer-contacts__icon--clock {
  background-image: url('../images/clock_red.svg');
}

/* Круглі іконки соцмереж */
.footer-social__link {
  background-image: url('../images/inst.png');
}

.footer-social__link2 {
  background-image: url('../images/facebook.png');
}

.footer-social__link3 {
  background-image: url('../images/youtube_red.svg');
}

.footer-social__link4 {
  background-image: url('../images/tiktok_red.svg');
}


.footer-social-text {
  font-size: 13px;
  color: #2a353a;
}

/* --- BUTTONS --- */
.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

/* --- MODALS --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 42, 46, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.is-open .modal__overlay {
  opacity: 1;
}

.modal__content {
  position: relative;
  background: #fff;
  width: min(500px, 92%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 45px 40px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  /* Animation states */
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

.modal.is-open .modal__content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #1f2a2e;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  z-index: 10;
}

.modal__close:hover {
  opacity: 1;
}

.modal__title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f2a2e;
}

.modal__ornament {
  margin-bottom: 30px;
  text-align: center;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #5a6b72;
}

.modal__content input,
.modal__content textarea,
.modal__content select {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  background: #fdfdfd;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.modal__content input:focus,
.modal__content textarea:focus {
  outline: none;
  border-color: #a43b2c;
}

.modal__submit {
  margin-top: 10px;
  padding: 16px;
  background: #a43b2c;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.modal__submit:hover {
  background: #7b2b20;
}

.modal__submit:active {
  transform: scale(0.98);
}

.modal__submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Success State */
.modal__success-content {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.modal--success .modal__form,
.modal--success .modal__ornament,
.modal--success .modal__title:not(.modal__success-content .modal__title) {
  display: none;
}

.modal--success .modal__success-content {
  display: flex;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #2d5a27;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 24px;
}

/* Support Modal Styles */
.support-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
  color: #fff;
  transition: transform 0.3s, filter 0.3s;
}

.support-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.support-btn--mono {
  background: #000;
}

.support-btn--paypal {
  background: #0070ba;
}

.support-btn--oschad {
  background: #006a35;
}

.card-copy-box {
  margin-top: 10px;
  background: #f5f7f7;
  padding: 20px;
  border-radius: 16px;
}

.card-copy-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #5a6b72;
}

.copy-input-group {
  display: flex;
  gap: 10px;
}

.copy-input-group input {
  flex: 1;
  background: #fff !important;
}

.copy-btn {
  padding: 0 20px;
  background: #2d5a27;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: #1e3f1a;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px; /* Трохи зменшив для витонченості */
  letter-spacing: 0.05em;
  text-decoration: none !important;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  width: 210px; /* Однакова ширина для обох кнопок */
}

.btn--primary {
  background-color: #a43b2c;
}

.footer-actions .btn:first-child:hover {
  background-color: #2d5a27;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.footer-actions .btn:nth-child(2) {
  animation: heartBeat 3s infinite ease-in-out;
}

.footer-actions .btn:nth-child(2):hover {
  background-color: #1e3f1a;
  animation-play-state: paused;
  transform: scale(1.05);
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(164, 59, 44, 0); }
  50% { transform: scale(1.03); box-shadow: 0 0 15px 5px rgba(164, 59, 44, 0.15); }
}

/* --- BOTTOM PATTERN --- */
.site-footer__bottom {
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, .05); /* Ледь помітна лінія */
}

.site-footer__pattern {
  width: 100%;
  height: 40px;
  background-image: url('../images/footer_ornament.png');
  background-repeat: repeat-x; 
  background-position: center;
  background-size: contain;
}

/* --- RESPONSIVE --- */
@media (max-width: 980px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-brand, .footer-contacts__item, .footer-actions {
    justify-content: center;
    align-items: center;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}