:root {
  --gold: #ffb347;
  --olive: #8da281;
  --teal: #557c86;
  --peach: #ffc8a2;
  --lavender: #bda9c4;
  --rust: #e06a4e;
  --cream: #f5ede3;
  --ink: #2f2f2f;

  --bg: #faf8f5;
  --paper: #fffdf9;
  --muted: #6a6560;
  --mustard: var(--gold);
  --mustard-hover: #f08a4c;
  --header-h: 84px;
  --radius-hero: 36px;
  --font-display: "Montserrat", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-logo: "Fredoka", "Nunito", sans-serif;

  --logo-k: var(--gold);
  --logo-o: var(--olive);
  --logo-r: var(--teal);
  --logo-o2: var(--peach);
  --logo-n: var(--lavender);
  --logo-i: var(--rust);
  --logo-k2: var(--olive);
}

@font-face {
  font-family: "Font Awesome 6 Pro";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/fa-solid-900-pro.ttf") format("truetype");
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fa-solid-900-brands.ttf") format("truetype");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-user-select: none;
  user-select: none;
}

::selection {
  background: var(--peach);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

svg {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 48px;
}

.header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 0.12em;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  user-select: none;
}

.logo span {
  display: inline-block;
}

.logo__k { color: var(--logo-k); }
.logo__o { color: var(--logo-o); }
.logo__r { color: var(--logo-r); }
.logo__o2 { color: var(--logo-o2); }
.logo__n { color: var(--logo-n); }
.logo__i { color: var(--logo-i); }

.logo__k2 {
  color: var(--logo-k2);
  position: relative;
  padding-top: 0.28em;
}

.logo__crown {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1.15em;
  height: 0.7em;
  color: var(--gold);
  transform: translate(-38%, -78%) rotate(8deg);
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--mustard);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.7);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  background: var(--cream);
  border-radius: var(--radius-hero);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 24px 72px 64px;
  max-width: 480px;
}

.hero__copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__copy p {
  margin: 18px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.hero__cta .btn {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover,
.btn:focus-visible {
  background: var(--mustard-hover);
  transform: translateY(-1px);
}

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cat__media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #f3ece3;
  aspect-ratio: 16 / 10;
}

.cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cat:hover .cat__media img,
.cat:focus-visible .cat__media img {
  transform: scale(1.04);
}

.cat__name {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.cat__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.cat__more svg {
  width: 16px;
  height: 16px;
}

.cat:hover .cat__more,
.cat:focus-visible .cat__more {
  color: var(--teal);
}

.fa {
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
}

.fa-crown::before { content: "\f521"; }
.fa-leaf::before { content: "\f06c"; }
.fa-cloud::before { content: "\f0c2"; }
.fa-heart::before { content: "\f004"; }

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: stretch;
  gap: 16px 12px;
  margin-top: 22px;
  padding: 22px 16px;
  background: #f6eee6;
  border-radius: 22px;
}

.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.benefit .fa {
  flex-shrink: 0;
  width: 1.2em;
  font-size: 28px;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.7px currentColor;
}

.benefit .fa-crown { color: var(--gold); }
.benefit .fa-leaf { color: var(--teal); }
.benefit .fa-cloud { color: var(--teal); }
.benefit .fa-heart { color: var(--rust); }

.benefit p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.popular {
  margin-top: 40px;
}

.popular__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.popular__title .fa-heart {
  color: var(--peach);
  font-size: 18px;
  -webkit-text-fill-color: var(--peach);
  -webkit-text-stroke: 0;
}

.popular__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.product__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 18px;
  background: #e7dfd4;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #c4b8ac;
}

.product__fav .fa {
  font-size: 16px;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.4px currentColor;
}

.product__fav.is-on {
  color: var(--rust);
}

.product__fav.is-on .fa {
  -webkit-text-fill-color: var(--rust);
  -webkit-text-stroke: 0;
}

.product__name {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.product__price {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.product__size {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .page {
    width: min(100% - 24px, 1240px);
  }

  .header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .logo {
    font-size: 22px;
  }

  .header__tools {
    flex-shrink: 0;
    gap: 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 12px;
    right: 12px;
    z-index: 20;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: var(--paper);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(40, 30, 20, 0.12);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav a:hover {
    background: var(--bg);
  }

  .menu-btn {
    display: flex;
  }

  .hero {
    min-height: 420px;
  }

  .hero__copy {
    padding: 48px 24px 48px 32px;
  }

  .benefits {
    grid-template-columns: 1fr 1fr;
    padding: 24px 16px;
    gap: 28px 12px;
  }

  .benefit {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    max-width: none;
    margin: 0;
    gap: 10px;
  }

  .benefit p {
    text-align: center;
  }

  .popular__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .logo {
    font-size: 20px;
  }

  .icon-btn,
  .menu-btn {
    width: 36px;
    height: 36px;
  }

  .header__tools {
    gap: 0;
  }

  .hero {
    min-height: 560px;
    align-items: stretch;
  }

  .hero__bg {
    object-position: 78% center;
  }

  .hero__copy {
    justify-content: space-between;
    width: 100%;
    max-width: none;
    padding: 28px 22px 26px;
  }

  .hero__copy h1 {
    font-size: 30px;
  }

  .hero__copy p {
    display: none;
  }

  .hero__cta .btn {
    margin-top: 0;
  }

  .cats {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .cat__name {
    font-size: 20px;
  }

  .benefits {
    padding: 22px 14px;
    gap: 24px 10px;
  }

  .benefit .fa {
    font-size: 32px;
  }

  .benefit p {
    font-size: 14px;
  }

  .popular {
    margin-top: 32px;
  }

  .popular__title {
    font-size: 24px;
  }

  .popular__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
