html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body > footer {
  margin-top: auto;
}


/* Шапка */
header {
  background-color: #111;
  padding: 12px 24px;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* Логотип */
.logo a {
  color: #ff7f1f;
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo a:hover {
  color: #fc9b1d;
}

/* Навигация */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #ff7f1f;
  transition: width 0.3s;
}

.main-nav a:hover {
  color: #00ffff;
}

.main-nav a:hover::after {
  width: 100%;
}


body {
  background: #0d0d0d;
  color: #f0f0f0;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
}

#hero {
  background: url('../foto/photo1.png') center center no-repeat;
  background-size: cover;
  padding: 100px 20px;
  text-align: center;
}

#hero h2 {
  color: #ff7f1f;
  font-size: 2.5rem;
}

.subtitle {
  color: #9c9c9c;
  font-size: 1.2rem;
  margin-top: 10px;
}

.items-list {
  list-style: none;
  padding: 20px 0;
}

.items-list li {
  margin-bottom: 10px;
}

.item-pink, .item-orange, .item-cyan {
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

.item-pink {
  background-color: #36e5f1;
  color: #ff4949;
}

.item-orange {
  background-color: #ff5622;
  color: #fff;
}

.item-cyan {
  background-color: #00ffbf;
  color: #003344;
}

/* Инфо-блоки */
.info-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.info-card {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 15px 20px;
  min-width: 220px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.info-card:hover {
  transform: scale(1.05);
  border-color: #ff7f1f;
}

/* Соц. сети */
.social-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.social-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  width: 240px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-card:hover {
  transform: scale(1.05);
  border-color: #ff7f1f;
  box-shadow: 0 0 15px rgba(255, 166, 0, 0.3);
}

.social-card:active {
  transform: scale(0.98);
  box-shadow: 0 0 10px rgba(255, 166, 0, 0.2) inset;
}

.social-card h4 {
  color: #ff7f1f;
  margin-bottom: 8px;
}

.social-card p {
  color: #aaa;
  font-size: 0.9rem;
}

#copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #00cc66;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#copy-toast.show {
  opacity: 1;
}

/* Звезды */
#fireflies-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Краб */
#crab-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  z-index: 20;
}

.crab {
  position: absolute;
  bottom: 0;
  width: 80px;
  height: auto;
  opacity: 0;
}

@keyframes crab-walk-left {
  0% { left: -100px; opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100vw; opacity: 0; }
}

@keyframes crab-walk-right {
  0% { left: 100vw; opacity: 1; }
  90% { opacity: 1; }
  100% { left: -100px; opacity: 0; }
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 60px; /* расстояние между логотипом и меню */
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}


.main-nav a:hover {
  color: #ff7f1f;
}
section {
  padding: 60px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}
footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  border-top: 1px solid #222;
  margin-top: 40px;
  z-index: 10;
  position: relative;
}
#intro {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  background-color: rgba(0, 0, 0, 0.6); /* менее тёмное затемнение */
  backdrop-filter: brightness(1.1);
}

#intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../foto/photo2.png') center center / cover no-repeat;
  z-index: -1;
  opacity: 0.35; /* делаем ярче */
  pointer-events: none;
  background-size: 100% 100%; /* растягиваем полностью */
}
.intro-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
}

.intro-card:hover {
  border-color: #ff7f1f;
  transform: scale(1.01);
}

.intro-card h3 {
  font-size: 1.4rem;
  color: #ff7f1f;
  margin-bottom: 15px;
  border-left: 4px solid #ff7f1f;
  padding-left: 12px;
}

.intro-card p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 12px;
}

.highlight {
  color: #ffaa00;
  font-weight: bold;
}
