@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: #000000;
  font-size: 20px;
  line-height: 163%;
  letter-spacing: -0.02em;
  background-color: #121517;
  padding-top: 100px;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.img {
  max-width: 100%;
  height: auto;
  display: block; 
}

h1, h2 {
  font-weight: 800;
}

p {
  margin: 0;
}

a {
  color: #D9D9D9;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
}

a:hover, button:hover {
  transition: opacity 0.3s ease;
  opacity: 0.8;
}

/* ГЛАВНВЯЯ СТРАНИЦА */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

.logo {
  font-weight: 800;
  font-size: 37px;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(223deg, #6f4144 0%, #8f6b6d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header {
  padding: 50px 0;
}

.header .container {
  display: flex;
  align-items: center;
  gap: 95px;
}

.header__link + .header__link {
  margin-left: 95px;
}

.text-row {
  display: flex;
  gap: 67px;
  align-items: center;
  color: #D9D9D9;
  margin-bottom: 30px;
}

.text-row.text-row--reverse {
  flex-direction: row-reverse;
}

.text-row__title {
  width: 300px;
  position: relative;
}

.text-row__title::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 40px;
  z-index: -5;
  display: block;
  width: 200px;
  height: 140px;
  border-radius: 100%;
  background: linear-gradient(245deg, #6f4144 0%, #8f6b6d 51.85%);
  filter: blur(90px);
}

.text-row__desk {
  width: 450px;
}

.welcome.img {
  width: 470px;
}

.title {
  font-size: 80px;
  line-height: 109%;
  letter-spacing: -0.03em;
  color: #fff;
}

.welcome__title {
  margin-bottom: 55px;
}

.welcome__title::before {
  content: "";
  position: absolute;
  left: 200px;
  top: 210px;
  z-index: -5;
  display: block;
  width: 200px;
  height: 140px;
  border-radius: 100%;
  background: linear-gradient(245deg, #6f4144 0%, #8f6b6d 51.85%);
  filter: blur(90px);
}

.welcome__text {
  margin-bottom: 55px;
  position: relative;
  color: #D9D9D9;
  margin-bottom: 92px;
}

.btn {
  padding: 20px 80px;
  border-radius: 83px;
  background: linear-gradient(210deg, #6f4144 0%, #8f6b6d 100%);
  font-family: var(--font-family);
  font-weight: 639;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #fff;
}

.benefits {
  margin-top: 110px;
}

.benefits__desk {
  line-height: 25px;
}

.benefits__container {
  max-width: 1000px;
  padding-top: 55px;
  padding-bottom: 25px;
  position: relative;
  display: flex;
  background: #D9D9D9;
  justify-content: space-around;
  border-radius: 46px;
}

.benefits__item {
  max-width: 150px;
  text-align: center;
  border-radius: 20%;
}

.benefits__img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
}

.benefits__img-wrapper::before {
  content: "";
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 100%;
  background: linear-gradient(223deg, #6f4144 0%, #8f6b6d 100%);
  box-shadow: 0 4px 41px rgba(0, 0, 0, 0.39);
}

.benefits__icon {
  width: 150px;
  position: absolute;
  z-index: 5;
}

.benefits__title {
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 32px;
  color: #121517;
}

/* изображение */
.qwota__img-wrapper {
  position: relative;
}

.qwota__img {
  width: 100%;
}

/* ИСТОРИЯ ДЖАЗА */
.history {
  margin-top: 135px;
  padding-bottom: 25px;
}

.history .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.history__img-wrapper {
  display: flex;
  position: relative;
  box-shadow: -14px 26px 65px 0 rgba(0, 0, 0, 0.39);
}

.history__img-wrapper::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 20px;
  left: -35px;
  clip-path: polygon(76% 0, 100% 19%, 100% 100%, 0 100%, 0 0);
  background: #6f4144;
  z-index: -5;
}

.history__img {
  width: 465px;
  clip-path: polygon(76% 0, 100% 19%, 100% 100%, 0 100%, 0 0);
}

.history__text {
  max-width: 460px;
  position: relative;
}

.history__text::before {
  content: "";
  width: 860px;
  height: 700px;
  position: absolute;
  right: -100px;
  bottom: -300px;
  z-index: -10;
  background-image: url("../img/lines.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(40deg);
}

.history__title {
  margin-bottom: 50px;
  position: relative;
}

.history__title::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 40px;
  z-index: -5;
  display: block;
  width: 200px;
  height: 140px;
  border-radius: 100%;
  background: linear-gradient(245deg, #6f4144 0%, #8f6b6d 51.85%);
  filter: blur(90px);
}

.history__desk {
  margin-bottom: 50px;
  line-height: 163%;
  letter-spacing: -0.02em;
  color: #D9D9D9;
}

.history__pic {
  width: 450px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 33%, 21% 0);
}

/* ЖАНРЫ */
.products {
  margin-top: 150px;
}

.products__cards {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.card {
  position: relative;
  width: 275px;
  text-align: center;
  padding: 30px;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #121517;
  border-radius: 30px;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(110deg, rgba(218,218,218,0.7) 0%, rgba(218,218,218,0.07) 42%, rgba(218,218,218,1)100%);
  border-radius: 30px;
  z-index: -5;
  transition: opacity 0.4s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(260deg, rgba(111,65,68,1) 0%, rgba(143,107,109,1) 100%);
  border-radius: 30px;
  z-index: -4;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.card:hover::after {
  opacity: 1;
}

.card:hover::before {
  opacity: 0;
  background: rgb(111,65,68);
  background: linear-gradient(260deg, rgba(111,65,68,1) 0%, rgba(143,107,109,1) 100%);
}

.card:hover .card__img {
  transform: translateY(-5px);
}

.card__img {
  width: 300px;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.card__title {
  font-weight: 500;
  font-size: 32px;
  line-height: 163%;
  color: #fff;
  margin-bottom: 15px;
}

.card__desk {
  color: #D9D9D9;
  margin-bottom: 30px;
}

.card__btn {
  width: 100%;
  font-size: 17px;
  padding: 15px 0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #121517;
  z-index: 1000;
  padding: 20px 0;
}

/* ИНСТРУМЕНТЫ */
.instruments {
  margin-top: 150px;
}

.instruments__text {
  display: flex;
  align-items: center;
  gap: 67px;
  color: #D9D9D9;
  margin-bottom: 30px;
}

.instruments__desk {
  margin-bottom: 0;
  line-height: 163%;
  letter-spacing: -0.02em;
  color: #D9D9D9;
  max-width: 450px;
}

.instruments__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 50px;
}

.instrument {
  display: flex;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #6f4144;
  color: white;
  border-radius: 10px;
}

.instrument img {
  width: 100px;
  height: auto;
  margin-right: 30px;
  border-radius: 10px;
}

.info h2 {
  margin: 0;
  font-size: 26px;
}

.separator {
  width: 75%;
  height: 2px;
  background-color: #d7ccc8;
  margin: 20px auto;
}

/* ДУША ДЖАЗА */
.events {
  margin-top: 100px;
}

.events__inner-wrapper {
  display: grid;
  gap: 25px;
  grid-auto-rows: 260px;
  grid-template-columns: 1.5fr 1.5fr;
}

.event {
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 30px;
}

.event__title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 263px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #6f4144;
  color: white;
  border-radius: 30px;
  font-weight: 500;
  font-size: 26px;
  line-height: 170%;
}

.event__titlemain {
  z-index: 1;
  position: relative;
  font-weight: 500;
  font-size: 33px;
  line-height: 109%;
  color: #fff;
}

.event--luis {
    background-image: url("../img/cardlui.jpg");
}
.event--duke {
    background-image: url("../img/cardduke.jpg");
}
.event--miles {
    background-image: url("../img/cardmiles.webp");
}
.event--charlie {
    background-image: url("../img/cardjohn.jpg");
}

.event__title small a {
  font-size: 0.8em;
  color: #ccc;
  text-decoration: underline;
}

/* КОНТАКТЫ */
.contacts {
  padding-top: 140px;
  overflow: hidden;
  padding-bottom: 100px;
}

.contacts .container {
  display: flex;
  justify-content: space-between;
}

.contacts__text {
  width: 390px;
}

.contacts__title {
  margin-bottom: 50px;
}

.contacts__desc {
  color: #D9D9D9;
  margin-bottom: 50px;
  position: relative;
}

.contacts__desc::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 20px;
  z-index: -5;
  display: block;
  width: 200px;
  height: 80px;
  border-radius: 100%;
  background: linear-gradient(245deg, #6f4144 0%, #8f6b6d 51.85%);
  filter: blur(90px);
}

.contacts__phone {
  font-weight: 500;
  font-size: 32px;
  color: #fff;
}

.contacts__img-wrapper {
  position: relative;
}

.contacts__img-wrapper::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 40px;
  z-index: -5;
  display: block;
  width: 200px;
  height: 140px;
  border-radius: 100%;
  background: linear-gradient(245deg, #6f4144 0%, #8f6b6d 51.85%);
  filter: blur(90px);
}

.contacts__img-wrapper::after {
  content: "";
  width: 920px;
  height: 670px;
  position: absolute;
  right: -245px;
  bottom: -360px;
  z-index: -15;
  background-image: url("../img/lines.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(17deg);
}

.contacts__img-inner-wrapper {
  position: relative;
}

.contacts__img-inner-wrapper::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: -23px;
  right: -33px;
  clip-path: polygon(27% 0, 100% 0, 100% 50%, 100% 100%, 0 100%, 0 30%);
  background: #6f4144;
  z-index: -5;
}

.contacts__img {
  width: 350px;
  clip-path: polygon(27% 0, 100% 0, 100% 50%, 100% 100%, 0 100%, 0 30%);
}

/* КНОПКА ДЛЯ ОПРОСА */
.survey-toggle {
  text-align: center;
  padding: 20px 0;
}

.survey-toggle__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(210deg, #121517);
  border: 1px solid #8f6b6d;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: #D9D9D9;
}

.survey-toggle__btn:hover {
  transform: scale(1.1);
}

.survey-toggle__arrow {
  width: 24px;
  height: 24px;
  transform: rotate(180deg); /* Down arrow when survey is hidden */
}

.survey--visible .survey-toggle__arrow {
  transform: rotate(-90deg); /* Up arrow when survey is visible */
}

/* ОПРОС */
.survey {
  display: none;
  margin-top: -1px;
  margin-bottom: 200px;
}

.survey--visible {
  display: block;
}

.survey__text {
  display: flex;
  align-items: center;
  gap: 67px;
  color: #D9D9D9;
  margin-bottom: 50px;
}

.survey__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0;
}

.survey__desk {
  margin-bottom: 0;
  line-height: 163%;
  letter-spacing: -0.02em;
  color: #D9D9D9;
  max-width: 450px;
  margin-bottom: -74px;
}

.survey__form-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  background-color: #121517;
  border-radius: 10px;
}

.survey__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.survey__form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.survey__label {
  font-weight: 500;
  font-size: 18px;
  color: #fff;
}

.survey__label--light {
  color: #D9D9D9;
}

.survey__select,
.survey__input,
.survey__textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #8f6b6d;
  background-color: #1a1d21;
  color: #D9D9D9;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
}

