:root {
  --ink: #25313d;
  --muted: #63727f;
  --line: #d8e3e6;
  --paper: #ffffff;
  --soft: #f6fbfb;
  --cream: #fff7ea;
  --teal: #167c78;
  --teal-dark: #0f5f5d;
  --coral: #ef6f61;
  --yellow: #f6c752;
  --blue: #4078a8;
  --green: #79a95b;
  --shadow: 0 18px 50px rgba(37, 49, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 78px;
  padding: 0 4rem;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(216, 227, 230, 0.9);
  box-shadow: 0 12px 28px rgba(37, 49, 61, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand__mark {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--paper);
  background: var(--teal);
  border-radius: 8px;
}

.brand__mark svg {
  width: 1.35rem;
  height: 1.35rem;
}

.brand__mark path:first-child {
  fill: rgba(255, 255, 255, 0.18);
}

.brand__name,
.brand__tagline {
  display: block;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand__tagline {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.main-nav a {
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--teal-dark);
  border-bottom-color: var(--coral);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.cart-button,
.menu-button,
.icon-button {
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-button {
  grid-template-columns: auto auto;
  gap: 0.45rem;
  min-width: 58px;
  min-height: 44px;
  padding: 0 0.7rem;
}

.cart-button span {
  display: grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  color: var(--paper);
  background: var(--coral);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  padding: 9rem 4rem 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero-toys.png");
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 32%, rgba(255, 255, 255, 0.32) 58%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.74) 100%);
}

.hero__content {
  align-self: center;
  width: 100%;
  min-width: 0;
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: 4.1rem;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 2.35rem;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero__lead {
  max-width: 590px;
  margin-bottom: 2rem;
  color: #43505c;
  font-size: 1.22rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.cart-button:hover,
.cart-button:focus-visible,
.menu-button:hover,
.menu-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button--primary {
  color: var(--paper);
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(22, 124, 120, 0.22);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--teal-dark);
}

.button--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(99, 114, 127, 0.22);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 620px;
  margin: 0;
}

.hero__facts div {
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(216, 227, 230, 0.86);
  border-radius: 8px;
}

.hero__facts dt {
  font-size: 1.25rem;
  font-weight: 850;
}

.hero__facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 5.5rem 0;
}

.section__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.intro-band {
  padding: 2.4rem 0;
  background: var(--teal-dark);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.intro-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem 0.9rem;
  align-items: start;
  color: var(--paper);
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.intro-grid h2 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.intro-grid p {
  grid-column: 2;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
}

.mini-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--teal-dark);
  background: var(--yellow);
  border-radius: 8px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading--row {
  display: flex;
  min-width: 0;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.category-card {
  display: grid;
  min-height: 340px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(37, 49, 61, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  outline: none;
}

.category-card__visual {
  min-height: 220px;
  background-image: url("assets/hero-toys.png");
  background-size: 1220px auto;
}

.category-card--soft .category-card__visual {
  background-position: 80% 56%;
}

.category-card--wood .category-card__visual {
  background-position: 94% 72%;
}

.category-card--learn .category-card__visual {
  background-position: 64% 22%;
}

.category-card--gift .category-card__visual {
  background-position: 56% 66%;
}

.category-card__content {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem;
}

.category-card__content span {
  font-size: 1.08rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.category-card__content small {
  color: var(--muted);
  font-size: 0.92rem;
}

.section--tint {
  background: var(--soft);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.filter-button {
  min-width: 58px;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.filter-button.is-active {
  color: var(--paper);
  background: var(--coral);
  border-color: var(--coral);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card.is-hidden {
  display: none;
}

.product-card__media {
  aspect-ratio: 4 / 3;
  background-image: url("assets/hero-toys.png");
  background-repeat: no-repeat;
  background-size: 1180px auto;
}

.product-card__media.has-custom-image {
  background-position: center;
  background-size: cover;
}

.product-card__media--placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(22, 124, 120, 0.14), rgba(239, 111, 97, 0.14)),
    #f8fbfb;
}

.product-card__media--placeholder::after {
  content: "Фото скоро";
  color: var(--muted);
  font-weight: 850;
}

.product-card__media--bear {
  background-position: 69% 74%;
}

.product-card__media--rings {
  background-position: 55% 74%;
}

.product-card__media--sorter {
  background-position: 93% 78%;
}

.product-card__media--blocks {
  background-position: 79% 78%;
}

.product-card__media--game {
  background-position: 73% 25%;
}

.product-card__media--train {
  background-position: 60% 84%;
}

.product-card__body {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  padding: 1rem;
}

.product-card__age {
  width: fit-content;
  margin-bottom: 0.1rem;
  padding: 0.22rem 0.5rem;
  color: var(--teal-dark);
  background: rgba(22, 124, 120, 0.1);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 850;
}

.product-card__body p:not(.product-card__age) {
  min-height: 3rem;
  margin-bottom: 0.2rem;
  color: var(--muted);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.4rem;
}

.product-card__footer strong {
  font-size: 1.15rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--paper);
  background: var(--blue);
  border-color: var(--blue);
}

.icon-button.is-added {
  background: var(--green);
  border-color: var(--green);
}

.service {
  background:
    linear-gradient(90deg, rgba(22, 124, 120, 0.08), rgba(239, 111, 97, 0.06)),
    var(--paper);
}

.service__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.4rem 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(99, 114, 127, 0.2);
}

.service-list article:first-child {
  border-top: 1px solid rgba(99, 114, 127, 0.2);
}

.service-list span {
  grid-row: span 2;
  color: var(--coral);
  font-size: 1.55rem;
  font-weight: 850;
}

.service-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.contacts {
  background: var(--teal-dark);
  color: var(--paper);
}

.contacts .eyebrow {
  color: var(--yellow);
}

.contacts__layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 430px);
  gap: 3rem;
  align-items: start;
}

.contacts__details {
  max-width: 620px;
}

address {
  margin: 1.2rem 0;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.contact-links {
  display: grid;
  gap: 0.75rem;
}

.contact-links a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper);
  font-weight: 750;
}

.gift-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.gift-form h3 {
  margin-bottom: 0.2rem;
  font-size: 1.4rem;
}

.gift-form label {
  display: grid;
  gap: 0.35rem;
  color: #43505c;
  font-size: 0.9rem;
  font-weight: 750;
}

.gift-form input,
.gift-form select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gift-form input:focus,
.gift-form select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 124, 120, 0.18);
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 1.4rem 0;
  color: rgba(255, 255, 255, 0.82);
  background: #17343d;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__inner p {
  margin-bottom: 0;
}

