/* Головні кольори сайту */
:root {
  --primary-color: #e31837; /* Основний червоний колір */
  --secondary-color: #ffd100;
  --background-color: #fdf5e6;
  --text-color: white;
}
ul,
ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
a {
  text-decoration: none;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Скидання стандартних стилів */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Загальні стилі для тіла сторінки */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: rgb(249, 19, 19);
  /* background-color: #d21b0d; */
  color: #212121;
}

/* Основний контейнер сторінки */
.container {
  max-width: 1158px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* Стилі для шапки сайту */
.page-header {
  border-bottom: 1px solid #e5e5e5;
  padding-top: 4px; /* зменшити відступи */
  padding-bottom: 4px;
  /* position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto; */
  background-color: var(--background-color);
  z-index: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* легка тінь для шапки */
}

.page-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Головний заголовок */
h1 {
  font-size: 65px;
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-style: italic;
  margin-bottom: 1rem;
}

/* Стилі для логотипу */
.logo {
  margin: 0;
  padding: 0;
}

.logo img {
  width: 75px;
  height: 75px;
}

/* Стилі для навігаційного списку */
.nav-bar {
  display: flex;
  font-style: normal;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 40px;
}

/* Бургер кнопка */
.burger-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Анімація бургер кнопки при відкритті */
.burger-menu-btn.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu-btn.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu-btn.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-list {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 40px;
  transition-property: color, background-color;
  padding-bottom: 2px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  background-image: linear-gradient(to right, #b40000, #ff6600);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s ease, color 0.4s ease;
}

.nav-list a:hover,
.nav-list a:focus {
  color: #b40000;
  background-size: 100% 2px;
}
.first-section-title {
  display: block;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.07143;
  letter-spacing: 0.02em;
  max-width: 496px;
}

.first-section {
  background-color: rgb(249, 19, 19);
  /* background-color: rgb(249, 19, 19); */

  padding: 120px 0 30px 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
  /* max-width: 1500px; */
  margin-left: auto;
  margin-right: auto;
}

/* =================ДРУГА СЕКЦІЯ НАПРЯМКИ================= */

.second-section {
  background-color: red;
}
.programs-list {
  display: flex;
  flex-wrap: wrap;
}
.directions-div {
  width: 264px;
  height: 380px;
  display: flex;
  justify-content: center;
}
.directions {
  font-size: 2rem;
  font-weight: bold;
  display: block;
  width: max-content;
  padding: 15px 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.984);
  color: #fd081c;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px); /* ефект "скляної плашки" */
  margin: 0 auto 50px; /* відцентровка */
  text-align: center;
}

/* Сітка сервісів */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Картка сервісу */
.service-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Заголовок в картці */

.service-card h3 {
  color: red;
  /* color: #3d3c3c; */
  font-size: 1.1rem;
  margin-bottom: 1rem;
  min-height: 3em;
}
/* зарезервувати місце під 2 рядки заголовка */
.services-grid {
  align-items: stretch;
}

/* робить картку однакової висоти і вирівнює контент */
.service-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-19px);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-card-link:hover .service-card {
  transform: translateY(-5px);
  cursor: pointer;
}

/* Зображення в картці */
.service-card img {
  width: 100%;
  height: 250px;
  margin-bottom: 1.5rem;
  object-fit: cover; /* Зберегти пропорції зображення */
  display: block;
  border-radius: 4px;
}

/* Загальні стилі для кнопок */
button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #c41530;
}

/* -----  секція волонтера ---------*/
.join-team {
  background: linear-gradient(135deg, #e63946, #ff6f61);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  border-radius: 20px;
  margin: 60px auto;
  max-width: 1000px;
}

.join-team h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.join-team p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-join {
  background: #fff;
  color: #e63946;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-join:hover {
  background: #ffe5e5;
  transform: scale(1.05);
}

/*----------- СЕКЦІЯ ПІДТРИМАТИ-------------*/
.donation-section {
  background: #222;
  color: #fff;
  padding: 60px 20px;
}

.donation-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap; /* щоб на мобільному йшло вниз */
}

.donation-text {
  flex: 1;
}

.donation-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffd100;
}

.donation-text p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.donation-accounts {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
}

.donation-btn {
  background: #e63946;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

.donation-btn:hover {
  background: #c82333;
}

.donation-qr {
  flex: 1;
  text-align: center;
}

.donation-qr img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
}

/*------------ Footer -------------*/
.site-footer {
  background: #b40000;
  color: #fff;
  padding: 40px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
  align-items: start;
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.5;
}

.footer-social ul {
  list-style: none;
  padding: 0;
}

.footer-social ul li {
  margin-bottom: 8px;
}

.footer-social a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #ffd1d1;
}

.footer-contacts a {
  color: #fff;
  text-decoration: none;
}

.footer-contacts a:hover {
  text-decoration: underline;
}

.feedback-btn {
  display: inline-block;
  background: #fff;
  color: #b40000;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.feedback-btn:hover {
  background: #ffd1d1;
  color: #800000;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  padding-top: 10px;
  font-size: 14px;
}

.footer-map a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-map a:hover {
  color: #ffd1d1;
  text-decoration: underline;
}

.footer-map i {
  margin-right: 6px;
  color: #ffd1d1;
}
.footer-social i {
  margin-right: 6px;
}

/* ---------     helps ----------*/

.copy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #4caf50;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  font-size: 0.95rem;
}
.copy-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.copy-toast.error {
  background: #d9534f;
}

/* ----------- Прихований заголовок-----------*/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ----------- Модальне вікно -----------*/
.modal-nav {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-width: 400px;
  width: 90%;
  margin: 0 auto;
}

.modal-nav a {
  display: block;
  color: #222;
  font-size: 1.2rem;
  padding: 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.1s;
}

.modal-nav a:last-child {
  border-bottom: none;
}

.modal-nav a:active {
  background: rgba(227, 24, 55, 0.1);
  transform: scale(0.97);
}
