:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #eef2ff;
  --text: #10213a;
  --muted: #5f6f89;
  --line: #dde3ef;
  --primary: #2f67f6;
  --shadow: 0 12px 40px rgba(16, 33, 58, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, #f7f9fd 0%, #f3f5fa 100%);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(221, 227, 239, 0.8);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 180px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #eef2f8;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 56px;
  height: 40px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(47, 103, 246, 0.08);
}

.lang-btn.is-active {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 24px rgba(47, 103, 246, 0.28);
}

.page-main {
  padding: 32px 0 64px;
}

.hero {
  padding: 18px 0 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.page-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-description {
  margin: 16px 0 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.goal-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(221, 227, 239, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.goal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(16, 33, 58, 0.14);
}

.goal-card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #edf1fa;
}

.goal-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.goal-card-body {
  padding: 20px 20px 18px;
}

.goal-card-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.goal-card-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 82px;
}

.goal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.goal-card-link {
  color: var(--primary);
  font-weight: 700;
}

.goal-card-number {
  color: #7b8aa4;
  font-size: 14px;
  font-weight: 600;
}

.detail-section {
  padding-top: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 18px;
}

.detail-card {
  background: var(--surface);
  border: 1px solid rgba(221, 227, 239, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px;
}

.detail-media-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 28px;
}

.detail-image {
  width: min(100%, 340px);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(16, 33, 58, 0.16);
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.detail-title {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-text p {
  margin: 0 0 20px;
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.7;
  color: #31435f;
}

.empty-state {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .goals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .page-main {
    padding-top: 24px;
  }

  .page-description {
    font-size: 16px;
  }

  .goals-grid {
    grid-template-columns: 1fr;
  }

  .goal-card-title {
    font-size: 24px;
  }

  .detail-card {
    padding: 22px;
  }

  .detail-text p {
    font-size: 17px;
  }
}
