/*
Theme Name: WowKids
Description: Витрина магазина творчества WowKids на основе концепции «Стол творчества».
Version: 0.1.0
Requires PHP: 8.3
Text Domain: wowkids
*/

@font-face {
  font-family: Rubik;
  src: url("assets/Rubik.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --ink: #253447;
  --teal: #007877;
  --bg: #fffdfa;
  --purple: #664191;
  color: var(--ink);
  background: var(--bg);
  font-family: Rubik, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #087a96;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  z-index: 20;
  left: 12px;
  top: -100px;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 5px;
}
#app:focus {
  outline: none;
}
.wk-head {
  position: relative;
  z-index: 10;
}
.wk-bar,
.home-wrap,
.wk-footer {
  width: min(1472px, 94%);
  margin: auto;
}
.wk-bar {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 92px);
  height: 84px;
}
.wk-brand img {
  width: 158px;
  height: auto;
}
.wk-nav,
.wk-footer nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.wk-nav a:hover,
.wk-footer a:hover {
  color: var(--teal);
}
.wk-nav details {
  position: relative;
}
.wk-nav summary {
  list-style: none;
  display: flex;
  gap: 7px;
  align-items: center;
}
.wk-nav summary::-webkit-details-marker {
  display: none;
}
.wk-nav summary span {
  font-size: 16px;
  margin-top: -4px;
}
#nav-links {
  position: absolute;
  top: calc(100% + 15px);
  left: -20px;
  min-width: 185px;
  padding: 8px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 40px #24304724;
}
#nav-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
}
#nav-links a:hover {
  background: #eaf7f1;
}
#nav-links .mobile-extra {
  display: none;
}
.wk-cart {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f0efe9;
  border-radius: 28px;
  padding: 10px 15px;
  font-weight: 520;
  font-size: 14px;
}
.wk-cart [data-cart-count] {
  font-size: 12px;
  background: var(--ink);
  color: white;
  border-radius: 100%;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
}
.bag-icon {
  width: 17px;
  height: 16px;
  border: 1.7px solid;
  border-radius: 3px;
  position: relative;
  display: block;
  margin-top: 3px;
}
.bag-icon:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 6px;
  border: 1.7px solid;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  left: 3px;
  top: -7px;
}
.table-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 32px;
  background: #dfc9ee;
  min-height: clamp(446px, 38vw, 565px);
  display: flex;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 48px 0 56px clamp(28px, 4.3vw, 75px);
  width: 45%;
}
.hero-copy h1,
.inner-wrap h1,
.about-wk h1 {
  font-weight: 790;
  font-size: clamp(52px, 5.45vw, 86px);
  line-height: 0.99;
  letter-spacing: -0.065em;
  color: #2c233a;
}

.hero-copy em {
  font-weight: 740;
  color: var(--purple);
  font-style: normal;
}

