/*
  Дизайн концепциясы: "ілулі сыйлық биркасы" (hanging gift tag).
  Киім де, парфюм де, ойыншық та — түбінде біреуге сыйлау үшін таңдалатын зат.
  Сол ортақ жіп — қағаз бирка мен жіп/тесік мотиві — бүкіл сайтты біріктіреді.
*/

:root {
  --ink: #1c0f1a;
  --ink-soft: #2c1826;
  --ink-line: rgba(239, 230, 216, 0.14);

  --paper: #efe6d8;
  --paper-text: #2b241f;

  --gold: #c9a227;
  --gold-soft: #e6c866;

  --rose: #d98c82;
  --amber: #c07a2e;
  --sage: #8ba980;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Golos Text", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  scroll-behavior: smooth;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
h1, h2, h3, p { margin: 0; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: rgba(239, 230, 216, 0.72);
  font-size: 0.94rem;
  transition: color .2s;
}

.nav a:hover { color: var(--gold-soft); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  background: transparent;
  border: 1px solid rgba(239, 230, 216, 0.35);
  color: var(--paper);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.lang-switch:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn--ribbon {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.25);
}

.btn--whatsapp {
  background: transparent;
  border: 1px solid #3fae63;
  color: #7fd99a;
  padding: 8px 16px;
  font-size: 0.86rem;
  border-radius: 999px;
}

.btn--whatsapp:hover { background: rgba(63, 174, 99, 0.12); }

/* Hero — the signature hanging tag */
.hero {
  position: relative;
  text-align: center;
  padding: 90px 20px 76px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.16), transparent 60%),
    var(--ink);
  overflow: hidden;
}

.hero__pin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-soft);
  margin: 0 auto;
  box-shadow: 0 0 10px 2px rgba(230, 200, 102, 0.6);
}

.hero__string {
  width: 1px;
  height: 46px;
  margin: 0 auto;
  background: repeating-linear-gradient(to bottom, rgba(230, 200, 102, 0.7) 0 5px, transparent 5px 10px);
}

.tag {
  position: relative;
  display: inline-block;
  background: var(--paper);
  color: var(--paper-text);
  padding: 34px 44px 30px 56px;
  max-width: 440px;
  transform: rotate(-3deg);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  animation: tagSway 7s ease-in-out infinite;
}

.tag__hole {
  position: absolute;
  left: 27px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 15, 26, 0.08) inset;
}

.tag__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: 0.01em;
}

.tag__sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(43, 36, 31, 0.65);
}

@keyframes tagSway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(-1deg); }
}

.hero__lead {
  margin: 34px auto 30px;
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(239, 230, 216, 0.85);
}

/* Category sections */
.category {
  padding: 64px 0 16px;
}

.category__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(239, 230, 216, 0.55);
  margin-bottom: 6px;
}

.category h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.shelf {
  height: 4px;
  width: 64px;
  border-radius: 4px;
  margin: 16px 0 30px;
  background: var(--accent);
  box-shadow: 0 14px 22px -8px var(--accent);
}

#clothes { --accent: var(--rose); }
#perfume { --accent: var(--amber); }
#toys { --accent: var(--sage); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: var(--paper);
  color: var(--paper-text);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.card__image {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 22px 0 6px 28px;
  background: rgba(0, 0, 0, 0.06);
}

.card--clothes .card__image { background: rgba(217, 140, 130, 0.28); }
.card--perfume .card__image { background: rgba(192, 122, 46, 0.24); }
.card--toys .card__image { background: rgba(139, 169, 128, 0.28); }

.card__body {
  padding: 4px 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__name {
  font-weight: 600;
  font-size: 1rem;
}

.card__price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  margin-top: auto;
}

.card__order {
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 9px 0;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: background .15s;
}

.card__order:hover { background: #3a2233; }

/* Footer */
.footer {
  background: var(--ink-soft);
  margin-top: 60px;
  padding: 46px 0 20px;
  border-top: 1px solid var(--ink-line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
}

.footer__col {
  min-width: 200px;
  flex: 1;
}

.footer__col h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer__col p {
  margin: 6px 0;
  font-size: 0.92rem;
  color: rgba(239, 230, 216, 0.75);
}

.footer__col a:hover { color: var(--gold-soft); }

.footer__bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(239, 230, 216, 0.4);
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-line);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tag { animation: none; }
  .card { transition: none; }
}

/* Responsive */
@media (max-width: 820px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .nav.open {
    max-height: 300px;
  }

  .nav a {
    padding: 12px 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--ink-line);
  }

  .burger { display: block; }

  .header__actions .btn--whatsapp span { display: none; }
  .header__actions .btn--whatsapp::after { content: "💬"; }

  .tag { padding: 28px 32px 24px 46px; }
}
