/* home.css — extracted from index.html 2026-05-03 */
:root {
  --bg: #f6f1e7;
  --surface: rgba(255,255,255,0.84);
  --surface-strong: rgba(255,255,255,0.92);
  --surface-soft: rgba(244, 238, 226, 0.78);
  --ink: #17342b;
  --muted: #6e746a;
  --line: rgba(23, 52, 43, 0.09);
  --green: #1f6b4f;
  --green-deep: #174e3d;
  --green-soft: #e9f3ed;
  --gold: #bf8c1e;
  --shadow: 0 20px 60px rgba(34, 42, 36, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 223, 163, 0.34), transparent 28%),
    radial-gradient(circle at top right, rgba(120, 179, 150, 0.22), transparent 26%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.sidebar,
.panel,
.hero,
.toolbox,
.heritage-focus-card,
.progress-card,
.feature-card,
.culture-card,
.reco-card,
.module-card,
.mini-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  border-radius: 32px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.brand {
  display: grid;
  gap: 10px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid rgba(23,52,43,0.08);
}

.brand img {
  width: 116px;
  height: auto;
}

.brand strong {
  font-size: 16px;
  color: #47564e;
  font-weight: 600;
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 14px 14px;
  color: #435147;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--green-soft);
  color: var(--green);
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31,107,79,0.1);
  font-size: 16px;
  flex: 0 0 auto;
}

.sidebar-poster {
  margin-top: auto;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,248,240,0.92));
}

.sidebar-poster img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.sidebar-poster-copy {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.sidebar-poster-copy h3 {
  margin: 0;
  font-size: 19px;
  font-family: 'Noto Serif SC', serif;
}

.sidebar-poster-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.sidebar-poster-copy span {
  color: var(--green);
  font-weight: 800;
  font-size: 15px;
}

.main {
  display: grid;
  gap: 22px;
  align-content: start;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 318px;
  background: #d8d9dc;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248,244,235,0.98) 0%, rgba(248,244,235,0.9) 28%, rgba(248,244,235,0.38) 54%, rgba(248,244,235,0.06) 70%),
    linear-gradient(180deg, rgba(23,52,43,0.06), rgba(23,52,43,0.18));
  z-index: 1;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 44px 48px;
  max-width: 560px;
  display: grid;
  gap: 16px;
}

.hero-content h1 {
  margin: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-content h1 span {
  display: block;
  color: var(--green);
}

.hero-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: #27362f;
  max-width: 520px;
  font-weight: 600;
}

.hero-flags {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.hero-flags img {
  position: static;
  width: 34px;
  height: 24px;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(23,52,43,0.12);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.toolbox {
  border-radius: 28px;
  padding: 24px 24px 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tabs {
  display: inline-flex;
  gap: 10px;
  background: rgba(244, 239, 230, 0.9);
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(23,52,43,0.08);
}

.tab {
  border: 0;
  background: transparent;
  color: #6c746c;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tab.is-active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 10px 18px rgba(23,52,43,0.08);
}

.toolbox-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: stretch;
}

.toolbox-main {
  display: grid;
  gap: 14px;
}

.toolbox-main textarea {
  width: 100%;
  min-height: 148px;
  border-radius: 20px;
  border: 1px solid rgba(23,52,43,0.1);
  background: rgba(255,255,255,0.88);
  padding: 18px 20px;
  resize: none;
  outline: none;
  font-size: 17px;
  color: #314036;
  line-height: 1.7;
}

.toolbox-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary,
.btn-soft,
.btn-ghost {
  border: 0;
  border-radius: 16px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover,
.btn-soft:hover,
.btn-ghost:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--green), #2e815f);
  color: #fff;
  box-shadow: 0 16px 30px rgba(31,107,79,0.18);
}

.btn-soft {
  background: rgba(244,239,230,0.9);
  color: #4a564f;
  border: 1px solid rgba(23,52,43,0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  padding-inline: 0;
}

.toolbox-side {
  border-radius: 22px;
  border: 1px dashed rgba(23,52,43,0.18);
  background: linear-gradient(180deg, rgba(249,248,244,0.96), rgba(242, 237, 227, 0.86));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px 18px;
  color: #5a655d;
  gap: 14px;
}

.toolbox-side .upload-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.84);
  font-size: 32px;
  box-shadow: 0 12px 24px rgba(23,52,43,0.08);
}

.toolbox-side h4 {
  margin: 0;
  font-size: 19px;
  color: var(--ink);
}

.toolbox-side p {
  margin: 0;
  line-height: 1.65;
  font-size: 14px;
}

.example-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.example-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(249,248,244,0.98);
  border: 1px solid rgba(23,52,43,0.08);
  color: #435147;
  font-weight: 700;
}

.modules {
  display: grid;
  gap: 14px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 10px;
  min-height: 168px;
}

.module-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31,107,79,0.1);
  font-size: 28px;
}

.module-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.module-card span {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
}

.recommend {
  display: grid;
  gap: 12px;
}

.recommend-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reco-card {
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  gap: 0;
  background: rgba(255,255,255,0.88);
}

.reco-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.reco-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reco-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 33, 28, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.reco-copy {
  padding: 0 14px 14px;
  display: grid;
  gap: 6px;
}

