* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--main-color);
  color: var(--text-color);
}

ul,
ol {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  width: 100%;
  margin: 0 auto;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-medium);
}

p {
  font-weight: var(--font-weight-regular);
}

:root {
  --main-color: #002d3b;
  --second-color: #0286a4;
  --text-color: #ffffff;

  --font-size-main: 16px;
  --font-size-h1: 30px;
  --font-size-h2: 25px;
  --font-size-h3: 20px;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --border-radius: 5px;
  --box-shadow: 0 3px 3px rgba(168, 132, 22, 0.8);
}

.container {
  width: 375px;
  padding: 10px;
  margin: 0 auto;
}

/* Header */
.desktop-contact-link,
.desktop-nav {
  display: none;
}

.header-wrapper {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-image {
  height: 40px;
  object-fit: contain;
  border-radius: 3px;
}

/* Footer */
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
}

.footer-logo-image {
  width: 90px;
}

.footer-container > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.footer-nav > li > a {
  color: var(--text-color);
  transition: color 0.5s ease-in-out;
}

.footer-nav > li > a:hover {
  color: var(--second-color);
}

.footer-container > div > ul > li {
  font-size: 12px;
}

.policy-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-container h1,
.policy-container h2 {
  font-size: x-large;
  font-weight: bold;
}

.terms-policy-contact-link {
  color: var(--second-color);
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.5s ease;
}

.terms-policy-contact-link:hover {
  border-bottom: 1px solid var(--second-color);
}

/* Matrix */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1.5s ease-out forwards;
}

/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

/* 2 */
/* Snake border animation */
.snake-border {
  position: relative;
  z-index: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.snake-border::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: linear-gradient(90deg, #01e1fa, #05c2ac, #0693d4, #01e9fa);
  background-size: 400% 400%;
  border-radius: 1rem;
  z-index: -1;
  animation: snake-move 4s linear infinite;
  padding: 2px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
}

@keyframes snake-move {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 400% 50%;
  }
}

/* 3 */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseBorder {
  0% {
    box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(163, 230, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(163, 230, 53, 0);
  }
}

.animate-fade-in-left {
  animation: fadeInLeft 1s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 1s ease-out forwards;
}

.pulse-border {
  animation: pulseBorder 2s infinite;
}

/* 4 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowText {
  0%,
  100% {
    text-shadow: 0 0 10px #b7e10c, 0 0 20px #c0f406;
  }
  50% {
    text-shadow: 0 0 20px #84fd47, 0 0 30px #070600;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

.animate-glow-text {
  animation: glowText 2s infinite ease-in-out;
}

/* Reviews */
@keyframes wave {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    text-shadow: 0 0 10px #a3e635, 0 0 20px #a3e635;
  }
  50% {
    text-shadow: 0 0 25px #bef264, 0 0 35px #bef264;
  }
}

.animate-wave {
  animation: wave 1.2s ease-out both;
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Form-section */
@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

.animate-zoom-in {
  animation: zoomIn 1s ease-out forwards;
}

.animate-modal-in {
  animation: modalIn 0.3s ease-out forwards;
}

.animate-modal-out {
  animation: modalOut 0.3s ease-in forwards;
}

.copyright {
  text-align: center;
  font-size: 0.8em;
  color: #555; /* Сірий колір тексту */
  margin-top: 20px; /* Додатковий відступ зверху */
}

@media screen and (min-width: 768px) {
  body {
    font-size: 18px;
  }

  :root {
    --font-size-h1: 34px;
    --font-size-h2: 28px;
    --font-size-h3: 24px;
  }

  .container {
    width: 768px;
    padding: 15px;
  }

  /* Header */
  .desktop-contact-link,
  .desktop-nav {
    display: block;
  }

  .desktop-nav > ul {
    display: flex;
    gap: 5px;
  }

  .desktop-nav > ul > li {
    border: 1px solid transparent;
    transition: border-bottom 0.5s ease;
    font-size: 14px;
    padding: 8px;
    border-radius: 15px;
    transition: border 0.5s ease, color 0.5s ease;
  }

  .desktop-nav > ul > li:hover {
    border: 1px solid var(--second-color);
    color: var(--second-color);
  }

  .desktop-contact-link {
    padding: 8px;
    border: 1px solid var(--text-color);
    border-radius: 8px;
    transition: background-color 0.5s ease, border 0.5s ease, color 0.5s ease;
    font-size: 14px;
  }

  .desktop-contact-link:hover {
    border: 1px solid var(--second-color);
    background-color: var(--second-color);
    color: black;
  }

  .header-wrapper {
    height: 60px;
  }

  .logo-image {
    height: 50px;
  }

  /* Footer */
  .footer-container > div > ul > li,
  .contact-address-info > p {
    font-size: 18px;
  }

  .page-contact-wrapper > div > div {
    flex-direction: column-reverse;
  }
}

@media screen and (min-width: 1024px) {
  body {
    font-size: 20px;
  }

  :root {
    --font-size-h1: 36px;
    --font-size-h2: 30px;
    --font-size-h3: 26px;
  }

  .container {
    width: 1024px;
    padding: 20px;
  }

  /* Header */
  .header-wrapper {
    height: 70px;
  }

  .logo-image {
    height: 60px;
  }

  .desktop-nav > ul > li {
    font-size: 18px;
  }

  .desktop-contact-link {
    font-size: 18px;
  }

  /* Footer */
  .footer-container {
    gap: 30px;
    justify-content: start;
  }

  .footer-container > div {
    gap: 15px;
    width: 100%;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-container > div > ul > li,
  .contact-address-info > p {
    font-size: 14px;
  }

  .page-contact-wrapper > div {
    flex-direction: row;
    gap: 40px;
  }

  .page-contact-wrapper > div > div {
    justify-content: space-between;
    height: 100%;
  }

  .page-contact-wrapper > div > div > img {
    height: 400px;
  }
}

@media screen and (min-width: 1440px) {
  body {
    font-size: 22px;
  }

  :root {
    --font-size-h1: 40px;
    --font-size-h2: 34px;
    --font-size-h3: 30px;
  }

  .container {
    width: 1440px;
    padding: 25px;
  }

  /* Footer */
  .footer-container > div > ul > li,
  .contact-address-info > p {
    font-size: 18px;
  }
}
