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

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #24548c;
  --secondary-color: #000c1a;
  --primary-hover: #154986;
  --secondary-hover: #353535;

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

  --background-color: #f2f2f2;
  --secondary-background: #ffffff;
  --accordion-active: #24558c4c;
  --box-shadow: 0 0 20px 0 rgb(36, 84, 140, 15%);

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

  --zigzag-mask-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-3 -3 5 3' preserveAspectRatio='none'><path d='M 0 0 L 0 -3 C 2 -2 1 -1 2 0 L 0 0 L -1 0 C -2 -1 -1 -2 -3 -3 L 0 -3' fill='white'/></svg>");
  --petal-mask-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -3 2 3' preserveAspectRatio='none'><path d='M 0 0 L 0 -3 L 0 -3 L 0 0 C -1 -1 0 -2 -2 -3 L 0 -3' fill='white'/></svg>");
  --wave-dip-mask-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 -3 8 3'><path d='M 0 0 L 0 0 C 0 -1 5 0 8 -2 L 8 0' fill='white'/></svg>");

  --font-family: "Roboto", sans-serif;
  --secondary-family: "Roboto Slab", sans-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: 400;
  font-size: 48px;
  line-height: 125%;
  letter-spacing: 0.03em;
  font-family: var(--secondary-family);
  font-style: italic;
  color: var(--text-inverted);
}

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

.subtitle {
  font-weight: 600;
  font-size: 24px;
  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 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 24px;
  width: 100%;
  text-transform: uppercase;
  color: #333;
  position: relative;
}

.section-name.center {
  justify-content: center;
  text-align: center;
}

.section-name.left {
  justify-content: start;
  text-align: start;
}

.section-name.right {
  justify-content: end;
  text-align: end;
}

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

@keyframes flapRight {
  0%,
  100% {
    transform: rotate(15deg) translateY(10px);
  }
  50% {
    transform: rotate(5deg) translateY(5px);
  }
}

.section-name::before,
.section-name::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 5px;
  position: relative;
  opacity: 0.8;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.section-name::before {
  background: linear-gradient(90deg, transparent 0%, var(--primary-color) 100%);
  animation-name: flapLeft;
}

.section-name::after {
  background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
  animation-name: flapRight;
}

.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: 100px;
}

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

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

  display: block;
  background: var(--primary-color);
  padding: 12px 35px;
  border: none;
  border-radius: var(--border-radius-primary);
  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: 16px;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--text-inverted);

  display: block;
  background: var(--text-secondary);
  padding: 12px 35px;
  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: 70px;
  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% - 100px) / 2);
  min-height: 520px;
}

.wrapper::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 200px;
  clip-path: polygon(73% 0, 0 0, 0 100%);
  background-color: var(--primary-color);
  top: -40px;
  left: -30px;
  transform: rotate(-15deg);
  z-index: 2;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.wrapper::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 200px;
  clip-path: polygon(100% 0, 0 51%, 85% 100%);
  background-color: var(--primary-color);
  bottom: -60px;
  right: -30px;
  transform: rotate(10deg);
  z-index: 2;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.wrapper::after,
.wrapper::before {
  animation: trianglePulse 4s ease-in-out infinite alternate;
}

@keyframes trianglePulse {
  0% {
    opacity: 0.3;
    transform: rotate(5deg);
  }
  100% {
    opacity: 0.8;
    transform: rotate(15deg);
  }
}

.wrapper-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  z-index: 1;
  filter: brightness(1.05);
  border-radius: var(--border-radius-primary);
}