.hero-copy p,
.about-wk p {
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.52;
  margin: 22px 0 25px;
}
.wk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 999px;
  background: #253746;
  color: white;
  padding: 15px 23px;
  font-size: 15px;
  font-weight: 590;
  transition:
    background 0.16s,
    transform 0.16s;
}
.wk-button b {
  font-size: 19px;
  line-height: 1;
}
.wk-button:hover {
  background: #075d65;
  transform: translateY(-2px);
}
.table-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
}
.table-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(90deg, transparent, #000 13%);
}
.hot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 5px;
  height: 29px;
  border-radius: 999px;
  background: #fffefaee;
  box-shadow: 0 2px 9px #4536581c;
  color: #323040;
  font-size: 11px;
  font-weight: 600;
  transition: transform 0.18s;
}
.hot i {
  font-style: normal;
  border: 1px solid #a79ba7;
  border-radius: 50%;
  font-size: 13px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.hot:hover {
  transform: translateY(-3px);
}
.hot-paper {
  left: 29%;
  top: 36%;
}
.hot-molds {
  right: 9%;
  top: 16%;
}
.hot-squishy {
  right: 8%;
  top: 63%;
}
.hot-cream {
  left: 31%;
  bottom: 12%;
}

.wk-section {
  margin: clamp(44px, 4.4vw, 72px) 0 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}

.section-title h2,
.inner-wrap h1 {
  font-size: clamp(32px, 3.1vw, 49px);
  line-height: 1.08;
  font-weight: 730;
  letter-spacing: -0.055em;
}
.activity-grid,
.picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 22px);
}
.activity-card {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.23;
  overflow: hidden;
  background: var(--panel);
  border-radius: 22px;
}
.activity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.activity-card:hover img {
  transform: scale(1.035);
}
.activity-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  padding: 26px 16px 15px;
  background: linear-gradient(transparent, var(--panel) 70%);
  color: #243541;
}
.activity-caption strong {
  display: block;
  font-size: clamp(21px, 2vw, 32px);
  letter-spacing: -0.055em;
  font-weight: 700;
}
.activity-caption small {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-bottom: 1px;
}
.activity-caption > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffc;
  font-size: 17px;
}

.large .activity-card {
  aspect-ratio: 0.8;
}
.large .activity-caption {
  padding-top: 43px;
}

