/* Морской гриб: cobalt blue, studio-made finds, friendly mushroom mascot. */
:root {
  --ink: #15276f;
  --muted: #62719d;
  --blue: #183fe7;
  --line: #dce4fa;
  --surface: #f1f4ff;
  --radius: 18px;
  --acid: #e7edff;
  --pink: #cad7ff;
  color-scheme: light;
}

body {
  color: var(--ink);
  background-color: #f4f6ff;
  background-image:
    radial-gradient(circle at 85% 8%, #d5e0ff 0, transparent 23rem),
    radial-gradient(circle at 5% 42%, #e7ecff 0, transparent 26rem),
    radial-gradient(#91a9ef35 .8px, transparent .8px);
  background-size: auto, auto, 18px 18px;
}

a:hover { color: #082ed3; }

header {
  position: relative;
  padding: 10px clamp(18px, 3.2vw, 52px);
  background: #fff;
  border-bottom: 1px solid #e5eaff;
  box-shadow: 0 5px 22px #172f8910;
}

.brand { color: #102dbd; }
.brand-mark { filter: drop-shadow(0 3px 4px #193fe51c); }
header > nav a { color: #24336e; }
header > nav a:hover { color: var(--blue); }

.header-search {
  border-color: #e1e7fb;
  border-radius: 999px;
  background: #f3f5ff;
}

.header-search input { font-size: 12px; }
.header-search button { border-radius: 50%; }
.header-actions .count { background: #edf1ff; }

main {
  max-width: 1480px;
  padding: 24px clamp(18px, 3.2vw, 52px) 78px;
}

.catalog-heading {
  min-height: clamp(270px, 29vw, 390px);
  margin: 0 0 18px;
  padding: clamp(26px, 5vw, 64px) clamp(26px, 5vw, 64px);
  gap: 24px;
  border: 1px solid #d9e3ff;
  border-radius: 30px 76px 30px 30px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 110%, #b3c7ff 0, transparent 38%),
    linear-gradient(115deg, #fff 2%, #f8faff 48%, #e8eeff 100%);
  box-shadow: 0 14px 34px #1239b90d;
  isolation: isolate;
}
.catalog-heading::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 2%;
  top: 34%;
  bottom: auto;
  width: min(44vw, 500px);
  aspect-ratio: 1;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5 0 39%, #fff3 39.5% 55%, transparent 55.5%);
  box-shadow: 0 0 0 26px #fff2, 0 0 0 54px #fff1;
  pointer-events: none;
}
.catalog-heading::after {
  content: "✦";
  position: absolute;
  z-index: 2;
  top: 18%;
  right: 40%;
  bottom: auto;
  width: max-content;
  height: auto;
  background: none !important;
  opacity: 1;
  color: #5c78f5;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  text-shadow: 0 3px 18px #244ce766;
  animation: sea-sparkle 3.2s ease-in-out infinite;
  pointer-events: none;
}

.catalog-heading > div { position: relative; z-index: 1; max-width: 54%; }
.catalog-heading .eyebrow { color: #3659ce; letter-spacing: 1.5px; }
.catalog-heading h1 {
  margin: 8px 0 14px;
  color: #10246f;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .91;
  letter-spacing: -.065em;
  font-weight: 900;
}
.catalog-heading h1 span { color: #1a43ed; }
.catalog-heading .lead { max-width: 390px; color: #536493; font-size: 15px; }
.catalog-cta {
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #1744ec;
  box-shadow: 0 7px 16px #1744ec2b;
}
.catalog-mascot {
  position: relative;
  z-index: 1;
  width: min(44vw, 470px);
  height: clamp(225px, 27vw, 340px);
  object-fit: contain;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  mix-blend-mode: normal;
  filter: none !important;
}
.mascot-stage {
  position: absolute;
  z-index: 1;
  display: block;
  flex: none;
  min-width: 0;
  width: min(44vw, 470px);
  height: clamp(225px, 27vw, 340px);
  top: 50%;
  right: 4%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  appearance: none;
  transform: translateY(-50%);
}
.mascot-stage:hover { background: transparent !important; box-shadow: none !important; transform: translateY(-50%); }
.mascot-stage:focus-visible { outline: 3px solid #4268f5; outline-offset: 5px; border-radius: 18px; }
.mascot-art { position: absolute; inset: 0; display: block; transform-origin: 50% 72%; animation: mascot-bob 5.2s ease-in-out infinite; }
.mascot-stage .catalog-mascot { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 70ms ease-in-out; }
.mascot-stage .mascot-closed { opacity: 0; }
.mascot-stage.is-blinking .mascot-open { opacity: 0; }
.mascot-stage.is-blinking .mascot-closed { opacity: 1; }
.mascot-stage:hover .mascot-art { animation-duration: 2.6s; }

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}
@keyframes sea-sparkle {
  0%, 100% { opacity: .58; transform: scale(.86) rotate(-12deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(10deg); }
}

.category-shortcuts { gap: 12px; margin: 0 0 28px; }
.category-shortcuts a {
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid #e1e7fa;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 14px #1c348910;
  color: #1a2e7b;
  font-size: 13px;
}
.category-shortcuts a:hover { border-color: #aebfff; background: #f8faff; }
.shortcut-mushroom { flex: none; }

.delivery-notice {
  border-left: 3px solid #3157ef;
  border-radius: 15px;
  background: #e9efff;
  color: #465889;
}

.section-head { margin: 25px 0 13px; }
.section-head h2 {
  color: #11256e;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 850;
  letter-spacing: -.045em;
}
.result-count { background: #dfe7ff; color: #2344c6; }
.artist-tabs { gap: 8px; }
.artist-tabs a {
  padding: 9px 14px;
  border: 1px solid #e6eafa;
  border-radius: 999px;
  background: #fff;
  color: #55658e;
}
.artist-tabs a[aria-current] {
  border-color: #1744ec;
  background: #1744ec;
  color: #fff;
  box-shadow: 0 5px 12px #1744ec25;
}
.catalog-filters {
  padding: 18px;
  border-color: #e1e7f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px #142f8a0a;
}
.search-row input, .catalog-filters select {
  border-color: #e1e6f3;
  border-radius: 11px;
  background: #f8f9ff;
}
.search-row button { border-radius: 11px; }
.filter-grid label { color: #64729a; }

.product-grid { gap: 20px 16px; }
.product-card, .author-card {
  border: 1px solid #e3e8f5;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 15px #142d8310;
}
.product-card:hover, .author-card:hover {
  transform: translateY(-3px);
  border-color: #c3d0ff;
  box-shadow: 0 12px 26px #183db51b;
}
.product-image {
  aspect-ratio: 1 / .96;
  border-radius: 14px;
  background: linear-gradient(145deg, #e3eaff, #f7f8ff 70%, #e8edff);
}
.product-image img { transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.image-badge {
  border: 1px solid #e2e8fb;
  border-radius: 999px;
  background: #ffffffed;
  color: #41558e;
}
.product-copy { padding: 12px 14px 14px; }
.card-meta { color: #7884a4; }
.product-name { color: #1a286b; }
.price { color: #10256e; }
.product-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf0ff;
  color: #1941df;
}
.favorite-toggle { color: #1b43d7; }

.product-info, .panel, .summary, .form-panel, .cart-author-group,
.workshop-top, .seller-product-panel {
  border-color: #e0e7f7;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 6px 20px #1836850b;
}
.product-info { padding: clamp(20px, 3vw, 34px); }
.detail-price { color: #1539cb; }
.variant { border-color: #e7ebf5; }
.notice, .message { border-radius: 14px; }
.panel, .summary, .form-panel { padding: clamp(18px, 2.6vw, 28px); }
input, select, textarea { border-color: #d9e1f3; border-radius: 10px; }
button, .button { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
button:hover, .button:hover { box-shadow: 0 7px 17px #173fe52e; }

footer {
  padding: 34px clamp(18px, 3.2vw, 52px);
  background: #102b9f;
  border-top: 0;
}
.footer-brand { color: #fff; }
.footer-brand .brand-mark { filter: brightness(0) invert(1); }
.footer-note { color: #cbd7ff; }
.footer-nav a { color: #e5eaff; }
.footer-nav a:hover { color: #fff; }

@media (max-width: 1000px) {
  .catalog-heading { min-height: 280px; padding: 30px; }
  .catalog-heading h1 { font-size: clamp(46px, 7vw, 68px); }
  .mascot-stage { right: 3%; width: min(42vw, 350px); height: 250px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  header { padding: 10px 4%; }
  main { padding: 17px 4% 52px; }
  .catalog-heading {
    min-height: 228px;
    padding: 22px 18px;
    gap: 0;
    border-radius: 22px 44px 22px 22px;
  }
  .catalog-heading > div { max-width: 64%; }
  .catalog-heading .eyebrow { font-size: 9px; letter-spacing: .8px; }
  .catalog-heading h1 { font-size: clamp(40px, 11vw, 58px); }
  .catalog-heading .lead { max-width: 235px; font-size: 12px; }
  .catalog-cta { margin-top: 12px; padding: 9px 13px; font-size: 11px; }
  .catalog-mascot {
    width: 100%;
    height: 100%;
  }
  .mascot-stage { right: 2%; width: 38%; height: auto; aspect-ratio: 7328 / 6229; }
  .catalog-heading::before { right: -12%; top: 40%; bottom: auto; width: 65%; }
  .catalog-heading::after { top: 12%; right: 35%; font-size: 27px; }
  .category-shortcuts { gap: 8px; margin-bottom: 20px; }
  .category-shortcuts a { min-height: 55px; padding: 8px 10px; font-size: 11px; }
  .section-head h2 { font-size: 23px; }
  .catalog-filters { padding: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
  .product-card, .author-card { border-radius: 14px; }
  .product-image { border-radius: 12px; }
  .product-copy { padding: 9px 10px 11px; }
  .product-name { font-size: 12px; }
  .price { font-size: 15px; }
  .product-arrow { width: 29px; height: 29px; }
  .delivery-explainer { border-radius: 14px; }
  footer { padding: 20px 4%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
