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

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #71b7ff 0%, #fafdff 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* Заголовок с флагом */
.header {
  width: 100%;
  padding: 40px 20px;
  text-align: center;

  margin-bottom: 40px;
}

.title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.2;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 40%,
    #0039a6 40%,
    #0039a6 66%,
    #ef3b39 66%,
    #ef3b39 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    slideDown 1s ease-out,
    glow 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
}

.container {
  width: 100%;
  height: calc(100vh - 200px);
  position: relative;
  max-width: 100%;
  padding: 0;
  flex: 1;
}

.phrase-display {
  position: fixed;
  text-align: center;
  color: white;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  pointer-events: none;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  85% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
}

@media (max-width: 1024px) {
  .title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .map-container {
    padding: 0 8px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .russia-map {
    max-width: 700px;
  }

  .russia-map path {
    stroke-width: 0.3;
  }
}

@media (max-width: 480px) {
  .map-container {
    padding: 0 5px;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .russia-map {
    max-width: 100%;
  }

  .russia-map path {
    stroke-width: 0.2;
  }
}
/* Контейнер карты */
.map-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.russia-map {
  width: 100%;
  height: auto;
  max-width: 1200px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  transition: filter 0.3s ease;
}

.russia-map:hover {
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
}

.russia-map path {
  fill: rgba(255, 255, 255, 0.7);
  stroke: #0039a6;
  stroke-width: 0.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.russia-map path:hover {
  fill: rgba(239, 59, 57, 0.8);
  stroke: #ef3b39;
  stroke-width: 1;
}

/* Адаптивность карты */
@media (max-width: 1024px) {
  .map-container {
    padding: 0 10px;
    min-height: 350px;
  }

  .russia-map {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .map-container {
    padding: 0 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    min-height: 320px;
  }

  .russia-map {
    max-width: 700px;
  }

  .russia-map path {
    stroke-width: 0.3;
  }
}

@media (max-width: 480px) {
  .map-container {
    padding: 0 5px;
    margin-top: 15px;
    margin-bottom: 25px;
    min-height: 280px;
    width: 100%;
  }

  .russia-map {
    max-width: 100%;
    width: 100%;
  }

  .russia-map path {
    stroke-width: 0.2;
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  .map-container {
    min-height: 250px;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .russia-map {
    max-width: 100%;
  }
}
/* Кнопка присоединиться */
.join-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #ef3b39 0%, #ff6b5b 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 59, 57, 0.3);
  border: none;
  cursor: pointer;
}

.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 59, 57, 0.4);
  background: linear-gradient(135deg, #ff6b5b 0%, #ef3b39 100%);
}

.join-btn:active {
  transform: translateY(0);
}

/* Адаптивность кнопки */
@media (max-width: 768px) {
  .join-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .join-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    top: 10px;
    right: 10px;
  }
}
@font-face {
  font-family: "SignThat Regular";
  src: url("fonts/SignThat Regular.ttf") format("truetype");
}

/* Центрирование карты на мобильных устройствах */
@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto; /* Убираем фиксированную высоту для естественного потока */
    flex: 1; /* Позволяем контейнеру занимать доступное пространство */
  }

  .map-container {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}
/* Анимация исчезновения текста */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Стили для контейнера пожелания */
.wish-container {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideInFromLeft 0.5s ease-out;
}

/* Анимация появления слева направо */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Стили для послания о проекте */
.project-message {
  background: linear-gradient(
    135deg,
    rgba(0, 57, 166, 0.08) 0%,
    rgba(239, 59, 57, 0.08) 100%
  );
  border: 2px solid rgba(0, 57, 166, 0.2);
  border-radius: 15px;
  padding: 35px;
  margin-bottom: 35px;
  animation: fadeInDown 0.7s ease-out;
  backdrop-filter: blur(10px);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 57, 166, 0.15);
}

.message-title {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(180deg, #0039a6 0%, #ef3b39 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.5px;
}

.message-content {
  color: #333;
  line-height: 1.8;
}

.message-intro {
  font-size: 1.05rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 18px;
  text-align: justify;
}

.message-year {
  font-size: 1.1rem;
  background: linear-gradient(
    90deg,
    rgba(0, 57, 166, 0.1) 0%,
    rgba(239, 59, 57, 0.1) 100%
  );
  padding: 15px 18px;
  border-left: 4px solid #0039a6;
  border-radius: 6px;
  margin-bottom: 22px;
  font-weight: 600;
  color: #0039a6;
}

.message-year strong {
  color: #ef3b39;
}

.message-actions {
  margin: 25px 0;
}

.message-actions h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0039a6;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.actions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.actions-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 14px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.actions-list li:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 57, 166, 0.1);
}

