@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #858e70;
  --secondary-color: #2b2d25;
  --primary-hover: #7f9056;
  --secondary-hover: #353535;

  --text-primary: #696969;
  --text-secondary: #ffffff;
  --text-inverted: #000;

  --background-color: #f2f2f2;
  --secondary-background: #2f281e;
  --accordion-active: #858e7050;
  --box-shadow: 0 0 20px 0 rgb(133, 142, 112, 15%);

  --border-radius-primary: 24px;
  --border-radius-secondary: 14px;

  --wave-mask-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-1 0 3 17' preserveAspectRatio='none'><path d='M 0 0 C -1 2 -1 3 -1 3 C -1 5 0 4 0 6 C 0 8 -1 8 -1 9 C -1 11 0 10 0 12 C 0 13 -1 16 -1 17 L 1 17 C 1 16 2 13 2 12 C 2 10 1 11 1 9 C 1 8 2 8 2 6 C 2 4 1 5 1 3 C 1 3 1 2 2 0 L 0 0' fill='white'/></svg>");
  --drop-mask-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-2.2 -5 4.4 5' preserveAspectRatio='none'><path d='M 0 0 L -1 -1 C -3 -3 -2 -5 0 -5 C 2 -5 3 -3 1 -1 L 0 0' fill='white'/></svg>");
  --navigation-arrow-mask-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 2' preserveAspectRatio='none'><path d='M 0 0 L 1 1 L 1 1 L 0 2 L 2 1 L 0 0' fill='white'/></svg>");

  --font-family: "Raleway", sans-serif;
  --secondary-family: "Cormorant Garamond", serif;
}

body {
  margin: 0;
  width: 100%;
  background-color: var(--background-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
}

body:has(.mobile-menu-active) {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-primary);
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

section {
  overflow-x: hidden;
}

.title {
  font-weight: 500;
  font-size: 48px;
  line-height: 125%;
  letter-spacing: 0.03em;
  font-family: var(--font-family);
  font-style: italic;
  color: var(--text-inverted);
}

.title span {
  color: var(--primary-color);
}

.subtitle {
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.03em;
  font-family: var(--secondary-family);
  color: var(--text-inverted);
}

.descr {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 155%;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.section-name {
  font-family: var(--secondary-family);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  color: var(--text-inverted);
  position: relative;
  display: inline-block;
  padding: 0 40px;
  letter-spacing: 2px;
}

.section-name::before,
.section-name::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: contain;

  background-color: var(--primary-color);
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;

  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;

  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.section-name::before {
  left: 0;
  animation: floatLeft 3s ease-in-out infinite;
}

.section-name::after {
  right: 0;
  animation: floatRight 3s ease-in-out infinite 0.5s;
}

@keyframes floatLeft {
  0%,
  100% {
    transform: translate(-5px, -50%) rotate(-10deg);
  }
  50% {
    transform: translate(5px, -50%) rotate(10deg);
  }
}

@keyframes floatRight {
  0%,
  100% {
    transform: translate(5px, -50%) rotate(10deg);
  }
  50% {
    transform: translate(-5px, -50%) rotate(-10deg);
  }
}

.section-name.center {
  display: flex;
  justify-content: center;
  text-align: center;
  width: auto;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 65px;
}

.container-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 80px;
}

.content-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
}

.primary-btn {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--text-secondary);

  display: block;
  background: var(--primary-color);
  padding: 14px 55px;
  border: none;
  border-radius: var(--border-radius-secondary);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: var(--primary-hover);
  text-decoration: none;
  color: var(--text-secondary);
}

.primary-btn:hover img {
  transform: translateX(5px);
}

.primary-btn img {
  width: 18px;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.secondary-btn {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--text-inverted);

  display: block;
  background: var(--text-secondary);
  padding: 14px 55px;
  border-radius: var(--border-radius-primary);
  border: none;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  text-decoration: none;
  color: var(--text-secondary);
  background-color: var(--text-primary);
}

.terms-privacy {
  padding: 140px 0 80px;
}

.terms-privacy .title {
  margin-bottom: 40px;
}

.terms-privacy .subtitle {
  margin: 25px 0;
}

.thank-you-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding-top: 180px;
}

.thank-you-container p {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--text-inverted);
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.logo img {
  width: 80px;
  object-fit: contain;
}

.link {
  font-weight: 500;
  font-size: 16px;
  line-height: 175%;
  letter-spacing: 0.04em;
  color: var(--text-inverted);

  text-decoration: none;
  position: relative;
  padding: 5px 12px;
  transition: all 0.3s ease-in-out;
}

.link {
  position: relative;
  display: inline-block;
}

.link::before {
  content: "";
  background-color: var(--primary-hover);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1.5px;
  z-index: 1;
  transform-origin: center bottom;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.link:hover::before {
  animation: waveUnderline 0.5s ease-in-out;
}

.link:hover {
  color: var(--primary-color);
}

@keyframes waveUnderline {
  0%,
  100% {
    transform: scaleX(1) translateY(0);
  }
  33% {
    transform: scaleX(0.85) translateY(-4px);
  }
  66% {
    transform: scaleX(1.15) translateY(3px);
  }
}

@media screen and (max-width: 1240px) {
  .container {
    padding: 0 15px;
  }

  .title {
    font-size: 34px;
  }

  .title span {
    font-weight: 700;
    font-size: 32px;
  }

  .descr {
    font-weight: 400;
    font-size: 14px;
  }

  .section-name {
    font-size: 18px;
  }

  .primary-btn {
    font-size: 14px;
    padding: 10px 15px;
  }

  .secondary-btn {
    font-size: 14px;
    padding: 10px 15px;
  }

  .terms-privacy {
    padding: 120px 0 60px;
  }

  .terms-privacy .title {
    margin-bottom: 30px;
  }

  .terms-privacy .subtitle {
    margin: 25px 0;
  }
}

.wrapper {
  display: flex;
  align-items: stretch;
  position: relative;
  width: calc((100% - 80px) / 2);
  min-height: 520px;
}

.wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80px;
  bottom: -1px;
  width: 130px;
  z-index: 1;

  background-color: var(--secondary-background);

  mask-image: var(--wave-mask-url);
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;

  -webkit-mask-image: var(--wave-mask-url);
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.wrapper.left::before {
  left: auto;
  right: -80px;
}

@media screen and (max-width: 768px) {
  .wrapper::before {
    width: 60px;
    left: -30px;
  }

  .wrapper.left::before {
    left: auto;
    right: -30px;
  }
}

.wrapper-img {
  width: 100%;
  object-fit: cover;
}