.reco-copy h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.reco-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.hello-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  padding: 36px 20px !important;
  min-height: 180px !important;
  background: linear-gradient(180deg, #85e2ce, #84dbc6);
  border: 0;
  box-shadow: none;
  text-align: center;
}
.hello-card h3 { margin: 0; font-size: 40px; letter-spacing: 0.04em; }
.hello-card p { margin: 8px 0 0; font-size: 14px; color: #0f3b30; }

.time-card {
  border-radius: 16px;
  padding: 20px !important;
  min-height: 160px !important;
  background: #f9faf8;
  border: 1px solid rgba(31, 61, 43, 0.08);
  box-shadow: 0 12px 28px rgba(31, 61, 43, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.time-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.3;
}

.time-card-place,
.time-card-weather {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.time-card-weather {
  text-align: right;
  justify-content: flex-end;
}

.time-card-weather-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.time-card-weather-temp {
  color: #59655f;
  font-weight: 700;
}

.time-card-weather-desc {
  color: #7c857f;
  font-size: 12px;
}

.time-card-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  flex: 0 0 auto;
}

.time-card-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.time-card .time-value {
  margin: 0;
  color: #1f3d2b;
  font-size: 42px;
  line-height: 0.94;
  letter-spacing: -0.08em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-card .time-date {
  margin-top: -2px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.time-card-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}

.time-card-secondary-label {
  color: #7c857f;
}

.time-card-secondary-value {
  color: #355343;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-card-link {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f6b4f;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration: none;
}

.time-card-link:hover,
.time-card-link:focus-visible {
  color: #214b38;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.time-card-link .time-card-icon {
  width: 14px;
  height: 14px;
}

.time-card-link .time-card-icon svg {
  width: 14px;
  height: 14px;
}

.progress-card,
.heritage-focus-card {
  border-radius: 28px;
  padding: 24px;
}

.mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mini-card-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.progress-list {
  display: grid;
  gap: 14px;
}

.progress-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
}

.progress-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(31,107,79,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.progress-item strong { display: block; font-size: 14px; color: var(--muted); }
.progress-item span { display: block; margin-top: 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }

.progress-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31,107,79,0.08);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.goal-wrap {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.goal-line {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.goal-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(23,52,43,0.08);
  overflow: hidden;
}

.goal-bar i {
  display: block;
  width: 85%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #4d9676);
}

.heritage-focus-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(232, 225, 210, 0.72) 0 18%, transparent 18.5%),
    #fcfbf8;
  overflow: hidden;
}

.heritage-focus-meter {
  display: grid;
  place-items: center;
}

.heritage-focus-ring {
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 12px solid rgba(224, 217, 203, 0.9);
  display: grid;
  place-items: center;
  text-align: center;
  color: #193f2d;
  background: rgba(255, 255, 255, 0.82);
}

.heritage-focus-ring strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.heritage-focus-ring span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #746d61;
  letter-spacing: 0.04em;
}

.heritage-focus-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.heritage-focus-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #aa7a12;
  letter-spacing: 0.04em;
}

.heritage-focus-copy h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 52px);
  line-height: 1.02;
  color: #173f2b;
  font-family: 'Noto Serif SC', serif;
}

.heritage-focus-copy > p {
  margin: 0;
  color: #6d6f6d;
  font-size: 16px;
  line-height: 1.65;
}

.heritage-focus-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.heritage-focus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 12px;
  border: 0;
  background: #bf3f2d;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(191, 63, 45, 0.18);
}

.heritage-focus-note {
  color: #756c5e;
  font-size: 15px;
}

