:root {
  --bg-color: #fff6f8;
  --card-bg: #ffffff;
  --primary: #ff6b8b;
  --primary-hover: #ff4770;
  --text-main: #2d232e;
  --text-muted: #6e5d6f;
  --accent-soft: #ffe3e9;
  --shadow: 0 10px 25px rgba(255, 107, 139, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

/* Навигация */
header {
  background: var(--card-bg);
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary);
}

/* Первый экран (Hero) */
.hero {
  max-width: 1150px;
  margin: 40px auto;
  padding: 40px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.hero-img img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 400px;
}

/* Общие стили секций */
section {
  max-width: 1150px;
  margin: 70px auto;
  padding: 0 5%;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 45px;
  font-size: 1.05rem;
}

/* Сетка фактов */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.fact-card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.fact-card:hover {
  transform: translateY(-6px);
}

.fact-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: inline-block;
  background: var(--accent-soft);
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 16px;
}

.fact-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.fact-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Галерея фотографий */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 280px;
  background: #eeeeee;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-card:hover img {
  transform: scale(1.07);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #ffffff;
  padding: 20px 16px 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Интерактивный генератор фактов */
.generator-box {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 45px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px dashed var(--primary);
}

.generator-text {
  font-size: 1.3rem;
  font-weight: 600;
  max-width: 700px;
  margin: 20px auto 30px;
  min-height: 65px;
  color: var(--text-main);
}

/* Футер */
footer {
  text-align: center;
  padding: 35px 5%;
  background: var(--card-bg);
  color: var(--text-muted);
  margin-top: 80px;
  font-size: 0.95rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  nav {
    display: none;
  }
}