.inner-wrap {
  padding-top: 34px;
}
.inner-wrap h1 {
  margin-bottom: 28px;
}
.text-link {
  font-size: 14px;
  font-weight: 570;
  color: var(--teal);
}
.pick-img {
  aspect-ratio: 1.25;
  background: #f0efe8;
  border-radius: 20px;
  overflow: hidden;
}
.pick-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.pick:hover img {
  transform: scale(1.03);
}
.pick small,
.pick strong {
  display: block;
}
.pick small {
  margin: 15px 0 7px;
  color: var(--teal);
  font-size: 12px;
}
.pick h3 {
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-size: clamp(17px, 1.5vw, 23px);
}
.pick strong {
  margin-top: 12px;
}
.wk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid #dddfda;
  margin-top: 64px;
  padding: 32px 0;
}
.wk-footer .wk-brand img {
  width: 116px;
}
.wk-footer nav {
  font-size: 13px;
}
.about-wk {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 35px;
  background: #e7f3ee;
  border-radius: 28px;
  overflow: hidden;
  padding-left: 5%;
}
.about-wk img {
  width: 100%;
}
.about-wk h1 {
  font-size: clamp(38px, 5vw, 68px);
}
@media (max-width: 800px) {
  .wk-bar {
    gap: 24px;
    height: 70px;
  }
  .wk-nav {
    gap: 16px;
    font-size: 14px;
  }
  .wk-brand img {
    width: 122px;
  }
  .hero-copy h1 {
    font-size: clamp(44px, 7vw, 57px);
  }
  .table-hero {
    min-height: 370px;
  }
  .hero-copy {
    padding: 30px 0 36px 24px;
  }
  .wide-only {
    display: none;
  }
  .activity-grid,
  .picks {
    gap: 12px;
  }
  .activity-caption {
    padding: 22px 11px 11px;
  }
  .wk-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .wk-bar,
  .home-wrap,
  .wk-footer {
    width: calc(100% - 24px);
  }
  .wk-bar {
    height: 64px;
    gap: 20px;
  }
  .wk-brand img {
    width: 106px;
  }
  .wk-nav > a {
    display: none;
  }
  #nav-links .mobile-extra {
    display: block;
  }
  .wk-cart {
    gap: 8px;
    padding: 8px 10px;
  }
  .cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 23px;
    min-height: 0;
  }
  .hero-copy {
    width: 100%;
    padding: 28px 22px 0;
  }
  .hero-copy h1 {
    font-size: clamp(39px, 10vw, 60px);
    max-width: 420px;
  }
  .hero-copy p {
    font-size: 14px;
    margin: 12px 0 16px;
    max-width: 300px;
  }
  .wk-button {
    padding: 12px 18px;
    font-size: 14px;
  }
  .table-photo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    margin-top: 3px;
  }
  .table-photo img {
    mask-image: linear-gradient(180deg, transparent, #000 12%);
  }
  .hot {
    font-size: 10px;
    height: 25px;
  }
  .hot-cream {
    bottom: 8%;
    left: 15%;
  }

  .wk-section {
    margin-top: 34px;
  }
  .section-title {
    margin-bottom: 15px;
  }
  .activity-grid,
  .picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .activity-card {
    aspect-ratio: 1;
    border-radius: 16px;
  }
  .activity-caption strong {
    font-size: 21px;
  }
  .activity-caption small {
    font-size: 11px;
  }
  .activity-caption > span {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .large .activity-card {
    aspect-ratio: 0.8;
  }
  .pick-img {
    border-radius: 15px;
  }
  .wk-footer {
    margin-top: 38px;
    padding: 22px 0;
    gap: 16px;
  }
  .wk-footer nav {
    gap: 12px;
  }
  .about-wk {
    display: flex;
    flex-direction: column;
    padding: 26px 20px;
    gap: 22px;
  }
  .about-wk img {
    border-radius: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* The hand-lettered accents from concept A. */
@font-face {
  font-family: "Shantell Sans";
  src: url("assets/ShantellSans.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
.hero-copy h1 { line-height: 1.03; }
.hero-bridge {
  display: block;
  font-weight: 560;
  font-size: .77em;
  letter-spacing: -.055em;
  margin: .09em 0 .04em;
}

.activity-caption strong, .section-title h2, .inner-wrap h1 {
  font-family: "Shantell Sans", Rubik, sans-serif;
  font-weight: 730;
  font-variation-settings: "BNCE" 12, "INFM" 26;
  letter-spacing: -.055em;
}
.activity-caption strong {
  width: fit-content;
  transform: rotate(-2deg);
  transform-origin: left center;
  transition: transform 180ms ease-out;
}
@media (hover:hover) {
  .activity-card:hover .activity-caption strong { transform: translateY(-2px) rotate(-4deg); }
}
@media (prefers-reduced-motion:no-preference) {
  .word-sticker { animation: sticker-settle 450ms cubic-bezier(.2,.75,.3,1) both; }
  @keyframes sticker-settle {
    from { transform: translateY(-.085em) rotate(-7deg) scale(1.025); }
    68% { transform: translateY(.015em) rotate(-3deg); }
    to { transform: rotate(-4deg); }
  }
}
@media(max-width:640px) {
  .hero-copy h1 {font-size:clamp(2.55rem,10.8vw,3.65rem);}
  .hero-copy {padding-top:30px;}
}

.hero-copy .word-sticker {
  display: inline-block;
  font-family: "Shantell Sans", Rubik, sans-serif;
  font-weight: 790;
  font-variation-settings: "BNCE" 20, "INFM" 38;
  font-size: 1.11em;
  line-height: 1.16;
  letter-spacing: -.065em;
  color: #693b91;
  -webkit-text-stroke: .105em #fffdf7;
  paint-order: stroke fill;
  filter: drop-shadow(0 .038em 0 #b9a1cd) drop-shadow(0 .048em .038em #40214b24);
  transform: rotate(-4deg);
  transform-origin: 23% 75%;
}

.pick-img img {
  object-fit: contain;
}

#nav-links {
  max-height: min(75vh, 560px);
  overflow-y: auto;
}

.wk-local-notice {
  width: min(1472px, 94%);
  margin: -4px auto 11px;
  color: #6a6260;
  font-size: .78rem;
  text-align: right;
}

@media (max-width: 640px) {
  .wk-local-notice {
    width: calc(100% - 24px);
    text-align: left;
  }

  .wk-nav summary,
  .wk-cart {
    min-height: 44px;
  }
}
