:root {
  --light: whitesmoke;
  --background: #131313;
  --hover: #9b9b9b;
  --grey: #bcbcbc;
  --footer: #090909;
  --white: white;
  --black: black;
  --form: #ccc;
  --purple-shine: #8a2be2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  font-family: "Futurapt", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: #333;
  background-color: var(--background);
  font-size: 14px;
  /* line-height: 1.6; */
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background-color: transparent;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  line-height: 20px;
  letter-spacing: 1px;
}

.header .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
}

/* Логотип */
.header__logo img {
  max-height: 60px;
  width: 100px;
}

/* Меню */
.header__menu {
  display: flex;
  gap: 80px;
  font-family: "Futurapt Book", "Futurapt", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  align-items: center;
}

.header__link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--light);
  transition: color 0.3s;
}

.header.no-border {
  border-bottom: none;
}

.header__link:hover {
  color: var(--hover);
}

.header__link.current,
.header__link.current:hover,
.header__link.current:focus,
.header__link.current:focus-visible {
  color: var(--hover) !important;
}

.header__burger {
  display: none;
}

.header__menu .header__link {
  border: none;
  color: var(--light);
  padding: 0;
  text-align: center;
  display: inline-block;
}

h2 {
  color: var(--grey);
  margin-top: 10px;
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

/* Hero Section */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  background-image: url(/assets/images/bg.png);
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100svh; /* Full-screen height */
  overflow: hidden;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.hero__title {
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
  color: var(--light);
  line-height: 86.5%;
  margin: 0;
  font-size: 220px;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.hero__title:first-of-type {
  animation-delay: 0s;
}

.hero__bottom-container {
  display: flex;
  flex-direction: row;
}

.hero__subtitle {
  text-transform: uppercase;
  font-family: "Futurapt", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 26px;
  margin: 0;
  color: var(--light);
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.5s; /* Затримка, після другого заголовка */
}

.large-text {
  color: var(--light);
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
}

.content-text {
  margin: 0;
  font-family: "Futurapt", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--grey);
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
}

.about {
  width: 100%;
  display: flex;
  align-items: center;
}

.split-layout {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.about .split-layout {
  gap: 0;
}

.split-layout__left {
  flex: 1;
}

.split-layout__right {
  flex: 1;
  display: flex;
  align-items: center;
}

.split-layout__right img {
  max-height: 300px;
}

.directions__title-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 8px 0;
  border-bottom: 1px solid var(--light);
}

.directions__title-block a {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.directions__title-block img {
  width: 30px;
}

.directions__item {
  display: flex;
  flex-direction: row;
  padding: 20px 0;
  align-items: flex-start;
}

.directions__item:not(:last-child) {
  border-bottom: 1px solid var(--light);
  padding-bottom: 20px;
}

.directions__number {
  flex: 0;
}

.directions__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.directions__image-and-title {
  flex: 4;
  display: flex;
  flex-direction: row;
}

.directions__description {
  flex: 3;
}

.directions p,
h3,
h2 {
  margin: 0;
}

.directions__number {
  font-size: 14px;
}

.directions__number {
  color: var(--grey);
}

.directions__number {
  font-family: "Syne", "Helvetica Neue", Arial, sans-serif;
}

.directions h3 {
  color: var(--light);
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 400;
  font-family: Arial, Helvetica, sans-serif;
}

#crimes-image {
  transform: scale(0.8);
  transform-origin: center;
}

.contacts .container {
  margin: 0 auto;
}

.contacts__form {
  display: block;
  font-size: 16px;
}

.contacts__form input,
textarea,
button {
  font-size: 16px;
  height: 46px;
}

.contacts label {
  font-family: "Futurapt", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  display: block;
  margin-bottom: 4px;
  font-weight: 300;
  color: var(--light);
}

.contacts__form input,
textarea,
button {
  font-family: "Futurapt", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 100;
  border-radius: 10px;
  margin-bottom: 8px;
  border: solid 1px var(--light);
  width: 100%;
  height: 46px;
  fill: none;
  background-color: transparent;
  color: var(--form);
}

.contacts button,
input,
textarea {
  font-family: "Futurapt", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  padding: 8px 12px;
}

.contacts__form textarea {
  height: 80px;
}

.contacts__text,
.contacts__form {
  flex: 1;
}

.center-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.center-image img {
  max-height: 220px;
}

.footer {
  background-color: var(--footer);
  color: var(--light);
  padding: 20px 15px;
  font-family: "Futurapt Book", "Futurapt", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}

.footer__link {
  color: var(--light);
}

.footer__container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__copyright {
  display: flex;
  height: auto;
  align-self: stretch;
  flex-direction: column;
  justify-content: space-between;
}

.footer__logo {
  display: block;
}

.footer__nav-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-transform: uppercase;
}

