
:root {
  color-scheme: light;
  --ink: #14343a;
  --muted: #62737b;
  --line: #d7e5e3;
  --soft: #f3faf7;
  --paper: #fffdf7;
  --green: #0f8a6a;
  --mint: #9fe7c4;
  --lime: #e9f58f;
  --coral: #ff7a59;
  --blue: #3d77c3;
  --sun: #ffd36e;
  --shadow: 0 18px 60px rgba(20, 52, 58, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffdf7 0%, #f8fbf4 46%, #ffffff 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(215, 229, 227, 0.86);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), #48b58f);
  color: #fffdf7;
  font-weight: 800;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-header nav {
  justify-content: center;
}

.site-header a,
.site-footer a {
  text-decoration: none;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.header-cta,
.button.primary {
  background: var(--green);
  color: #fffdf7;
  border-color: var(--green);
}

.button.ghost {
  background: rgba(255, 253, 247, 0.86);
  color: var(--ink);
}

.page-hero,
.section,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(780px, calc(100svh - 72px));
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 58, 62, 0.86) 0%, rgba(15, 138, 106, 0.54) 45%, rgba(255, 211, 110, 0.08) 100%),
    url("/assets/kakochina-hero.png") center / cover no-repeat;
  color: #fffdf7;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, rgba(12, 58, 62, 0), rgba(12, 58, 62, 0.74));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 118px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: var(--sun);
}

.hero-copy > p:not(.eyebrow) {
  color: rgba(255, 253, 247, 0.88);
  text-wrap: balance;
}

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

.hero .button.primary {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

.hero .button.ghost {
  border-color: rgba(255, 253, 247, 0.58);
  background: rgba(255, 253, 247, 0.14);
  color: #fffdf7;
  backdrop-filter: blur(12px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
  max-width: 620px;
}

.stats div,
.page-card,
.feature-panel,
.category-tile,
.product-card,
.source-category-card,
details,
.guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
}

.stats div {
  padding: 14px;
}

.hero .stats div {
  border-color: rgba(255, 253, 247, 0.24);
  background: rgba(255, 253, 247, 0.13);
  backdrop-filter: blur(14px);
}

.stats dt {
  font-weight: 850;
  font-size: 1.15rem;
}

.stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero .stats dd {
  color: rgba(255, 253, 247, 0.74);
}

.hero-search-strip {
  position: absolute;
  right: max(18px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  z-index: 2;
  display: flex;
  max-width: min(680px, calc(100% - 36px));
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.hero-search-strip a {
  min-height: 38px;
  border: 1px solid rgba(255, 253, 247, 0.32);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 253, 247, 0.16);
  color: #fffdf7;
  font-weight: 760;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: end;
  padding: 74px 0 36px;
}

.page-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

.page-card span {
  color: var(--muted);
}

.page-card strong {
  display: block;
  margin: 8px 0;
  font-size: 2rem;
}

.section {
  padding: 54px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section h2,
.guide h2 {
  max-width: 720px;
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section p,
.guide li {
  color: var(--muted);
  line-height: 1.72;
}

.category-showcase {
  margin: 46px 0 0;
  padding: clamp(54px, 7vw, 92px) clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 18% 12%, rgba(159, 231, 196, 0.64), transparent 32%),
    linear-gradient(135deg, #fff5c2 0%, #e8f8d4 44%, #d9f7ef 100%);
}

.category-showcase.compact {
  margin-top: 40px;
}

.category-showcase-heading {
  width: min(1180px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.category-showcase-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.category-showcase-heading p {
  max-width: 780px;
  margin: 18px auto 0;
  color: #245158;
  font-size: clamp(1rem, 2vw, 1.32rem);
  line-height: 1.55;
}

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

.category-tile {
  display: block;
  min-height: 142px;
  padding: 20px;
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff, #f2fbf2);
}

.category-tile span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 850;
}

.category-tile strong {
  display: block;
  line-height: 1.35;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-category-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.source-category-card {
  display: grid;
  min-height: 172px;
  place-items: center;
  gap: 14px;
  padding: 22px 16px;
  border: 1px solid rgba(255, 253, 247, 0.78);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 16px 36px rgba(20, 52, 58, 0.09);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.source-category-card:hover {
  transform: translateY(-4px);
  background: #fffdf7;
  box-shadow: 0 20px 44px rgba(20, 52, 58, 0.14);
}

.source-category-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 138, 106, 0.14), rgba(255, 122, 89, 0.12));
}

.source-category-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--green);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-category-card strong {
  display: -webkit-box;
  max-width: 100%;
  min-height: 2.4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  font-size: clamp(1.02rem, 1.4vw, 1.28rem);
  line-height: 1.15;
}

.product-card {
  overflow: hidden;
}

.product-card > div:last-child {
  padding: 18px;
}

.product-card h3 {
  margin: 8px 0 8px;
  font-size: 1.2rem;
}

.meta {
  margin: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-thumb {
  display: grid;
  height: 156px;
  place-items: end start;
  padding: 14px;
  background: #f1f4f7;
}

.product-thumb span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 10px;
  font-weight: 850;
}

.product-thumb-1 { background: linear-gradient(135deg, #d7f5e6, #cfe4ff); }
.product-thumb-2 { background: linear-gradient(135deg, #ffe0d5, #fff1aa); }
.product-thumb-3 { background: linear-gradient(135deg, #dfeff1, #bcebcf); }
.product-thumb-4 { background: linear-gradient(135deg, #ffd8ca, #d9f3ff); }
.product-thumb-5 { background: linear-gradient(135deg, #e6f8d7, #ffe4d0); }
.product-thumb-6 { background: linear-gradient(135deg, #d8ecff, #fff0b8); }

.text-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 32px;
  align-items: center;
}

.feature-panel {
  display: block;
  padding: 28px;
  text-decoration: none;
  background: linear-gradient(135deg, #0f8a6a, #2f8fc5);
  color: #fffdf7;
}

.feature-panel span,
.feature-panel em {
  color: rgba(255, 253, 247, 0.78);
}

.feature-panel strong {
  display: block;
  margin: 18px 0;
  font-size: 2rem;
}

.intent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intent-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--soft);
  font-weight: 750;
}

.guide {
  padding: 30px;
  background: #f4fbef;
}

.guide ol {
  padding-left: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-header nav {
    justify-content: start;
  }

  .header-cta {
    width: fit-content;
  }

  .page-hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
    background-position: 62% center;
  }

  .hero-copy {
    padding: 58px 0 152px;
  }

  .hero-search-strip {
    right: auto;
    left: 18px;
    justify-content: start;
  }

  .page-hero {
    padding-top: 42px;
  }

  .category-grid,
  .product-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero-copy {
    width: min(100% - 28px, 1180px);
    padding-bottom: 172px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 3.1rem;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .category-grid,
  .product-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .source-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .source-category-card {
    min-height: 138px;
    border-radius: 18px;
  }

  .source-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .source-category-icon svg {
    width: 30px;
    height: 30px;
  }

  .hero-search-strip {
    width: calc(100% - 28px);
    left: 14px;
    bottom: 22px;
  }

  .hero-search-strip a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .section-heading {
    display: block;
  }
}