.survey__select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9D9D9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.survey__input {
  height: 45px;
}

.survey__textarea {
  height: 120px;
  resize: vertical;
}

.survey__radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #D9D9D9;
}

.survey__radio {
  margin-right: 8px;
  accent-color: #8f6b6d;
}

.survey__form-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: -120px;
}

.survey__btn,
.survey__close-btn {
  padding: 15px 60px;
  font-size: 20px;
  border-radius: 50px;
}

.survey__close-btn {
  background: #1a1d21;
  color: #D9D9D9;
}

/* БЛАГОДАРНОСТЬ ПОСЛЕ ОПРОСА */
.thank-you-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.thank-you-popup--visible {
  display: flex;
}

.thank-you-popup__content {
  background: #121517;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  border: 1px solid #8f6b6d;
}

.thank-you-popup__title {
  font-size: 32px;
  color: #fff;
  margin-bottom: 20px;
}

.thank-you-popup__text {
  color: #D9D9D9;
  margin-bottom: 30px;
  line-height: 163%;
}

.thank-you-popup__close-btn {
  padding: 15px 60px;
  font-size: 20px;
  border-radius: 50px;
}

/* ПОДВАЛ */
.footer {
  padding: 40px 0;
  background-color: #0b0c0d;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__nav {
  display: flex;
  gap: 80px;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
}

.footer__nav-link {
  letter-spacing: -0.01em;
  color: rgba(187, 179, 179, 0.43);
}

.footer__nav-link:first-child {
  color: #bbb3b3;
}

.footer__up-link {
  width: 85px;
  height: 85px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  border: 1.5px solid transparent;
  background: linear-gradient(#0b0c0d, #0b0c0d) padding-box,
              linear-gradient(-30deg, #6f4144, #8f6b6d) border-box;
}

.footer__arrow {
  height: 35px;
}