.email {
  font-family: "Futurapt Book", "Futurapt", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  text-transform: none;
  font-weight: 500;
  color: #bcbcbc;
  transition: color 0.3s;
  font-size: 20px;
}

.contacts .email {
  font-weight: 500;
  font-size: 24px;
}

.footer .email {
  margin-top: -8px;
}

.footer__email:hover {
  color: #f0f0f0;
}

/* Адаптивність */
@media screen and (max-width: 991px) {
  .header {
    background-color: var(--background);
    height: 56px;
    border-bottom: 1px solid var(--light);
  }

  .header__burger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    align-self: center;
    z-index: 1010;
  }

  .header__burger span {
    background-color: var(--light);
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
  }

  .header__burger span:nth-child(1) {
    top: 0;
  }
  .header__burger span:nth-child(2) {
    top: 9px;
  }
  .header__burger span:nth-child(3) {
    bottom: 0;
  }

  .header__logo,
  .header__burger {
    position: relative;
    z-index: 1000;
  }

  .header__menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    z-index: 999;
    background-color: var(--background);
    border-bottom: 1px solid var(--light);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  }

  .header__menu.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .header__menu.show + .header {
    border-bottom: none;
  }

  .header__menu.hide {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .header__menu .header__link {
    color: var(--light);
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }

  @keyframes slideUp {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
    100% {
      transform: translateY(-100%);
      opacity: 0;
    }
  }

  .contacts {
    margin: 40px 0;
  }
  .split-layout {
    gap: 20px;
  }
  .contacts__form {
    font-size: 16px;
  }
  .contacts .large-text {
    margin: 10px 0 6px 0;
  }
  .contacts__button {
    margin-top: 6px;
  }
  .contacts .email {
    font-size: 16px;
  }
  .center-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  .center-image img {
    width: 60%;
  }
}

@media screen and (min-width: 992px) {
  .header {
    height: 70px;
  }
  .header__menu {
    gap: 60px;
  }
  .header__link {
    font-size: 14px;
  }
}

