:root {
  --ink: #213447;
  --muted: #637785;
  --paper: #f7faf9;
  --surface: #fff;
  --line: #dce7e9;
  --blue: #267696;
  --coral: #ef856b;
  --sun: #f6ce6f;
  --sky: #e8f4f8;
  --green: #4e806f;
  --display: "Fredoka", Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 14px/1.7 var(--body); }
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0; }

.announcement {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px;
  min-height: 36px; padding: 7px 20px; color: #25475a; background: var(--sun);
  font-size: 10px; font-weight: 700;
}
.announcement a { border-bottom: 1px solid currentColor; font-weight: 700; }
.announcement a span { margin-left: 4px; font-size: 13px; }
.site-header {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; min-height: 82px; padding: 0 max(28px, calc((100% - 1280px) / 2));
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { display: block; width: 42px; height: 42px; flex: 0 0 auto; }
.brand-name { color: var(--blue); font: 600 21px/1.05 var(--display); }
.brand-subtitle { display: block; margin-top: 5px; color: #738996; font: 700 9px/1.1 var(--body); }
.main-nav { display: flex; align-items: center; gap: 31px; }
.main-nav a { color: #506673; font-size: 11px; font-weight: 700; }
.main-nav a:hover { color: #ca6b52; }
.cart-trigger {
  justify-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 39px;
  padding: 7px 9px 7px 15px; border: 1px solid var(--blue); border-radius: 5px;
  background: var(--blue); color: white; font-size: 11px; font-weight: 700;
}
.cart-trigger:hover { background: #3487a7; }
.cart-count { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 4px; border-radius: 3px; background: var(--sun); color: #244455; font-size: 10px; }

.hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: min(640px, calc(100svh - 160px)); padding: 70px max(28px, calc((100% - 1280px) / 2));
  overflow: hidden; color: #244255; background: #b4dbea;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: url("./assets/toys-hero.png") center 52% / cover; }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, rgba(204,231,240,.28), transparent 57%); }
.hero-inner { max-width: 600px; }
.eyebrow { margin: 0 0 20px; color: #305f72; font-size: 10px; font-weight: 700; text-transform: uppercase; }
h1 { margin-bottom: 23px; font-size: 101px; font-weight: 600; line-height: .9; }
.hero-inner > p:not(.eyebrow) { max-width: 420px; margin-bottom: 29px; color: #36566a; font-size: 16px; font-weight: 500; line-height: 1.75; }
.hero-link {
  display: inline-flex; align-items: center; gap: 24px; min-height: 46px; padding: 11px 17px;
  border-radius: 5px; background: var(--coral); color: #243d4a; font-size: 11px; font-weight: 700;
}
.hero-link:hover { background: #ff9b81; }
.hero-link span { font-size: 18px; font-weight: 400; line-height: 1; }
.hero-caption { position: absolute; right: max(28px, calc((100% - 1280px) / 2)); bottom: 28px; color: #305365; font-size: 9px; font-weight: 700; }

.intro, .catalog-section, .info-section, .contact-section {
  scroll-margin-top: 98px; padding-inline: max(28px, calc((100% - 1280px) / 2));
}
.section-label { margin: 0 0 18px; color: #cf6c53; font-size: 10px; font-weight: 700; }
.intro {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start;
  padding-block: 93px 100px; background: var(--sky);
}
.intro h2 { max-width: 740px; margin-bottom: 18px; font-size: 54px; font-weight: 600; line-height: 1.08; }
.intro > div > p { max-width: 650px; margin: 0; color: #5d7887; font-size: 15px; line-height: 1.85; }

.catalog-section { padding-block: 96px 110px; background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: 52px; font-weight: 600; line-height: 1.1; }
.section-head > p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.catalog-toolbar { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 11px; padding: 17px; border: 1px solid var(--line); border-radius: 6px; background: #f9fbfa; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field span { color: #637b88; font-size: 10px; font-weight: 700; }
.field input, .field select {
  width: 100%; height: 43px; padding: 0 12px; border: 1px solid #cddde1; border-radius: 5px;
  background: white; color: var(--ink); font-size: 12px; appearance: none;
}
.field input::placeholder { color: #8da0a9; }
.field select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23267696' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 12px center; background-repeat: no-repeat;
}
.result-count { margin: 20px 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.toy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.toy-card {
  display: flex; flex-direction: column; min-width: 0; padding: 16px;
  border: 1px solid #e2eaeb; border-radius: 6px; background: #fbfcfb;
}
.toy-image {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 4px; background-image: url("./assets/toy-products.png");
  background-size: 300% 200%; background-repeat: no-repeat;
}
.art-blocks { background-position: 0 0; }
.art-woodland { background-position: 50% 0; }
.art-explorer { background-position: 100% 0; }
.art-bunny { background-position: 0 100%; }
.art-puppets { background-position: 50% 100%; }
.art-train { background-position: 100% 100%; }
.toy-meta { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 8px; color: #c66b51; font-size: 10px; font-weight: 700; }
.toy-card h3 { margin: 0 0 5px; font-size: 24px; font-weight: 600; line-height: 1.2; }
.toy-description { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.toy-details { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding: 14px 0; border-top: 1px solid var(--line); }
.toy-details span { color: var(--green); font-size: 11px; font-weight: 700; }
.toy-details strong { font-size: 15px; font-weight: 700; white-space: nowrap; }
.add-button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 39px; padding: 7px 10px 7px 13px; border: 1px solid var(--blue); border-radius: 5px;
  background: white; color: var(--blue); font-size: 11px; font-weight: 700;
}
.add-button span { font-size: 18px; font-weight: 400; line-height: 1; }
.add-button:hover { color: white; background: var(--blue); }
.empty-results { padding: 30px; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.catalog-note { margin: 24px 0 0; color: var(--muted); font-size: 10px; }

.quote-section { display: grid; place-items: center; gap: 10px; min-height: 280px; padding: 55px 25px; background: #f6c5b4; color: #2c5366; text-align: center; }
.quote-section p { max-width: 800px; margin: 0; font: 600 44px/1.15 var(--display); }
.quote-section span { font-size: 10px; font-weight: 700; }
.info-section { padding-block: 98px 108px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-grid > div { min-height: 205px; padding: 28px 30px; border-right: 1px solid var(--line); }
.info-grid > div:first-child { padding-left: 0; }
.info-grid > div:last-child { border-right: 0; }
.info-grid span { color: #c96a51; font-size: 11px; font-weight: 700; }
.info-grid h3 { margin: 29px 0 9px; font-size: 26px; font-weight: 600; }
.info-grid p { max-width: 300px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }

.contact-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding-block: 96px 108px;
  background: #2c5b70; color: white;
}
.contact-section .section-label { color: #ffc5b2; }
.contact-section h2 { margin: 0; font-size: 58px; font-weight: 600; line-height: 1.07; }
.contact-section > div:last-child { align-self: end; }
.contact-section > div:last-child > p:first-child { color: #d9ebef; font-size: 13px; }
.contact-section a { font: 500 29px/1.3 var(--display); overflow-wrap: anywhere; }
.contact-section a:hover { color: #ffd5c5; }
.contact-address { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.27); }
.contact-address span { display: block; margin-bottom: 8px; color: #ffc5b2; font-size: 10px; font-weight: 700; }
.contact-address address { color: #d8ebee; font-size: 13px; font-style: normal; line-height: 1.7; }
.domain { margin: 24px 0 0; color: #b9d6de; font-size: 11px; font-weight: 700; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px max(28px, calc((100% - 1280px) / 2)); color: var(--muted); font-size: 11px; }
.site-footer a:hover { color: var(--blue); }

.cart-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(22,45,55,.5); }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-direction: column;
  width: min(460px, 100%); padding: 28px 30px; background: var(--surface); box-shadow: -12px 0 40px rgba(0,0,0,.14);
  transform: translateX(102%); transition: transform .25s ease;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 37px; font-weight: 600; line-height: 1; }
.cart-head .section-label { margin-bottom: 8px; }
.cart-close { align-self: start; border: 0; background: transparent; color: var(--ink); font-size: 32px; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-empty { padding: 45px 0; color: var(--muted); font-size: 12px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-item h3 { margin: 0 0 5px; font-size: 22px; font-weight: 600; }
.cart-item p { margin: 0; color: var(--muted); font-size: 11px; }
.cart-item > strong { font-size: 12px; white-space: nowrap; }
.qty-controls { display: inline-flex; align-items: center; gap: 15px; margin-top: 15px; }
.qty-controls button { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); }
.qty-controls span { min-width: 12px; text-align: center; font-size: 12px; }
.cart-bottom { padding-top: 20px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; gap: 15px; font-size: 14px; font-weight: 700; }
.cart-bottom p { margin: 11px 0 20px; color: var(--muted); font-size: 11px; }
.checkout-button { width: 100%; min-height: 48px; padding: 12px; border: 0; border-radius: 5px; background: var(--blue); color: white; font-size: 11px; font-weight: 700; }
.checkout-button:hover:not(:disabled) { background: #3487a7; }
.checkout-button:disabled { cursor: not-allowed; opacity: .45; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; row-gap: 0; padding: 13px 28px 11px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 28px; overflow-x: auto; padding-top: 13px; white-space: nowrap; }
  .intro, .contact-section { gap: 35px; }
  .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { padding-inline: 20px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 18px; }
  .main-nav { gap: 22px; }
  .hero { min-height: min(600px, 75svh); padding: 65px 20px; align-items: start; }
  .hero-media { background-position: 54% center; }
  .hero::before { background: linear-gradient(90deg, rgba(205,232,240,.82), rgba(205,232,240,.16) 77%); }
  h1 { font-size: 75px; }
  .hero-inner > p:not(.eyebrow) { font-size: 14px; }
  .hero-caption { display: none; }
  .intro, .catalog-section, .info-section, .contact-section { padding-inline: 20px; }
  .intro { grid-template-columns: 1fr; gap: 13px; padding-block: 75px 85px; }
  .intro h2 { font-size: 43px; }
  .catalog-section, .info-section { padding-block: 78px 90px; }
  .section-head { display: block; margin-bottom: 27px; }
  .section-head h2 { font-size: 42px; }
  .section-head > p { margin-top: 11px; }
  .toy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .toy-card { padding: 13px; }
  .toy-card h3 { font-size: 21px; }
  .toy-details { align-items: start; flex-direction: column; gap: 2px; }
  .quote-section { min-height: 250px; }
  .quote-section p { font-size: 32px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid > div, .info-grid > div:first-child { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .info-grid > div:last-child { border-bottom: 0; }
  .info-grid h3 { margin-top: 14px; }
  .contact-section { grid-template-columns: 1fr; gap: 40px; padding-block: 78px 85px; }
  .contact-section h2 { font-size: 46px; }
  .contact-section a { font-size: 27px; }
  .site-footer { flex-wrap: wrap; padding-inline: 20px; }
}
@media (max-width: 520px) {
  .announcement { gap: 4px 9px; font-size: 9px; }
  .cart-trigger { gap: 5px; padding-left: 8px; font-size: 10px; }
  .brand-name { font-size: 16px; }
  .brand-subtitle { font-size: 8px; }
  h1 { font-size: 65px; }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; padding: 12px; }
  .search-field { grid-column: 1 / -1; }
  .toy-grid { grid-template-columns: 1fr; gap: 17px; }
  .toy-card { padding: 17px; }
  .toy-card h3 { font-size: 24px; }
  .toy-details { align-items: center; flex-direction: row; }
}
@media (max-width: 380px) {
  h1 { font-size: 57px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 14px; }
  .brand-subtitle { font-size: 7px; }
  .contact-section a { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart-drawer { transition: none; }
}