.action-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  display: inline-block;
  width: 30px;
  text-align: center;
}

.actions-list li span:last-child {
  font-size: 0.95rem;
  color: #333;
  text-align: justify;
}

.message-result {
  font-size: 1rem;
  color: #1a1a1a;
  background: linear-gradient(
    90deg,
    rgba(239, 59, 57, 0.08) 0%,
    rgba(0, 57, 166, 0.08) 100%
  );
  padding: 15px 18px;
  border-radius: 8px;
  margin: 22px 0;
  border-left: 4px solid #ef3b39;
  font-weight: 500;
  text-align: justify;
}

.message-call {
  font-size: 1.1rem;
  text-align: center;
  color: #ef3b39;
  font-weight: 700;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid rgba(0, 57, 166, 0.15);
  letter-spacing: 0.3px;
}

/* Адаптивность для послания */
@media (max-width: 768px) {
  .project-message {
    padding: 25px;
    margin-bottom: 25px;
  }

  .message-title {
    font-size: 1.4rem;
  }

  .message-intro,
  .message-year,
  .message-result {
    font-size: 0.95rem;
  }

  .message-actions h3 {
    font-size: 1rem;
  }

  .actions-list li {
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .action-icon {
    font-size: 1.2rem;
  }

  .message-call {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .project-message {
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 10px;
  }

  .message-header {
    margin-bottom: 18px;
    padding-bottom: 15px;
  }

  .message-title {
    font-size: 1.15rem;
  }

  .message-intro,
  .message-year,
  .message-result {
    font-size: 0.9rem;
  }

  .message-actions h3 {
    font-size: 0.95rem;
  }

  .actions-list li {
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  .action-icon {
    font-size: 1.1rem;
    width: 25px;
  }

  .message-call {
    font-size: 0.95rem;
    margin-top: 15px;
    padding-top: 15px;
  }
}
/* Стили для строк текста */
.wish-line {
  display: block;
  margin: 0;
  padding: 0;
}

/* Контейнер для отображения фраз */
.phrases-display-container {
  width: 100%;
  max-width: 1400px;
  margin: 40px auto 50px;
  padding: 0 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.phrases-display {
  width: 100%;
  max-width: 550px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.phrase-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0d274d;
  text-align: center;
  margin: 0;
  line-height: 1.7;
  animation: fadeInOut 8s ease-in-out infinite;
  letter-spacing: 0.3px;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }
  8% {
    opacity: 1;
    transform: translateY(0);
  }
  92% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .phrases-display-container {
    justify-content: center;
    margin: 35px auto 45px;
  }

  .phrases-display {
    max-width: 500px;
    min-height: 110px;
    padding: 22px 18px;
  }

  .phrase-text {
    font-size: 1rem;
  }
}

/* Адаптивность для мобильных горизонтальных */
@media (max-width: 768px) {
  .phrases-display-container {
    justify-content: center;
    margin: 30px auto 40px;
    padding: 0 10px;
  }

  .phrases-display {
    width: 100%;
    max-width: 100%;
    min-height: 100px;
    padding: 20px 15px;
    border-radius: 12px;
  }

  .phrase-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Адаптивность для мобильных вертикальных */
@media (max-width: 480px) {
  .phrases-display-container {
    margin: 25px auto 35px;
    padding: 0 8px;
  }

  .phrases-display {
    width: 100%;
    max-width: 100%;
    min-height: 90px;
    padding: 18px 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(0, 57, 166, 0.12);
  }

  .phrases-display:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .phrase-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.2px;
  }
}

/* Очень маленькие экраны (< 360px) */
@media (max-width: 360px) {
  .phrases-display-container {
    margin: 20px auto 30px;
    padding: 0 5px;
  }

  .phrases-display {
    min-height: 80px;
    padding: 15px 10px;
  }

  .phrase-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}
