:root {
  --bg: #fff9f8;
  --surface: #ffffff;
  --text: #271f23;
  --muted: #7b6871;
  --line: #efdde3;
  --primary: #d9879a;
  --primary-strong: #c46880;
  --shadow: 0 12px 30px rgba(199, 132, 152, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #ffeef4 0%, transparent 40%),
    radial-gradient(circle at 100% 0%, #fff3ec 0%, transparent 40%),
    var(--bg);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(255, 249, 248, 0.85);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nav-links { display: flex; gap: 18px; }

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover { color: var(--primary-strong); }

.hero {
  padding: 54px 0 20px;
  animation: rise 0.7s ease;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fbe2e8;
  color: #9e4e65;
  font-weight: 700;
  font-size: 13px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 16px 0 12px;
}

.subtitle,
.subtitle-small {
  color: var(--muted);
  max-width: 780px;
  font-size: 1.1rem;
}

.subtitle-small { font-size: .95rem; margin-top: 4px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 34px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.card h2 { margin: 0 0 12px; font-size: 1.1rem; }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }

.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 16px;
}

.top-space { margin-top: 36px; }

.tabs-wrap {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  background: var(--surface);
  font-weight: 700;
}

.tab-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
}

.section-title-wrap h2,
.section-title-wrap h1 {
  margin: 0;
}

.text-link {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}

.gallery-grid.big {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  animation: rise .45s ease;
}

.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

.gallery-item figcaption strong { color: var(--text); }

.empty-state {
  color: var(--muted);
  margin: 0;
  padding: 12px 0;
}

.pagination-wrap {
  margin-bottom: 42px;
}

.pagination-wrap nav {
  display: flex;
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .gallery-grid.big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-wrap { flex-direction: column; gap: 10px; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid,
  .gallery-grid.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hero { padding-top: 34px; }
  .gallery-grid,
  .gallery-grid.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
