﻿:root {
  --header-height: 82px;
  --bg: #f4f3ef;
  --surface: #fbfaf7;
  --text: #1f2128;
  --muted: #666c7a;
  --line: #dcd8ce;
  --accent: #0ea5a0;
  --accent-2: #ff5e4a;
  --shadow: 0 16px 35px rgba(20, 30, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-height);
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 160, 0.18), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(255, 94, 74, 0.15), transparent 28%),
    var(--bg);
}

body.modal-open {
  overflow: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: radial-gradient(#000 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.site-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(244, 243, 239, 0.88);
  border-bottom: 1px solid rgba(220, 216, 206, 0.85);
}

.site-header,
main {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 0.45rem 0;
}

.brand img {
  width: 210px;
  max-width: 42vw;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav a {
  color: #1f222d;
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 220ms ease, color 220ms ease;
}

.main-nav a:hover,
.main-nav .active {
  color: #0f1118;
  border-color: var(--accent-2);
}

.nav-toggle {
  display: none;
  border: 0;
  background: #1f222d;
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
}

main {
  padding: 1.5rem 0 4rem;
}

.hero {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
}

.hero h1 {
  margin: 0.7rem 0 0.9rem;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
  max-width: 18ch;
}

.hero p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.6;
}

.hero-cta {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.25);
}

.btn-ghost {
  color: #131722;
  border: 1px solid #c9c3b8;
  background: rgba(255, 255, 255, 0.6);
}

.catalogue {
  margin-top: 2.1rem;
}

.catalogue-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
}

.catalogue-head p {
  margin: 0.4rem 0 1.1rem;
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.chip {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  background: #e8e3d9;
  color: #232734;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip.active {
  background: #111827;
  color: #fff;
}

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

.card {
  border: 1px solid #d5d0c4;
  border-radius: 20px;
  padding: 1rem;
  background:
    linear-gradient(120deg, rgba(14, 165, 160, 0.05), rgba(255, 94, 74, 0.04)),
    var(--surface);
  box-shadow: 0 8px 25px rgba(40, 48, 64, 0.08);
  transition: transform 200ms ease, box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(40, 48, 64, 0.13);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.tag,
.duration {
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
}

.tag {
  color: #11504d;
  background: rgba(14, 165, 160, 0.16);
}

.duration {
  color: #874338;
  background: rgba(255, 94, 74, 0.18);
}

.card h3 {
  margin: 0.85rem 0 0.45rem;
  line-height: 1.25;
}

.card p {
  color: #535a68;
  line-height: 1.55;
  margin-top: 0;
}

.card-link {
  font-weight: 700;
  color: #121826;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.has-js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card.is-hidden {
  display: none;
}

.learning-sheet {
  display: grid;
  gap: 1rem;
}

.sheet-block {
  border: 1px solid #d5d0c4;
  border-radius: 20px;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  background: rgba(251, 250, 247, 0.9);
  box-shadow: 0 8px 22px rgba(40, 48, 64, 0.08);
}

.sheet-block h2 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

.sheet-block h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.02rem;
}

.sheet-block p {
  margin: 0.45rem 0;
  line-height: 1.65;
  color: #444d5c;
}

.simple-list,
.check-list {
  margin: 0.5rem 0 0.2rem;
  padding-left: 1.1rem;
}

.simple-list li,
.check-list li {
  margin: 0.35rem 0;
  line-height: 1.55;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.check-list li::before {
  content: "□";
  line-height: 1.4;
  color: #1f222d;
}

.sheet-block.is-accordion {
  padding: 0;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 1rem 1.15rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.35rem 1rem;
}

.accordion-title {
  grid-column: 1;
  font-family: "Fraunces", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 700;
}

.accordion-summary {
  grid-column: 1;
  color: #525a67;
  line-height: 1.55;
}

.accordion-icon {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #d5d0c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}

.accordion-progress {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  min-width: 3.2rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #4b5563;
  background: #f1ede4;
  border: 1px solid #d9d2c4;
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
}

.accordion-progress.is-started {
  color: #0f5132;
  background: #e6f7ef;
  border-color: #b9e5cc;
}

.accordion-progress.is-complete {
  color: #fff;
  background: #0f766e;
  border-color: #0f766e;
}

.sheet-block.is-open .accordion-icon {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.accordion-content {
  border-top: 1px solid #dfdbd1;
  padding: 0.85rem 1.15rem 1.1rem;
}

.check-list .check-item {
  display: block;
  margin: 0.35rem 0;
  gap: 0;
  align-items: initial;
}

.check-list .check-item::before {
  content: none;
}

.check-label {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: 0.55rem;
  cursor: pointer;
}

.progress-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-indicator {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid #a8afbc;
  border-radius: 0.3rem;
  background: #fff;
  margin-top: 0.12rem;
  transition: all 160ms ease;
}

.check-item-text {
  line-height: 1.55;
}

.progress-check:checked + .check-indicator {
  background: #0f766e;
  border-color: #0f766e;
  box-shadow: inset 0 0 0 2px #fff;
}

.check-item.is-done .check-item-text {
  color: #6b7280;
  text-decoration: line-through;
}

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

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
}

.qr-modal__dialog {
  position: relative;
  width: min(92vw, 430px);
  background: #fff;
  border: 1px solid #ddd6c9;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
  padding: 1rem 1rem 1.2rem;
  text-align: center;
}

.qr-modal__dialog h2 {
  margin: 0.2rem 0 0.85rem;
  font-size: 1.1rem;
}

.qr-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #d8d2c6;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.qr-modal__image {
  width: min(78vw, 320px);
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5dfd2;
  background: #fff;
  padding: 0.45rem;
}

.qr-modal__url {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  color: #5b6473;
  word-break: break-word;
}

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

  .main-nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% - 8px);
    flex-direction: column;
    align-items: flex-start;
    width: min(260px, calc(100vw - 3rem));
    background: #fffefa;
    border: 1px solid #d6d0c4;
    border-radius: 14px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }

  .site-header,
  main {
    width: calc(100% - 1.4rem);
  }

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

  .hero {
    border-radius: 18px;
  }
}

