/* Self-hosted fonts (no connection to Google servers, GDPR) */
@font-face {
  font-family: 'Fredoka';
  src: url('../assets/fonts/fredoka.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000; font-style: normal; font-display: swap;
}

:root {
  --pink: #ff7aa2;
  --pink-dark: #e85a86;
  --blue: #4fb3ff;
  --yellow: #ffd23f;
  --green: #7bd389;
  --cream: #fff8f1;
  --tint: #fdeef3;
  --ink: #2b2230;
  --muted: #6d6272;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 34, 48, .10);
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 162, .45); }
.btn--primary:hover { background: var(--pink-dark); }
.btn--ghost { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--small { padding: 8px 18px; font-size: .95rem; background: var(--ink); color: #fff; }
.btn--small:hover { background: var(--pink); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0;
  color: #fff;
  transition: background .3s, box-shadow .3s, padding .3s, color .3s;
}
.header.is-scrolled, .header.is-open {
  background: rgba(255, 248, 241, .96);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  padding: 8px 0;
}
.header__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 54px; height: auto; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--pink); transition: width .25s;
}
.nav a:hover::after { width: 100%; }

.lang { display: flex; border: 2px solid currentColor; border-radius: 999px; overflow: hidden; }
.lang__btn {
  background: none; border: 0; color: inherit; cursor: pointer;
  padding: 5px 12px; font-weight: 700; font-family: var(--font-body);
}
.lang__btn.is-active { background: var(--pink); color: #fff; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; transition: transform .3s, opacity .3s; }
.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  color: #fff; text-align: center;
}
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 6s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  background:
    radial-gradient(ellipse at center, rgba(43, 34, 48, .35) 0%, rgba(43, 34, 48, .72) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 100px 16px 80px; }
.hero__logo {
  width: 150px; height: auto; margin: 0 auto 8px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35));
  animation: float 4s ease-in-out infinite;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 1;
  letter-spacing: .01em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
.hero__subtitle { font-size: clamp(1.05rem, 2.4vw, 1.4rem); margin: 18px auto 36px; max-width: 600px; opacity: .95; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 28px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.hero__dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .5); transition: background .3s, transform .3s;
}
.hero__dot.is-active { background: var(--yellow); transform: scale(1.35); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  text-align: center; margin: 0 0 12px;
}
.section__title--left { text-align: left; }
.section__lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 48px; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(43, 34, 48, .16); }
.card__img { aspect-ratio: 4 / 5; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 6px; font-size: 1.25rem; }
.card__body p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; flex: 1; }
.card__foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--pink-dark); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: center; }
.about__logo { width: 100%; max-width: 280px; margin-inline: auto; }
.features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.features li { padding-left: 34px; position: relative; font-weight: 600; }
.features li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 63, .3);
}
.features li:nth-child(2)::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(79, 179, 255, .3); }
.features li:nth-child(3)::before { background: var(--green); box-shadow: 0 0 0 4px rgba(123, 211, 137, .3); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact__line { font-weight: 700; margin: 8px 0; }
.contact__line a { color: var(--pink-dark); text-decoration: none; }
.form { position: relative; background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input, .form textarea {
  font: inherit; padding: 12px 14px; border: 2px solid #eee2e6; border-radius: 12px;
  background: var(--cream); transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--pink); }
.form .btn { justify-self: start; }
.form__status { margin: 0; color: #2f9e57; font-weight: 700; min-height: 1.6em; }
.form__status.is-error { color: #d23c3c; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--small.is-added { background: #2f9e57; }

.order { background: var(--tint); border-radius: 14px; padding: 16px 18px; }
.order__title { display: block; font-weight: 700; margin-bottom: 8px; }
.order__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order__item {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px;
  background: #fff; border-radius: 10px; padding: 8px 10px;
}
.order__name { font-weight: 700; }
.order__qty { display: inline-flex; align-items: center; gap: 8px; }
.order__qty span { min-width: 1.4em; text-align: center; font-weight: 700; }
.order__qty button, .order__remove {
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; line-height: 1; background: var(--cream); color: var(--ink);
  transition: background .2s, color .2s;
}
.order__qty button:hover { background: var(--pink); color: #fff; }
.order__remove { background: none; color: var(--muted); font-size: 1.2rem; }
.order__remove:hover { background: #fde2e2; color: #d23c3c; }
.order__price { font-weight: 700; color: var(--pink-dark); min-width: 5.5em; text-align: right; }
.order__total { margin: 10px 0 0; text-align: right; }
.order__total small { color: var(--muted); }
@media (max-width: 480px) {
  .order__item { grid-template-columns: 1fr auto auto; }
  .order__name { grid-column: 1 / -1; }
}
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #f1e8ee; padding: 28px 0; font-size: .95rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.shop__note { text-align: center; color: var(--muted); font-size: .9rem; margin: 36px 0 0; }
.form__hint { margin: 0; font-size: .88rem; color: var(--muted); }
.form__hint a { color: var(--pink-dark); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { padding: 130px 0 80px; }
.legal__inner { width: min(820px, 100% - 32px); margin-inline: auto; }
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 24px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 36px 0 8px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: #463d4a; }
.legal a { color: var(--pink-dark); }
.legal address { font-style: normal; }
.legal__back { display: inline-block; margin-bottom: 20px; font-weight: 700; text-decoration: none; color: var(--pink-dark); }
.legal__stand { margin-top: 40px; font-size: .9rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .burger { display: block; color: inherit; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--cream); color: var(--ink);
    max-height: 0; overflow: hidden; transition: max-height .35s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
  }
  .nav a { padding: 14px 16px; border-top: 1px solid #f0e4e9; }
  .nav a::after { display: none; }
  .header.is-open .nav { max-height: 260px; }
  .header__inner { gap: 10px; }
  .brand { min-width: 0; gap: 8px; }
  .brand__logo { width: 44px; flex-shrink: 0; }
  .brand__name { font-size: clamp(1rem, 4.6vw, 1.4rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Language pill: bigger tap targets, pushed right next to the burger */
  .lang { margin-left: auto; flex-shrink: 0; }
  .lang__btn { padding: 8px 12px; font-size: 1rem; min-height: 40px; }
  .burger { flex-shrink: 0; margin-right: -6px; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide { transition: opacity .6s ease; transform: none; }
  .hero__slide.is-active { transform: none; }
  .hero__logo { animation: none; }
}
