/* Підключення шрифту */
@font-face {
  font-family: "Tablon";
  src: url("/assets/fonts/Tablon-Medium.ttf") format("truetype");
}

/* Змінні :root */
:root {
  --font-family: "Inter", sans-serif;
  --second-family: "Tablon", sans-serif;
  --chinazes-color: #d0ff33;
  --bg-dark: #232628;
  --bg-darker: #111;
  --bg-input: #464d50;
  --scrollbar-thumb-hover: #b3e626;
  --swiper-navigation-color: var(--chinazes-color);
  --swiper-theme-color: var(--chinazes-color)!important;
}

/* Глобальні стилі */
* {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  box-sizing: border-box;
}

body {
  background: var(--bg-dark) !important;
  position: relative;
  z-index: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--chinazes-color) var(--bg-darker);
}

/* Градієнтний фон поверх body */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(174deg, rgba(35, 38, 40, 0.52) 89%, rgba(208, 255, 51, 0.52) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Заборона скролу */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
  width: 100%;
}

/* Стилі скроллбару для WebKit */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background-color: var(--chinazes-color);
  border-radius: 10px;
  border: 2px solid var(--bg-darker);
  transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

/* Заголовки секцій */
.section-title {
  /* margin: 50px 0 30px; */
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 34px;
  line-height: 150%;
  letter-spacing: 0.06em;
  /* text-decoration: underline var(--chinazes-color); */
  text-decoration-skip-ink: none;
  color: #fff;
}

.section-title span {
  color: var(--chinazes-color);
}

/* Слайдер лотів */
.swiper-slide {
    cursor: pointer;
}

/* Стилі для формових елементів */
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--bg-input);
  border: 1px solid rgba(51, 56, 58, 0.71);
  border-radius: 12px;
  box-shadow: 5px 8px 8px -3px rgba(0, 0, 0, 0.25);
  outline: none;
  resize: none;
  caret-color: var(--chinazes-color);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
  color: #fff;
  opacity: 0.4;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 6px 2px var(--chinazes-color);
  border: none;
}

/* Селект зі стрілкою */
select {
  appearance: none;
  padding-right: 40px;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='%23ccc' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

select option[disabled],
select:invalid {
  color: #fff;
  opacity: 0.4;
}

/* Анімація появи елементів при скролі */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 3s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Контейнер головного контенту */
main {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
  min-height: 90px;
}


  /* Кнопка */
  #callbackBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--chinazes-color);
    color: var(--bg-darker) !important;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s;
  }

  #callbackBtn:hover {
    background: rgba(190, 235, 40, 0.9);
  }

  /* Форма */
  #callbackForm {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #33383a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 260px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
  }

  #callbackForm.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #callbackForm .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  #callbackForm .form-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--chinazes-color);
  }

  #closeFormBtn {
    font-size: 18px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
  }

  #closeFormBtn:hover {
    color: red;
  }

  #callbackForm input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  #callbackForm button {
    width: 100%;
    background: #7d972e;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font: 500 16px/150% var(--font-family);
    letter-spacing: 0.06em;
  }

  #callbackForm button:hover {
    background: var(--chinazes-color);
  }
  
  #callbackFormInner input {
      border: 1px solid rgba(51, 56, 58, 0.71)
  }

/* Scroll to Top btn */
.scroll-to-top {
  position: fixed;
  bottom: 95px;
  right: 20px;
  width: 60px;
  height: 60px;
  font-size: 24px;
  background-color: #111;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.scroll-to-top i {
    color: var(--chinazes-color);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Contact Bar */
.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  color: white;
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 10000;
}

.contact-bar__phone, .contact-bar__btn {
    max-width: 220px;
}

.contact-bar__wrapper {
    max-width: 1250px;
    margin: 0 auto;
}

.contact-bar__wrapper h3 {
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.contact-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.contact-bar label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #fff;
  flex: 1 1 150px;
}

.contact-bar input {
  padding: 6px 8px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.contact-bar button[type="submit"] {
  background: #7d972e;
  color: white;
  border: none;
  padding: 8px 15px;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

#closeFeedback {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  z-index: 1;
}

#feedbackForm div {
    margin: 0 auto;
    display: flex;
    gap: 10px;
}


/* Початкові позиції (з твоїх стилів) */
#callbackBtn {
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#callbackForm {
  bottom: 100px;
  right: 20px;
  z-index: 1000;
  transition: bottom 0.3s ease;
}

.scroll-to-top {
  bottom: 95px;
  right: 20px;
  z-index: 1000;
  transition: bottom 0.3s ease;
}

body.with-contact-bar #callbackBtn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.with-contact-bar #callbackForm {
  bottom: 160px; /* зсунемо теж вище */
}

body.with-contact-bar .scroll-to-top {
  bottom: 155px; /* зсунемо над плашкою і формою */
}