.footer__inner a {
  font-weight: 800;
}

@media (max-width: 1080px) {
  .site-header {
    padding: 0 1.5rem;
  }

  .hero {
    min-height: 680px;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card__visual,
  .product-card__media {
    background-size: 1040px auto;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.8rem;
    border-radius: 6px;
    border-bottom: 0;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--soft);
  }

  .phone-link {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .hero {
    min-height: 700px;
    padding-top: 7.2rem;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0.38) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.18));
  }

  .hero__image {
    background-position: 61% center;
  }

  .intro-grid,
  .service__layout,
  .contacts__layout {
    grid-template-columns: 1fr;
  }

  .section-heading--row {
    display: grid;
    align-items: start;
  }

  .filters {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .brand {
    gap: 0.55rem;
    min-width: 0;
    max-width: calc(100% - 102px);
  }

  .brand__name {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand__tagline,
  .cart-button svg {
    display: none;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .cart-button {
    min-width: 44px;
    padding: 0;
  }

  .menu-button {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: 650px;
    padding: 6.4rem 1rem 2rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero__lead {
    font-size: 1.04rem;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .button {
    min-width: 0;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .section__inner {
    width: min(1180px, calc(100% - 32px));
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 300px;
  }

  .category-card__visual,
  .product-card__media {
    background-size: 900px auto;
  }

  .service-list article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .contacts__layout {
    gap: 2rem;
  }

  .footer__inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