@media (min-width: 1081px) {
  :root {
    --bg: #f4f4f2;
    --surface: #fbfbfa;
    --ink: #1f2737;
    --muted: #7f8794;
    --line: #e6e9e7;
    --green: #0f6b45;
  }

  body {
    background: var(--bg);
    color: var(--ink);
  }

  .sidebar,
  .hero,
  .toolbox,
  .heritage-focus-card,
  .progress-card,
  .module-card,
  .mini-card,
  .hello-card,
  .time-card,
  .archive-card,
  .methods {
    backdrop-filter: none;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(24, 34, 28, 0.03), 0 4px 12px rgba(24, 34, 28, 0.02);
  }

  .sidebar {
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    border-radius: 22px;
    padding: 14px 12px;
    gap: 10px;
    background: #f8f7f3;
    overflow-y: auto;
  }

  .brand { gap: 6px; padding: 6px 8px 12px; }
  .brand img { width: 112px; }
  .brand strong { font-size: 13px; color: #8a919f; font-weight: 700; }
  .nav-list { gap: 6px; }

  .nav-item {
    padding: 11px 12px;
    border-radius: 12px;
    color: #232b39;
    font-size: 16px;
    font-weight: 700;
  }

  .nav-item:hover,
  .nav-item.is-active { background: #e8efe5; color: var(--green); }

  .nav-icon { width: 22px; height: 22px; border-radius: 6px; font-size: 13px; background: transparent; }

  .daily-btn {
    margin-top: 8px;
    border: 1px solid #d9dfdb;
    border-radius: 12px;
    padding: 11px 12px;
    color: #2a3443;
    font-weight: 800;
    background: #f5f5f4;
  }

  .sidebar-poster { margin-top: auto; border-radius: 14px; overflow: hidden; border: 0; background: transparent; box-shadow: none; }
  .sidebar-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 14px;
  }
  .sidebar-poster-copy { display: grid; gap: 6px; padding: 10px 4px 0; }
  .sidebar-poster-copy h3 { margin: 0; font-size: 16px; }
  .sidebar-poster-copy p { margin: 0; font-size: 12px; color: var(--muted); }
  .sidebar-poster-copy span { color: var(--green); font-weight: 800; font-size: 14px; }

  .main-layout {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
  }

  .content-grid { width: 100%; gap: 32px; }
  .content-grid > section { width: 100%; }

  .hero {
    min-height: 420px;
    border-radius: 18px;
    border: 0;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(27, 36, 29, 0.12);
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(27, 33, 44, 0.55) 0%, rgba(27, 33, 44, 0.38) 28%, rgba(27, 33, 44, 0.1) 56%, rgba(27, 33, 44, 0) 74%);
  }

  .hero img { object-fit: cover; object-position: 72% center; }

  .hero-content {
    padding: 66px 44px 30px;
    max-width: 640px;
    gap: 14px;
    color: #fff;
  }

  .hero-content h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 46px;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #f6f7f8;
  }

  .hero-content h1 span { color: #f6f7f8; }
  .hero-content p { margin-top: 4px; font-size: 18px; line-height: 1.65; color: rgba(246,247,248,0.96); font-weight: 600; }
  .hero-flags { gap: 10px; padding-top: 4px; }
  .hero-flags img { width: 32px; height: 20px; border-radius: 3px; box-shadow: none; }

  .hero-cta {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: #0f6b45;
    color: #fff;
    font-weight: 800;
    padding: 12px 20px;
  }

  .toolbox { border-radius: 16px; padding: 20px 22px 20px; background: #fcfcfb; }
  .section-head { margin-bottom: 14px; }
  .section-head h2,
  .section-head h3 { font-size: 20px; letter-spacing: -0.01em; }

  .tabs { gap: 28px; padding: 0; border: 0; background: transparent; border-radius: 0; }
  .tab { padding: 2px 0 8px; border-radius: 0; font-size: 16px; color: #8e95a3; border-bottom: 3px solid transparent; }
  .tab.is-active { background: transparent; box-shadow: none; color: var(--green); border-bottom-color: var(--green); }

  .toolbox-body { grid-template-columns: minmax(0, 1fr) 292px; gap: 18px; }
  .toolbox-main textarea {
    min-height: 160px;
    border-radius: 12px;
    border: 1px solid #dde2e0;
    background: #fff;
    font-size: 17px;
    color: #2c3545;
    padding: 18px 18px;
  }

  .btn-primary,
  .btn-soft,
  .btn-ghost { border-radius: 10px; padding: 10px 16px; font-size: 15px; }
  .btn-primary { background: var(--green); box-shadow: none; }
  .btn-soft { background: #f7f9f8; border: 1px solid #dde2e0; color: #4f596b; }

  .toolbox-side { border-radius: 12px; border: 1px solid #dee3e1; background: #fff; padding: 20px 16px; gap: 10px; }
  .toolbox-side .upload-icon { background: #f6f8f7; width: 50px; height: 50px; border-radius: 10px; box-shadow: none; }
  .toolbox-side h4 { font-size: 18px; margin: 0; }
  .toolbox-side p { font-size: 13px; color: #8a92a0; line-height: 1.5; margin: 0; }
  .example-row { font-size: 13px; color: #8a92a0; }
  .example-pill { padding: 8px 14px; border-radius: 999px; border: 1px solid #dde2e0; background: #f9fbfa; font-size: 15px; }

  .modules { gap: 12px; }
  .modules-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .module-card { border-radius: 14px; min-height: 120px; padding: 14px; gap: 6px; background: #fcfcfc; }
  .module-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
  .module-card h3 { margin: 0; font-size: 16px; }
  .module-card p { margin: 0; font-size: 13px; color: #8b92a1; line-height: 1.42; }
  .module-card span { font-size: 15px; }

  .methods { border-radius: 16px; padding: 18px; background: #fcfcfb; display: grid; gap: 14px; }
  .methods-head h3 { margin: 0; font-size: 22px; }
  .methods-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
  .methods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .method-card { border-radius: 14px; padding: 16px; border: 1px solid #dfe5df; display: grid; gap: 10px; }
  .method-card h4 { margin: 0; font-size: 24px; }
  .method-card p { margin: 0; font-size: 15px; color: #6f7787; line-height: 1.5; }
  .method-card ul { margin: 0; padding-left: 18px; color: #5e6877; font-size: 14px; line-height: 1.65; }
  .method-card .btn-primary,
  .method-card .btn-soft { justify-self: start; }
  .method-card.is-green { background: #f1f8f1; }
  .method-card.is-blue { background: #f1f6ff; }
  .method-card.is-gold { background: #fcf6eb; }

  .side > section { width: 100%; }

  .hello-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    padding: 36px 20px;
    min-height: 180px;
    background: linear-gradient(180deg, #85e2ce, #84dbc6);
    border: 0;
    box-shadow: none;
    text-align: center;
  }
  .hello-card h3 { margin: 0; font-size: 40px; letter-spacing: 0.04em; }
  .hello-card p { margin: 8px 0 0; font-size: 14px; color: #0f3b30; }

  .time-card { border-radius: 16px; padding: 20px; min-height: 160px; background: #f9faf8; }
  .calendar-modal[hidden] { display: none; }
  .calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(24, 31, 28, 0.28);
    backdrop-filter: blur(8px);
  }
  .calendar-dialog {
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border-radius: 22px;
    background: #fbfaf7;
    border: 1px solid #e1e6e1;
    box-shadow: 0 24px 64px rgba(24, 31, 28, 0.18);
    padding: 22px;
  }
  .calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    margin-bottom: 18px;
  }
  .calendar-title { margin: 0; font-size: 24px; line-height: 1.25; }
  .calendar-subtitle { margin: 6px 0 0; color: #6f7787; font-size: 14px; }
  .calendar-actions { display: flex; gap: 10px; align-items: center; }
  .calendar-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #dce2df;
    background: #fff;
    color: #253044;
    font-weight: 800;
    cursor: pointer;
  }
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }
  .calendar-weekday {
    border: 0;
    background: transparent;
    color: #0f6b45;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 4px;
    cursor: pointer;
  }
  .calendar-day {
    min-height: 82px;
    border-radius: 14px;
    border: 1px solid #e3e8e5;
    background: #fff;
    padding: 8px;
    display: grid;
    gap: 6px;
    align-content: start;
  }
  .calendar-day.is-muted { opacity: 0.35; }
  .calendar-day.is-today { border-color: #0f6b45; box-shadow: 0 0 0 2px rgba(15, 107, 69, 0.12); }
  .calendar-day-num { font-weight: 800; color: #253044; }
  .holiday-chip {
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 11px;
    line-height: 1.2;
    border: 1px solid transparent;
    width: fit-content;
  }
  .holiday-chip.cn { color: #8f2e20; background: #fff0ed; border-color: #f4d2ca; }
  .holiday-chip.hu { color: #0f5f44; background: #eef7f1; border-color: #cfe5d7; }
  .calendar-info {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .holiday-panel {
    border-radius: 16px;
    border: 1px solid #e1e6e1;
    background: #fff;
    padding: 14px;
  }
  .holiday-panel h4 { margin: 0 0 10px; font-size: 16px; }
  .holiday-list { display: grid; gap: 8px; }
  .holiday-item { color: #596578; font-size: 13px; line-height: 1.5; }
  .speak-word {
    border: 0;
    background: transparent;
    color: #0f6b45;
    font-weight: 800;
    padding: 0;
    cursor: pointer;
  }

  .progress-card,
  .heritage-focus-card,
  .archive-card { border-radius: 14px; padding: 16px; background: #fbfcfb; }

  .progress-card { position: relative; }
  .progress-card::after {
    content: '';
    position: absolute;
    top: 78px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 5px solid #dbe2dc;
    border-top-color: var(--green);
    border-right-color: var(--green);
    transform: rotate(26deg);
  }

  .mini-card-head { margin-bottom: 12px; }
  .mini-card-head h3 { margin: 0; font-size: 20px; }
  .progress-list { gap: 10px; }
  .progress-item { grid-template-columns: 42px 1fr auto; gap: 10px; }
  .progress-icon { width: 38px; height: 38px; border-radius: 9px; font-size: 18px; }
  .progress-item strong { font-size: 13px; }
  .progress-item span { font-size: 20px; }
  .progress-tag { font-size: 12px; padding: 6px 10px; }
  .goal-line { font-size: 13px; }
  .goal-bar { height: 7px; }

  .heritage-focus-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    background:
      radial-gradient(circle at top right, rgba(232, 225, 210, 0.78) 0 22%, transparent 22.5%),
      #fcfbf8;
  }
  .heritage-focus-ring {
    width: 76px;
    border-width: 9px;
  }
  .heritage-focus-ring strong { font-size: 16px; }
  .heritage-focus-ring span { font-size: 11px; margin-top: 6px; }
  .heritage-focus-kicker { font-size: 13px; }
  .heritage-focus-copy h2 { font-size: 24px; }
  .heritage-focus-copy > p { font-size: 14px; }
  .heritage-focus-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
  }
  .heritage-focus-note { font-size: 14px; }

  .archive-cover {
    position: relative;
    display: grid;
    align-content: end;
    gap: 8px;
    min-height: 196px;
    margin: -4px -4px 14px;
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
    background:
      linear-gradient(180deg, rgba(12, 25, 20, 0.02) 0%, rgba(12, 25, 20, 0.30) 48%, rgba(12, 25, 20, 0.78) 100%),
      url('../assets/home/匈牙利档案.png') center 32%/cover no-repeat;
  }
  .archive-card {
    padding: 10px;
  }
}
@media (max-width: 1360px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 1080px) {
  .sidebar {
    position: static;
    height: auto;
    border-radius: 14px;
  }
  .toolbox-body,
  .methods-grid,
  .modules-grid,
  .recommend-row {
    grid-template-columns: 1fr;
  }
  .main-layout {
    grid-template-columns: 1fr;
  }
  .hero-content { max-width: 100%; }
}

/* ===== Layout Refactor: Centered 3-Column ===== */
:root {
  --layout-max: 1360px;
  --layout-gap: 20px;
  --sidebar-w: 208px;
  --right-w: 272px;
  --main-min: 0px;
  --card-radius: 18px;
}

body {
  background: #F8F5F0;
}

.desktop-home {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 14px 36px 6px;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--right-w);
  gap: var(--layout-gap);
  align-items: start;
}

@media (min-width: 1400px) {
  :root {
    --layout-max: 1480px;
    --layout-gap: 22px;
    --sidebar-w: 220px;
    --right-w: 296px;
    --main-min: 0px;
  }

  .desktop-home {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--right-w);
  }

  .side {
    grid-column: auto;
    width: var(--right-w);
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
}

.main {
  width: 100%;
  display: grid;
  gap: 30px;
  align-content: start;
  padding: 0;
  margin-top: 18px;
}

.content-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.sidebar,
.hero,
.toolbox,
.methods,
.recommend,
.hello-card,
.time-card,
.progress-card,
.heritage-focus-card,
.archive-card {
  border-radius: var(--card-radius);
}

.sidebar {
  position: sticky;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #f7f5f1;
  padding-left: 10px;
  padding-right: 10px;
}

.brand {
  gap: 8px;
  padding: 8px 8px 12px;
  align-items: center;
}

.brand-mark {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.brand strong {
  font-size: 13px;
  color: #7a817c;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.nav-list {
  gap: 6px;
}

.nav-item {
  gap: 12px;
  font-size: 16px;
  padding: 11px 12px;
  border-radius: 14px;
  line-height: 1.2;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  color: currentColor;
}

.nav-icon svg,
.daily-btn-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-icon svg {
  stroke: none;
  fill: none;
}

.daily-btn-icon svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: #1a5c3a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  box-shadow: none;
}

.daily-btn:hover {
  background: #174e3d;
}

.side {
  grid-column: auto;
  width: var(--right-w);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-content: start;
  margin-top: 18px;
}

.archive-card {
  overflow: hidden;
  padding: 10px;
  background: #fbfcfb;
}

.archive-cover {
    position: relative;
    min-height: 248px;
    display: grid;
    align-content: end;
    gap: 10px;
    padding: 18px;
    border-radius: 14px;
    overflow: hidden;
  color: #fffaf2;
  background:
    linear-gradient(180deg, rgba(12, 25, 20, 0.04) 0%, rgba(12, 25, 20, 0.32) 48%, rgba(12, 25, 20, 0.78) 100%),
    url('../assets/home/匈牙利档案.png') center 32%/cover no-repeat;
  isolation: isolate;
}

.archive-cover::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 11px;
  pointer-events: none;
}

.archive-kicker {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.14);
  color: rgba(255, 250, 242, 0.86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.archive-cover strong {
    font-family: 'Noto Serif SC', serif;
    font-size: 27px;
    line-height: 1.08;
    letter-spacing: 0;
}

.archive-copy {
    max-width: 24ch;
    color: rgba(255, 250, 242, 0.86);
    font-size: 13.5px;
    line-height: 1.68;
}

.archive-tags {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 0 4px;
}

.archive-tags a.archive-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid rgba(20, 50, 38, 0.14);
    border-radius: 999px;
    background: #f4f7f3;
    color: #1d4732;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.archive-tags a.archive-tag:hover,
.archive-tags a.archive-tag:focus-visible {
    background: #e6efe6;
    border-color: rgba(20, 50, 38, 0.28);
    transform: translateY(-1px);
}

.archive-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 250, 242, 0.22);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.13);
    color: rgba(255, 250, 242, 0.9);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.archive-cover em {
    width: fit-content;
    margin-top: 4px;
    padding: 8px 11px;
  border-radius: 10px;
  background: #fffaf2;
  color: #17342b;
  font-style: normal;
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 560px) {
    .archive-cover {
        min-height: 260px;
        padding: 16px;
    }

    .archive-copy,
    .archive-tags {
        max-width: 100%;
    }

    .archive-copy {
        font-size: 13px;
        line-height: 1.62;
    }

    .archive-tags {
        gap: 5px;
    }

    .archive-tags span {
        min-height: 23px;
        padding: 4px 7px;
        font-size: 10.5px;
    }
}

.hero {
  width: 100%;
  min-height: 340px;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.hero::before {
  background: linear-gradient(90deg, rgba(20, 28, 36, 0.54) 0%, rgba(20, 28, 36, 0.34) 34%, rgba(20, 28, 36, 0.08) 64%, rgba(20, 28, 36, 0) 78%);
}

.hero img {
  object-fit: cover;
  object-position: 72% center;
}

.toolbox {
  width: 100%;
  padding: 22px;
}

.toolbox-main textarea {
  min-height: 172px;
}

.methods {
  width: 100%;
  padding: 22px;
}

.methods-grid {
  gap: 18px;
}

.method-card {
  padding: 18px;
}

.method-card.is-blue h4 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.recommend {
  width: 100%;
}

@media (max-width: 1080px) {
  .desktop-home {
    max-width: none;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px 28px;
  }

  .sidebar,
  .side {
    width: 100%;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    margin-inline: -12px;
    padding: 10px 12px 12px;
    border-radius: 0 0 18px 18px;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 8px;
  }

  .brand-mark {
    width: 76px;
    height: 44px;
    margin: 0;
  }

  .brand strong {
    text-align: right;
    font-size: 12px;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
    background: #fffdf8;
    border: 1px solid rgba(23, 52, 43, 0.08);
  }

  .side {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .toolbox-body,
  .methods-grid,
  .recommend-row {
    grid-template-columns: 1fr;
  }

  .heritage-focus-card {
    grid-template-columns: 1fr;
  }

  .heritage-focus-meter {
    justify-content: start;
  }

  .archive-cover {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .archive-cover {
    min-height: 260px;
  }
}

/* ===== Priority Update: Learning Path First ===== */
.content-grid {
  gap: 26px;
}

.welcome-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(14, 22, 32, 0.42) 0%, rgba(14, 22, 32, 0.24) 30%, rgba(14, 22, 32, 0.06) 58%, rgba(14, 22, 32, 0.00) 80%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(12, 18, 28, 0.10) 100%),
    url('../assets/home/13c5fbe3-c785-42e5-834b-ce93bce10c9d.png');
  background-size: cover;
  background-position: 58% 30%;
  border-radius: 20px;
  padding: 26px 28px;
  min-height: clamp(320px, 30vw, 380px);
  display: grid;
  gap: 18px;
  align-content: end;
  box-shadow: 0 10px 24px rgba(16, 24, 33, 0.18);
}

.welcome-copy {
  align-self: end;
  max-width: 560px;
}

.welcome-copy h1 {
  margin: 0;
  font-size: clamp(30px, 2.2vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #f4f7fb;
  max-width: 560px;
}

.welcome-copy h1 span {
  display: block;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-btn-main,
.hero-btn-sub {
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-btn-main {
  box-shadow: 0 8px 18px rgba(14, 91, 59, 0.28);
}

.hero-btn-sub {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  color: #2f3f5c;
}

.welcome-copy p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(244, 247, 251, 0.9);
  max-width: 600px;
}

.welcome-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 680px;
}

.welcome-input-row input {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 18px;
  font-size: 15px;
  color: #2b3445;
  outline: none;
}

.welcome-input-row .btn-primary {
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

    .methods-priority {
        padding: 20px;
        border-radius: 20px;
        background: #F8F5F0;
        border: 1px solid #e5e8e6;
    }

.methods-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.methods-head p {
  margin: 8px 0 0;
  font-size: 15px;
  color: #758092;
  line-height: 1.65;
}

.methods-grid-priority {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

    .method-card {
        padding: 24px 24px 22px;
        border-radius: 22px;
        min-height: 340px;
        gap: 14px;
        position: relative;
        cursor: pointer;
        border: 1px solid #e4e7eb;
        background: #ffffff;
        box-shadow: 0 6px 16px rgba(0,0,0,0.05);
        transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    }

.method-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: #1f2937;
  letter-spacing: -0.01em;
}

.method-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: #667085;
}

.method-card ul {
  margin: 4px 0 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #475467;
}

.method-card li::marker {
  font-size: 1.15em;
}

.method-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
  box-shadow: 0 8px 20px rgba(16, 24, 32, 0.05);
}

    .method-card.is-featured {
        background: #ffffff;
        border: 1px solid #e4e7eb;
        box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    }

.method-card.is-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 24, 32, 0.05);
  border-color: #d1d5db;
}

.method-card.is-featured h4,
.method-card.is-featured p,
.method-card.is-featured ul {
  color: inherit;
}

.method-card.is-featured .btn-primary {
  background: #ffffff;
  color: #1a5c3a;
  box-shadow: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 16px;
  min-height: 46px;
  border: 1px solid #1a5c3a;
}

.method-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(22, 100, 70, 0.08);
  color: #166446;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

    .method-card.is-green,
    .method-card.is-gold,
    .method-card.is-featured {
        background: #ffffff;
        border-color: #e4e7eb;
    }

.method-card.is-green h4,
.method-card.is-gold h4,
.method-card.is-featured h4 {
  color: #1a5c3a;
}

.method-card .btn-soft {
  border-radius: 16px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  color: #1a5c3a;
  border: 1px solid #1a5c3a;
  background: #ffffff;
}

.method-card.is-green .btn-soft,
.method-card.is-gold .btn-soft {
  color: #1a5c3a;
  border-color: #1a5c3a;
  background: #ffffff;
  box-shadow: none;
}

    .methods-priority .btn-soft,
    .methods-priority .btn-primary {
        background-color: #1a5c3a !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 8px !important;
    }

    .ai-tools {
        padding: 20px;
        border-radius: 20px;
        background: #F8F5F0;
    }

.ai-tools .section-head {
  margin-bottom: 16px;
}

.ai-tools .section-head h2 {
  font-size: 21px;
  line-height: 1.3;
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

    .ai-tool-card {
        border: 1px solid #dfe4e2;
        background: #fff;
        border-radius: 16px;
        padding: 22px;
        display: grid;
        gap: 8px;
        min-height: 320px;
        height: 100%;
        box-shadow: 0 6px 16px rgba(0,0,0,0.05);
        transition: all 0.2s ease;
        cursor: pointer;
    }

.ai-tool-card:hover {
  border-color: #b8cfc4;
  box-shadow: 0 12px 24px rgba(24, 55, 42, 0.12);
  transform: translateY(-3px);
}

.ai-tool-card h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: #1f2737;
  font-weight: 800;
}

.ai-tool-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #697487;
}

.ai-tool-card .ai-tool-cta {
  margin-top: auto;
  color: #0f6b45;
  font-weight: 800;
  font-size: 15px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #eaf5ef;
  border: 1px solid #d0e5db;
  width: fit-content;
}

.ai-tool-icon {
  width: 100%;
  height: 184px;
  border-radius: 14px;
  border: 1px solid #dce3df;
  background-color: #f3f8f5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  margin-bottom: 6px;
  overflow: hidden;
  object-fit: cover;
  filter: brightness(1.06);
}

.ai-tools-grid .ai-tool-card:nth-child(1) .ai-tool-icon {
  background-image: url('../assets/home/ai-tool-sentence.png');
  background-position: center;
  filter: brightness(1.1);
}

.ai-tools-grid .ai-tool-card:nth-child(2) .ai-tool-icon {
  background-image: url('../assets/home/ai-tool-image.png');
  background-position: center;
  filter: brightness(1.06);
}

.ai-tools-grid .ai-tool-card:nth-child(3) .ai-tool-icon {
  background-image: url('../assets/home/ai-tool-scene.png');
  background-position: center;
  filter: brightness(1.05);
}

.recommend {
  gap: 14px;
}

.recommend-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(276px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.reco-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dfe4e2;
  box-shadow: 0 8px 18px rgba(36, 48, 40, 0.06);
  padding: 6px;
  min-height: 252px;
}

.reco-cover {
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}

.reco-copy {
  padding: 10px 8px 6px;
  gap: 6px;
}

.reco-copy h4 {
  font-size: 18px;
  line-height: 1.2;
}

.reco-copy p {
  font-size: 14px;
}

.reco-card--today {
  padding: 0;
  min-height: 252px;
  border: 0;
  background: transparent;
  box-shadow: 0 18px 34px rgba(61, 50, 38, 0.12);
  overflow: hidden;
}

.today-hungary-poster {
  position: relative;
  min-height: 100%;
  aspect-ratio: 4 / 5.35;
  border-radius: 18px;
  overflow: hidden;
  background: #d8cfbf;
}

.today-hungary-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.02);
}

.today-hungary-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 20px 20px;
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, rgba(23, 18, 14, 0) 0%, rgba(23, 18, 14, 0.42) 42%, rgba(23, 18, 14, 0.86) 100%);
  color: #fff9f1;
}

.today-hungary-overlay h4 {
  margin: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
}

.today-hungary-overlay p {
  margin: 0;
  max-width: 13ch;
  color: rgba(255, 248, 240, 0.92);
  font-size: 15px;
  line-height: 1.72;
}

.hello-card h3 {
  font-size: 36px;
}

.hello-card p {
  font-size: 13px;
}

.time-card {
  padding: 18px 18px;
  min-height: 154px;
}

.time-card-top {
  gap: 10px;
  font-size: 12px;
}

.time-card .time-value {
  font-size: 38px;
}

.time-card .time-date {
  font-size: 13px;
}

.time-card-secondary {
  font-size: 12px;
}

.time-card-link {
  font-size: 14px;
}

.progress-card,
.heritage-focus-card,
.archive-card {
  padding: 14px;
}

.mini-card-head {
  margin-bottom: 10px;
}

.mini-card-head h3,
.archive-card h4 {
  font-size: 18px;
}

@media (max-width: 1080px) {
  .welcome-input-row {
    grid-template-columns: 1fr;
  }

  .ai-tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recommend-row {
    grid-auto-columns: minmax(260px, 88vw);
    gap: 14px;
  }

  .reco-card {
    min-height: 240px;
  }

  .reco-card--today {
    min-height: 240px;
  }

  .calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 12px;
    background: rgba(24, 31, 28, 0.28);
  }
  .calendar-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 18px;
    background: #fbfaf7;
    padding: 16px;
  }
  .calendar-head,
  .calendar-info {
    grid-template-columns: 1fr;
    display: grid;
  }
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
  }
  .calendar-day {
    min-height: 64px;
    padding: 5px;
  }
  .holiday-chip {
    font-size: 10px;
    padding: 2px 5px;
  }
}

/* Homepage culture refresh: keep recommendations as 3 study cards and move
   Today in Hungary into the right rail as a magazine-like thumbnail card. */
.calendar-modal[hidden],
.today-hungary-modal[hidden] {
  display: none !important;
}

.mobile-home-header,
.mobile-bottom-tabs,
.home-visit-stats,
.methods-mobile-head,
.mobile-learning-tools {
  display: none;
}

.mobile-szia-card {
  display: contents;
}

.recommend-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: unset;
  overflow: visible;
}

.today-hungary-panel {
  border-radius: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 12px;
}

.today-hungary-panel-head {
  display: grid;
  gap: 2px;
}

.today-hungary-panel-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.today-hungary-panel-en {
  color: #8a857a;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.today-hungary-panel-head p {
  margin: 0;
  color: #7b776d;
  font-size: 12px;
  line-height: 1.5;
}

.today-hungary-thumb-card {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(58, 47, 36, 0.11);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.today-hungary-thumb-card:hover,
.today-hungary-thumb-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(58, 47, 36, 0.15);
}

.today-hungary-thumb-card:focus-visible {
  outline: 2px solid rgba(31, 107, 79, 0.24);
  outline-offset: 3px;
}

.today-hungary-thumb-media {
  position: relative;
  aspect-ratio: 4 / 4.3;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 246, 230, 0.38), transparent 34%),
    linear-gradient(180deg, #d9ccb9 0%, #cbb8a3 100%);
}

.today-hungary-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transform: scale(var(--today-hungary-thumb-scale, 1.12));
  transition: transform 0.34s ease;
  filter: saturate(0.95) contrast(1.02);
}

.today-hungary-thumb-card:hover .today-hungary-thumb-media img,
.today-hungary-thumb-card:focus-visible .today-hungary-thumb-media img {
  transform: scale(var(--today-hungary-thumb-hover-scale, 1.14));
}

.today-hungary-thumb-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 42px 16px 16px;
  display: grid;
  gap: 5px;
  text-align: left;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(19, 17, 15, 0.18) 34%, rgba(19, 17, 15, 0.74) 100%);
  color: #fff8f0;
}

.today-hungary-thumb-overlay span {
  font-size: 10px;
  line-height: 1.3;
  color: rgba(255, 248, 240, 0.78);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.today-hungary-thumb-overlay strong {
  font-size: 20px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.today-hungary-thumb-overlay p {
  margin: 0;
  max-width: 18ch;
  color: rgba(255, 248, 240, 0.9);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.today-hungary-modal-open {
  overflow: hidden;
}

.today-hungary-modal[hidden] {
  display: none;
}

.today-hungary-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 28px 18px;
  display: grid;
  place-items: center;
  background: rgba(20, 18, 15, 0.54);
  backdrop-filter: blur(12px);
}

.today-hungary-modal-dialog {
  position: relative;
  width: min(92vw, 760px);
  max-height: calc(100vh - 56px);
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 28px 60px rgba(23, 18, 14, 0.24);
  display: grid;
  gap: 14px;
}

.today-hungary-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #314036;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(27, 30, 26, 0.12);
}

.today-hungary-modal-scroll {
  overflow: auto;
  border-radius: 18px;
  background: #eee4d6;
  max-height: calc(100vh - 180px);
}

.today-hungary-modal-scroll img {
  display: block;
  width: 100%;
  height: auto;
}

.today-hungary-modal-title {
  margin: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .recommend-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82vw);
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    gap: 14px;
  }

  .recommend-row .reco-card {
    scroll-snap-align: start;
  }

  .today-hungary-modal {
    padding: 16px;
  }

  .today-hungary-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 32px);
    padding: 16px;
    border-radius: 22px;
  }

  .today-hungary-modal-scroll {
    max-height: calc(100vh - 150px);
  }

  .today-hungary-thumb-overlay strong {
    font-size: 19px;
  }
}

@media (max-width: 768px) {
  :root {
    --mobile-bg: #fbf7ef;
    --mobile-card: rgba(255, 255, 255, 0.88);
    --mobile-ink: #12283a;
    --mobile-muted: #627066;
    --mobile-green: #1f7458;
    --mobile-green-deep: #15543f;
    --mobile-line: rgba(31, 116, 88, 0.10);
    --mobile-shadow: 0 14px 34px rgba(31, 64, 49, 0.09);
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 118px;
    background:
      radial-gradient(circle at 20% -8%, rgba(232, 217, 186, 0.46), transparent 34%),
      linear-gradient(180deg, #fffcf6 0%, var(--mobile-bg) 44%, #f7f2e9 100%);
    color: var(--mobile-ink);
    font-size: 16px;
  }

  body.today-hungary-modal-open {
    overflow: hidden;
  }

  .mobile-home-header {
    width: 100%;
    min-height: 70px;
    padding: 12px 24px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .mobile-home-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-home-brand::before {
    content: "";
    width: 42px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: url('../images/image-nav.png') center 39% / 86px 86px no-repeat;
  }

  .mobile-home-brand img {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-home-brand span {
    color: #101928;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
  }

  .mobile-home-menu {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgba(246, 247, 245, 0.96);
    color: #172331;
    box-shadow: 0 10px 24px rgba(24, 38, 31, 0.08);
    display: inline-grid;
    place-content: center;
    gap: 5px;
    flex: 0 0 auto;
  }

  .mobile-home-menu span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    display: block;
  }

  .desktop-home {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .sidebar {
    display: none;
  }

  .main,
  .content-grid {
    display: contents;
  }

  .welcome-card {
    display: none;
    order: 99;
    min-height: 318px;
    padding: 30px 26px 28px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    background:
      linear-gradient(90deg, rgba(251, 247, 239, 0.98) 0%, rgba(251, 247, 239, 0.86) 35%, rgba(251, 247, 239, 0.36) 65%, rgba(251, 247, 239, 0.10) 100%),
      linear-gradient(180deg, rgba(18, 40, 58, 0.00) 0%, rgba(18, 40, 58, 0.16) 100%),
      url('../assets/home/13c5fbe3-c785-42e5-834b-ce93bce10c9d.png');
    background-size: cover;
    background-position: 64% center;
    box-shadow: 0 16px 34px rgba(38, 55, 46, 0.14);
    align-content: center;
    overflow: hidden;
  }

  .welcome-copy {
    max-width: 310px;
    align-self: center;
  }

  .welcome-copy h1 {
    color: #10273a;
    font-family: 'Noto Serif SC', 'Manrope', sans-serif;
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.16;
    letter-spacing: -0.02em;
    font-weight: 900;
  }

  .welcome-copy p {
    margin: 18px 0 0;
    max-width: 250px;
    color: rgba(16, 39, 58, 0.84);
    font-size: 16px;
    line-height: 1.72;
    font-weight: 650;
  }

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

  .hero-btn-main,
  .hero-btn-sub {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 16px;
    white-space: nowrap;
  }

  .hero-btn-main::after {
    content: "→";
    margin-left: 10px;
    font-size: 20px;
    line-height: 1;
  }

  .hero-btn-main {
    background: linear-gradient(180deg, #238262 0%, #1d6e54 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(25, 103, 76, 0.24);
  }

  .hero-btn-sub {
    background: rgba(255, 255, 255, 0.82);
    color: var(--mobile-green);
    border: 1px solid rgba(31, 116, 88, 0.32);
    box-shadow: none;
  }

  .home-visit-stats {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0 -24px -24px;
    min-height: 44px;
    padding: 10px 16px;
    border-top: 1px solid rgba(31, 116, 88, 0.08);
    color: #65726b;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.44);
  }

  .home-visit-stats strong {
    color: var(--mobile-green);
    font-size: 15px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }

  .side {
    order: 3;
    width: 100%;
    display: grid;
    gap: 24px;
    margin: 0;
  }

  .mobile-szia-card {
    order: 5;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(234, 246, 239, 0.78)),
      radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.88), transparent 34%);
    box-shadow: var(--mobile-shadow);
    overflow: hidden;
  }

  .mobile-szia-card::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -18px;
    width: 230px;
    height: 136px;
    opacity: 0.10;
    background: url('../assets/home/渔人堡.png') center bottom / cover no-repeat;
    filter: saturate(0.55);
    pointer-events: none;
  }

  .mobile-szia-card .hello-card,
  .mobile-szia-card .time-card {
    position: relative;
    z-index: 1;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .mobile-szia-card .hello-card {
    padding: 0;
    background: transparent;
    align-self: center;
  }

  .hello-card h3 {
    color: #10273a;
    font-size: 31px;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  .hello-card p {
    margin-top: 12px;
    color: #606b73;
    font-size: 16px;
    line-height: 1.58;
  }

  .mobile-szia-card .time-card {
    width: 100%;
    min-height: 0 !important;
    padding: 0 0 0 18px !important;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(31, 116, 88, 0.10);
  }

  .time-card-top {
    align-items: center;
    gap: 12px;
    font-size: 14px;
  }

  .time-card-place,
  .time-card-weather {
    color: #4d5f57;
    font-size: 14px;
  }

  .time-card .time-value {
    margin-top: 12px;
    display: block;
    color: #10273a;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .time-card .time-date {
    margin-top: 10px;
    color: #68747d;
    font-size: 15px;
    line-height: 1.45;
  }

  .time-card-secondary {
    display: none;
    margin-top: 14px;
    color: #65726b;
    font-size: 14px;
  }

  .time-card-link {
    display: none;
    margin-top: 18px;
    color: var(--mobile-green);
    font-size: 16px;
    font-weight: 900;
  }

  .heritage-focus-card {
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(34, 80, 60, 0.08);
    background: var(--mobile-card);
    box-shadow: var(--mobile-shadow);
  }

  .heritage-focus-meter {
    display: none;
  }

  .heritage-focus-copy {
    gap: 14px;
  }

  .heritage-focus-kicker {
    color: #10273a;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .heritage-focus-copy h2 {
    margin-top: 8px;
    color: #101b2d;
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  .heritage-focus-copy > p {
    color: #6a7370;
    font-size: 16px;
  }

  .heritage-focus-actions {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .heritage-focus-btn {
    min-height: 50px;
    width: auto;
    min-width: 132px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, #238262 0%, #1d6e54 100%);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 12px 22px rgba(25, 103, 76, 0.20);
  }

  .heritage-focus-note {
    color: #737d75;
    font-size: 15px;
    text-align: center;
  }

  .phrase-play-status {
    min-height: 20px;
    color: #8a6952;
    font-size: 14px;
    line-height: 1.4;
  }

  .today-hungary-panel {
    order: 3;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: var(--mobile-card);
    border: 1px solid rgba(34, 80, 60, 0.08);
    box-shadow: var(--mobile-shadow);
  }

  .today-hungary-panel-head {
    position: relative;
    padding-right: 96px;
    gap: 6px;
  }

  .today-hungary-panel-head h3 {
    color: #10273a;
    font-size: 21px;
    letter-spacing: -0.02em;
  }

  .today-hungary-panel-en {
    display: none;
  }

  .today-hungary-panel-head p {
    color: #67726c;
    font-size: 16px;
    line-height: 1.5;
  }

  .today-hungary-more {
    position: absolute;
    top: 2px;
    right: 0;
    color: var(--mobile-green);
    font-size: 14px;
    font-weight: 900;
  }

  .today-hungary-thumb-card {
    border-radius: 18px;
    box-shadow: none;
  }

  .today-hungary-thumb-media {
    aspect-ratio: 16 / 8.6;
  }

  .today-hungary-thumb-overlay {
    padding: 54px 18px 18px;
  }

  .today-hungary-thumb-overlay strong {
    font-size: 24px;
  }

  .today-hungary-thumb-overlay p {
    max-width: 22ch;
    font-size: 15px;
  }

  .methods-priority {
    order: 1;
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(34, 80, 60, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: var(--mobile-shadow);
  }

  .methods-mobile-head {
    display: grid;
    gap: 8px;
    margin: 0;
  }

  .methods-mobile-head h3 {
    margin: 0;
    color: #10273a;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .methods-mobile-head p {
    margin: 0;
    color: #6f7b73;
    font-size: 15px;
    line-height: 1.5;
  }

  .methods-grid-priority {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .method-card {
    min-height: 0;
    padding: 18px 48px 18px 72px;
    border-radius: 18px;
    border: 1px solid rgba(34, 80, 60, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(31, 64, 49, 0.07);
    gap: 8px;
    cursor: default;
  }

  .method-card .btn-soft,
  .method-card .btn-primary {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0 !important;
    border-radius: inherit !important;
    opacity: 0;
    overflow: hidden;
    color: transparent !important;
    background: transparent !important;
  }

  .method-card::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eaf4ef;
  }

  .method-card::after {
    content: "→";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mobile-green);
    font-size: 22px;
    font-weight: 900;
  }

  .method-card:nth-child(1)::before {
    background:
      radial-gradient(circle at 50% 50%, var(--mobile-green) 0 4px, transparent 5px),
      conic-gradient(from 40deg, transparent 0 16%, var(--mobile-green) 16% 40%, transparent 40% 100%),
      #e8f3ee;
  }

  .method-card:nth-child(2)::before {
    background:
      linear-gradient(90deg, transparent 18px, #e2aa2f 18px 22px, transparent 22px),
      radial-gradient(circle at 15px 15px, #e2aa2f 0 8px, transparent 9px),
      radial-gradient(circle at 25px 15px, #e2aa2f 0 8px, transparent 9px),
      #fff4d8;
  }

  .method-card:nth-child(3)::before {
    background:
      radial-gradient(circle at 13px 20px, #5b82e6 0 3px, transparent 4px),
      radial-gradient(circle at 20px 20px, #5b82e6 0 3px, transparent 4px),
      radial-gradient(circle at 27px 20px, #5b82e6 0 3px, transparent 4px),
      #e8efff;
  }

  .method-title-row {
    display: block;
  }

  .method-badge,
  .method-card ul {
    display: none !important;
  }

  .method-card h4 {
    color: #12283a;
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 2px;
  }

  .method-card p {
    color: #66736d;
    font-size: 15px;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .toolbox,
  .ai-tools,
  .recommend {
    display: none !important;
  }

  .mobile-learning-tools {
    order: 2;
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(34, 80, 60, 0.08);
    box-shadow: var(--mobile-shadow);
  }

  .mobile-learning-tools h3 {
    margin: 0;
    color: #10273a;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .mobile-tool-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-tool-card {
    min-width: 0;
    min-height: 106px;
    padding: 14px 9px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12px;
    grid-template-rows: auto auto;
    gap: 7px 6px;
    align-items: center;
    color: #11263a;
    border: 1px solid rgba(31, 116, 88, 0.08);
  }

  .mobile-tool-card.is-ai {
    background: linear-gradient(135deg, #eaf6ef 0%, #f7fbf7 100%);
  }

  .mobile-tool-card.is-video {
    background: linear-gradient(135deg, #eee9ff 0%, #fbf8ff 100%);
  }

  .mobile-tool-card.is-scene {
    background: linear-gradient(135deg, #fff2d9 0%, #fffaf0 100%);
  }

  .mobile-tool-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mobile-green);
  }

  .mobile-tool-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .mobile-tool-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mobile-tool-card.is-video .mobile-tool-icon {
    color: #7d5fe6;
  }

  .mobile-tool-card.is-scene .mobile-tool-icon {
    color: #d9961b;
  }

  .mobile-tool-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tool-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
  }

  .mobile-tool-copy strong {
    font-size: 16px;
    line-height: 1.15;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-tool-copy em {
    color: #69746f;
    font-size: 12px;
    line-height: 1.25;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-tool-arrow {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: var(--mobile-green);
    font-size: 18px;
    font-weight: 900;
  }

  .mobile-bottom-tabs {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 70;
    min-height: 72px;
    padding: 8px 8px 9px;
    border: 1px solid rgba(34, 80, 60, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(31, 42, 36, 0.13);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
  }

  .mobile-tab {
    min-width: 0;
    min-height: 54px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: #59636d;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
  }

  .mobile-tab-icon {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-tab svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tab.is-active {
    color: var(--mobile-green);
  }

  .calendar-modal,
  .today-hungary-modal {
    z-index: 90;
  }
}

@media (max-width: 380px) {
  .mobile-home-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mobile-home-brand::before {
    width: 38px;
    height: 31px;
    background-size: 78px 78px;
  }

  .mobile-home-brand span {
    font-size: 21px;
  }

  .welcome-card {
    display: none;
    min-height: 300px;
    padding: 26px 20px;
    background-position: 68% center;
  }

  .welcome-copy {
    max-width: 290px;
  }

  .hero-btn-main,
  .hero-btn-sub {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 15px;
  }

  .mobile-bottom-tabs {
    left: 10px;
    right: 10px;
    border-radius: 18px;
  }

  .mobile-tab {
    font-size: 11px;
  }
}
