* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  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: #231303;
  --second-color: #e88504;
  --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(146, 168, 22, 0.8);
}

.container {
  width: 375px;
  padding: 10px;
  margin: 0 auto;
}

/* Header */
.desktop-contact-link,
.desktop-nav {
  display: none;
}

/* Зникаючий ефект */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(212, 154, 60, 0.7);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  height: 80px;
}

.header-hidden {
  transform: translateY(-100%);
}

.logo-image {
  height: 40px;
  border-radius: 5px;
}

/* Footer */
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--second-color);
  color: var(--main-color);
  background-color: var(--text-color);
}

.footer-logo-image {
  width: 90px;
}

.footer-container > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.footer-nav > li > a {
  color: var(--main-color);
  transition: color 0.5s ease-in-out;
}

.contact-address-info > p > a {
  color: var(--text-color);
  transition: color 0.5s ease-in-out;
}

.footer-nav > li > a:hover,
.contact-address-info > p > a:hover {
  color: var(--second-color);
}

.contact-address-info > p {
  display: flex;
  flex-direction: column;
}

.footer-container > div > ul > li,
.contact-address-info > p {
  font-size: 12px;
}

.page-contact-wrapper .page-contact-wrapper,
.page-contact-wrapper > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.page-contact-wrapper > div > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.page-contact-wrapper > div > div > img {
  border-radius: 25px;
}

.policy-container {
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--main-color);
}

.page-contact-adr {
  display: none;
}

.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);
}

/* Animation */
.scale-up {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.7s ease;
}
.scale-up-visible {
  transform: scale(1);
  opacity: 1;
}

/* float */
.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.4;
  animation: float 20s linear infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.particle:nth-child(2) {
  top: 40%;
  left: 80%;
  animation-delay: 4s;
  animation-duration: 25s;
}

.particle:nth-child(3) {
  top: 70%;
  left: 50%;
  animation-delay: 2s;
  animation-duration: 22s;
}

.particle:nth-child(4) {
  top: 30%;
  left: 30%;
  animation-delay: 6s;
  animation-duration: 20s;
}

.particle:nth-child(5) {
  top: 60%;
  left: 70%;
  animation-delay: 1s;
  animation-duration: 24s;
}

.particle:nth-child(6) {
  top: 40%;
  left: 90%;
  animation-delay: 1s;
  animation-duration: 24s;
}

.particle:nth-child(7) {
  top: 20%;
  left: 55%;
  animation-delay: 1s;
  animation-duration: 24s;
}

.particle:nth-child(8) {
  top: 35%;
  left: 75%;
  animation-delay: 1s;
  animation-duration: 24s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-40px) scale(1.2);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Number Animation */
.floating-number {
  position: absolute;
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(255, 115, 0, 0.25);
  animation: floatUp 12s linear infinite;
  user-select: none;
}

.floating-number:nth-child(1) {
  left: 10%;
  bottom: 0%;
  animation-delay: 0s;
}
.floating-number:nth-child(2) {
  left: 30%;
  bottom: 10%;
  animation-delay: 2s;
}
.floating-number:nth-child(3) {
  left: 50%;
  bottom: 5%;
  animation-delay: 4s;
}
.floating-number:nth-child(4) {
  left: 45%;
  bottom: 15%;
  animation-delay: 1s;
}
.floating-number:nth-child(5) {
  left: 65%;
  bottom: 0%;
  animation-delay: 3s;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) scale(1.2);
    opacity: 0;
  }
}

@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: 25px;
  }

  .desktop-nav > ul > li {
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.5s ease;
    font-size: 14px;
    color: var(--main-color);
  }

  .desktop-nav > ul > li:hover {
    border-bottom: 1px solid var(--second-color);
    color: #ffffff;
  }

  .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: var(--text-color);
  }

  .header-wrapper {
    height: 60px;
  }

  .logo-image {
    height: 30px;
  }

  /* 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: 50px;
  }

  .desktop-nav > ul > li {
    font-size: 18px;
  }

  .desktop-contact-link {
    font-size: 18px;
  }

  /* Footer */
  .footer-container {
    gap: 30px;
    justify-content: start;
  }

  .footer-container > div {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .footer-nav {
    display: flex;
    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;
  }

  .logo-image {
    height: 50px;
  }

  .desktop-nav > ul > li,
  .desktop-contact-link {
    font-size: 24px;
  }

  /* Footer */
  .footer-container > div > ul > li,
  .contact-address-info > p {
    font-size: 18px;
  }
}

.policy-container {
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-contact-wrapper {
  padding-top: 90px;
}