@media screen and (max-width: 479px) {
  .hero {
    background-position: 50%;
    background-size: cover;
    background-attachment: scroll;
  }
  .hero__title {
    font-size: 27vw;
  }
  .hero__subtitle {
    font-size: 16px;
    line-height: 18px;
    margin-left: 2vw;
  }
  .hero__bottom-container {
    display: flex;
    flex-direction: column;
  }
  h2 {
    font-size: 14px;
  }
  .about {
    margin: 40px 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  .split-layout__right,
  .directions__image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .large-text {
    font-size: 18px;
  }
  .content-text {
    font-size: 16px;
    line-height: 20px;
  }
  .about .large-text {
    width: 100%;
    margin: 8px 0 16px 0;
  }
  .about img {
    transform: scale(1);
    transform-origin: center;
    margin-left: -52px;
  }
  .about .content-text {
    width: 100%;
  }

  .directions__item {
    display: flex;
    flex-direction: column;
  }
  .directions__image-and-title {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
  }
  .directions__number {
    font-size: 16px;
  }
  .directions h3 {
    font-size: 20px;
  }
  .directions__item img {
    height: 200px;
  }
  .directions__image-and-title {
    flex: 1;
  }
  .directions__description {
    flex: 1;
  }
  .directions__image {
    flex: 4;
  }
  .directions__title {
    flex: 5;
  }
  .contacts {
    margin: 40px 0;
  }
  .contacts .container {
    width: 100%;
  }
  .split-layout {
    width: 100%;
    flex-direction: column;
    gap: 20px;
  }
  .footer__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .footer__copyright {
    align-items: center;
  }
}

@media screen and (min-width: 480px) and (max-width: 768px) {
  .hero {
    background-position: 30px 60px;
  }
  .container {
    max-width: 1200px;
  }
  .header__link {
    font-size: 14px;
  }
  .hero__title {
    font-size: 170px;
  }
  .hero__subtitle {
    font-size: 16px;
    margin-top: 14px;
    line-height: 18px;
  }
  h2 {
    font-size: 14px;
  }
  .about {
    margin: 40px 0;
  }
  .large-text {
    font-size: 20px;
  }
  .content-text {
    font-size: 16px;
    line-height: 20px;
  }
  .about .large-text {
    width: 440px;
    margin: 8px 0 16px 0;
  }
  .about img {
    transform: scale(1);
    transform-origin: center;
    margin-left: -52px;
  }
  .about .content-text {
    width: 360px;
  }

  .directions__item {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
  .directions__image-and-title {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
  }
  .directions__number {
    font-size: 16px;
  }
  .directions h3 {
    font-size: 20px;
  }
  .directions__item img {
    height: 200px;
  }
  .directions__image-and-title {
    flex: 1;
  }
  .directions__description {
    flex: 1;
  }
  .directions__image {
    flex: 4;
  }
  .directions__title {
    flex: 5;
  }
  .contacts .container {
    width: 600px;
  }
  .split-layout {
    gap: 20px;
  }
}

@media screen and (min-width: 769px) and (max-width: 991px) {
  .hero {
    background-position: 60px 30px;
  }
  .container {
    max-width: 1200px;
  }
  .header__link {
    font-size: 14px;
  }
  .hero__title {
    font-size: 170px;
  }
  .hero__subtitle {
    font-size: 16px;
    margin-top: 14px;
    line-height: 18px;
  }
  h2 {
    font-size: 14px;
  }
  .about {
    margin: 40px 0;
  }
  .large-text {
    font-size: 20px;
  }
  .content-text {
    font-size: 16px;
    line-height: 20px;
  }
  .about .large-text {
    width: 440px;
    margin: 8px 0 16px 0;
  }
  .about img {
    transform: scale(1);
    transform-origin: center;
    margin-left: -52px;
  }
  .about .content-text {
    width: 360px;
  }

  .directions__item {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
  .directions__image-and-title {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
  }
  .directions__number {
    font-size: 16px;
  }
  .directions h3 {
    font-size: 20px;
  }
  .directions__item img {
    height: 200px;
  }
  .directions__image-and-title {
    flex: 1;
  }
  .directions__description {
    flex: 1;
  }
  .directions__image {
    flex: 4;
  }
  .directions__title {
    flex: 5;
  }
  .contacts .container {
    width: 680px;
  }
}

@media screen and (min-width: 992px) and (max-width: 1279px) {
  .container {
    max-width: 960px;
  }
  .header__menu {
    gap: 30px;
  }
  .hero__title {
    font-size: 180px;
  }
  .hero__subtitle {
    font-size: 20px;
    margin-top: 14px;
    line-height: 22px;
  }
  h2 {
    font-size: 16px;
  }
  .about {
    margin: 80px 0;
  }
  .large-text {
    font-size: 24px;
  }
  .content-text {
    font-size: 18px;
    line-height: 20px;
  }
  .about .large-text {
    width: 600px;
    margin: 8px 0 16px 0;
  }
  .about img {
    transform: scale(1.2);
    transform-origin: center;
  }
  .about .content-text {
    width: 480px;
  }
  .directions__number {
    font-size: 16px;
  }
  .directions h3 {
    font-size: 24px;
  }
  .directions__item img {
    height: 200px;
  }
  .directions__image-and-title {
    margin-right: 28px;
  }
  .directions__image {
    flex: 4;
  }
  .directions__title {
    flex: 5;
  }
  .contacts .container {
    width: 800px;
  }
  .split-layout {
    gap: 40px;
  }
  .contacts {
    margin: 60px 0 60px 0;
  }
  .contacts .large-text {
    margin: 10px 0 6px 0;
  }
  .contacts__button {
    margin-top: 6px;
  }
  .contacts .email {
    font-size: 20px;
  }
  .center-image img {
    max-height: 120px;
  }
}

@media screen and (min-width: 1280px) {
  .hero {
    background-position: 30px 60px;
  }
  .header__menu {
    gap: 68px;
  }
  .container {
    max-width: 1200px;
  }
  .hero__title {
    font-size: 200px;
  }
  .hero__subtitle {
    font-size: 20px;
    margin-top: 16px;
    line-height: 22px;
  }
  h2 {
    font-size: 16px;
  }
  .about {
    margin: 80px 0;
  }
  .large-text {
    font-size: 24px;
  }
  .content-text {
    font-size: 18px;
    line-height: 20px;
  }
  .about .large-text {
    width: 748px;
    margin: 8px 0 16px 0;
  }
  .about img {
    transform: scale(1.4);
    transform-origin: center;
  }
  .about .content-text {
    width: 545px;
  }
  .directions__number {
    font-size: 16px;
  }
  .directions h3 {
    font-size: 24px;
  }
  .directions__item img {
    height: 200px;
  }
  .directions__image-and-title {
    margin-right: 28px;
  }
  .directions__image {
    flex: 4;
  }
  .directions__title {
    flex: 5;
  }
  .contacts .container {
    width: 1032px;
  }
  .split-layout {
    gap: 60px;
  }
  .contacts {
    margin: 100px 0 100px 0;
  }
  .contacts .large-text {
    margin: 10px 0 6px 0;
  }
  .contacts__button {
    margin-top: 6px;
  }
  .contacts .email {
    font-size: 20px;
  }
  .center-image img {
    max-height: 148px;
  }
}

@media screen and (min-width: 1440px) {
  .header__menu {
    gap: 76px;
  }
  .hero {
    background-position: 200px 0;
  }
  h2 {
    font-size: 18px;
  }
  .container {
    max-width: 1300px;
  }
  .header__link {
    font-size: 14px;
  }
  .hero__title {
    font-size: 220px;
  }
  .hero__subtitle {
    font-size: 20px;
    margin-top: 18px;
    line-height: 24px;
  }
  .about {
    margin: 120px 0;
  }
  .large-text {
    font-size: 28px;
  }
  .content-text {
    font-size: 20px;
    line-height: 24px;
  }
  .about {
    margin-left: -40px;
  }
  .about .large-text {
    width: 748px;
    margin: 12px 0 24px 0;
  }
  .about img {
    transform: scale(1.6);
    transform-origin: center;
  }
  .about .content-text {
    width: 545px;
  }

  .directions__number {
    font-size: 16px;
  }
  .directions h3 {
    font-size: 28px;
  }
  .directions__item img {
    height: 200px;
  }
  .contacts .container {
    width: 1120px;
  }
  .split-layout {
    gap: 40px;
  }
  .contacts__form {
    font-size: 20px;
  }
  .contacts__form input,
  textarea,
  button {
    font-size: 20px;
  }
  .contacts .large-text {
    margin: 10px 0 6px 0;
  }
  .contacts__button {
    margin-top: 6px;
  }
  .contacts .email {
    font-size: 24px;
  }
}

@media screen and (min-width: 1920px) {
  h2 {
    font-size: 22px;
  }
  .container {
    max-width: 1920px;
  }
  .header__menu {
    gap: 148px;
  }
  .header__link {
    font-size: 16px;
  }
  .hero__title {
    font-size: 320px;
  }
  .hero__subtitle {
    font-size: 28px;
    margin-top: 30px;
    line-height: 26px;
  }
  .about {
    margin: 160px 0;
    margin-left: -36px;
  }
  .large-text {
    font-size: 36px;
  }
  .about .large-text {
    width: 1020px;
    margin: 12px 0 24px 0;
  }
  .about img {
    transform: scale(1.8);
    transform-origin: center;
  }
  .about .content-text {
    width: 920px;
    font-size: 24px;
    line-height: 28px;
  }
  .directions__number {
    font-size: 18px;
  }
  .content-text {
    font-size: 24px;
    line-height: 28px;
  }
  .directions h3 {
    font-size: 24px;
  }
  .directions__item img {
    height: 252px;
  }
  .contacts .container {
    width: 1400px;
  }
  .split-layout {
    gap: 76px;
  }
  .contacts__form {
    font-size: 24px;
  }
  .contacts__form input,
  textarea,
  button {
    font-size: 24px;
    height: 56px;
  }
  .contacts__form textarea {
    height: 148px;
  }
  .contacts .large-text {
    margin: 10px 0 6px 0;
  }
}

/* Анімація переливання фіолетового кольору на кнопці Пожертвувати */
@keyframes purpleShine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.donate-link {
  position: relative;
}

.donate-shine {
  position: relative;
  display: inline-block;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(
    120deg,
    var(--light) 15%,
    var(--light) 30%,
    var(--purple-shine) 45%,
    var(--light) 70%,
    var(--light) 85%
  );
  background-size: 200% 100%;
  animation: purpleShine 4s linear infinite;
}

/* Optimized font loading to prevent layout shifts */
@font-face {
  font-family: "Syne";
  src: url("/assets/fonts/Syne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
}
@font-face {
  font-family: "Syne";
  src: url("/assets/fonts/Syne-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
}
@font-face {
  font-family: "Syne";
  src: url("/assets/fonts/Syne-ExtraBold.ttf") format("truetype"),
    url("/assets/fonts/Syne-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
}
@font-face {
  font-family: "Futurapt";
  src: url("/assets/fonts/FuturaPT-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
}
@font-face {
  font-family: "Futurapt";
  src: url("/assets/fonts/FuturaPT-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
}
@font-face {
  font-family: "Futurapt Book";
  src: url("/assets/fonts/FuturaPT-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
}
@font-face {
  font-family: "FuturaPT";
  src: url("/assets/fonts/FuturaPTLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
}
