:root {
  color-scheme: light;
  --paper: #fff9eb;
  --white: #fffdf7;
  --ink: #171612;
  --muted: #625b4d;
  --gold: #ffc42e;
  --gold-strong: #ffb721;
  --gold-pale: #fff1c7;
  --gold-ink: #73500b;
  --line: #ded2b7;
  --display: "Noto Sans Display", "Arial", sans-serif;
  --text: "Noto Sans", "Arial", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--text); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .wordmark { font-family: var(--display); }
.wrap { width: min(1160px, 100% - 80px); margin-inline: auto; }
.site-header { background: #fff0bd; color: var(--ink); border-bottom: 1px solid #e6ca82; }
.site-footer { background: #fff1cf; color: var(--ink); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 2.4vw, 28px); }
.wordmark { display: inline-block; font-weight: 950; font-size: 2.5rem; line-height: .86; letter-spacing: -.085em; text-decoration: none; color: var(--gold); white-space: nowrap; }
.site-header .wordmark, .site-footer .wordmark { color: #422c16; }
.header-inner nav { display: flex; align-items: center; gap: 5px; font-size: .94rem; font-weight: 750; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px clamp(8px, 1.15vw, 15px); border-radius: 7px; text-decoration: none; }
.header-inner nav a:hover, .header-inner nav a:is([aria-current="page"], .section-active) { background: #fffaf0; color: #4a2d0b; }
.header-inner nav .nav-delivery { background: #ffd35a; color: #40270b; }
.header-inner nav .nav-delivery:hover { background: #ffc43a; color: #40270b; }
.button {
  min-height: 48px; padding: .74rem 1.25rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 5px; font-weight: 750; line-height: 1.2; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.button-outline:hover { border-color: var(--gold-ink); color: var(--gold-ink); }
.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover { background: var(--gold-strong); }
.header-contact { border-color: #9c7334; color: #422c16; white-space: nowrap; }
.header-contact:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.calculator { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: 26px 56px; padding-block: clamp(28px, 4vw, 58px); }
.location { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 800; color: var(--gold-ink); }
h1 { font-size: clamp(3.9rem, 7.45vw, 7.1rem); line-height: .88; letter-spacing: -.078em; font-weight: 950; margin: 22px 0; }
h1 em { color: inherit; font-style: normal; background: linear-gradient(transparent 65%, var(--gold) 65%, var(--gold) 91%, transparent 91%); }
.intro-copy { max-width: 31rem; color: var(--muted); font-size: 1.1rem; }
.calculator-form { padding: clamp(18px, 2.7vw, 29px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 5px 5px 0 #f3e2b1; }
.dog-form-heading { --spaniel-width: clamp(84px, 13vw, 145px); display: grid; align-items: center; position: relative; min-height: 86px; margin: 6px 0 15px; padding: 10px calc(var(--spaniel-width) + 15px) 10px 13px; border: 1px solid #e8c870; border-bottom-width: 3px; border-radius: 8px; background: var(--gold-pale); }
.calculator-form h2 { font-size: clamp(1.35rem, 2.55vw, 2.15rem); font-weight: 850; line-height: 1.03; letter-spacing: -.045em; }
.form-spaniel { position: absolute; bottom: -8px; right: 5px; width: var(--spaniel-width); height: auto; pointer-events: none; filter: drop-shadow(0 2px 1px #57321429); }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-size: .93rem; font-weight: 700; }
.breed-field { position: relative; z-index: 2; }
.breed-dropdown { position: absolute; inset: calc(100% + 4px) 0 auto; background: var(--white); border: 1px solid #c6b99d; border-radius: 7px; box-shadow: 0 12px 28px #18140e2b; }
.breed-options { overflow: auto; max-height: min(205px, 32dvh); overscroll-behavior: contain; padding: 4px; }
.breed-option { padding: 9px 10px; border-radius: 4px; cursor: pointer; line-height: 1.35; }
.breed-option:hover, .breed-option[aria-selected="true"] { background: var(--gold-pale); }
.breed-empty { padding: 10px 12px; color: var(--muted); }
.field input[aria-invalid="true"], .input-group:has(input[aria-invalid="true"]) { border-color: var(--gold-ink); }
.field-row { display: grid; grid-template-columns: 1.12fr 1fr; gap: 14px; margin-top: 15px; }
.field input, .input-group, .order-content textarea { width: 100%; min-width: 0; min-height: 51px; border: 1px solid #c6b99d; border-radius: 5px; background: #fffffb; color: var(--ink); }
.field input { padding: 0 .75rem; }
.field input::placeholder { color: #6b6456; }
.input-group { display: flex; align-items: center; }
.input-group input { min-height: 49px; border: 0; background: transparent; }
.input-group select { background: transparent; border: 0; border-left: 1px solid var(--line); padding: 0 5px 0 7px; color: var(--ink); min-height: 34px; }
.input-unit { padding: 0 .75rem 0 .2rem; color: var(--muted); }
.form-submit { width: 100%; margin-top: 20px; }
.form-note, .form-error, .image-note, .energy-explainer { font-size: .88rem; color: var(--muted); }
.form-note, .form-error { margin-top: 10px; }
.form-error { color: var(--ink); font-weight: 700; }
.results { grid-column: 1 / -1; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.result-heading, .section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.result-heading h2, .section-heading h2, .about h2 { font-size: clamp(2.05rem, 4.4vw, 4.15rem); line-height: 1; font-weight: 900; letter-spacing: -.055em; }
.dog-profile { margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
.energy { padding: 12px 16px; background: var(--gold-pale); border-radius: 6px; display: grid; max-width: 250px; }
.energy strong { font: 850 1.7rem/1.1 var(--display); color: var(--gold-ink); }
.energy span { margin-top: 4px; color: var(--muted); font-size: .87rem; line-height: 1.35; }
.result-explainer { max-width: 48rem; margin: 12px 0; color: var(--muted); }
.puppy-menu-heading { margin: 0 0 10px; }
.puppy-menu-heading h3 { font-size: 1.18rem; }
.puppy-menu-heading p { color: var(--muted); font-size: .94rem; }
.puppy-note { max-width: 48rem; display: grid; gap: 5px; margin-top: 12px; background: var(--gold-pale); padding: 13px 16px; border-left: 4px solid var(--gold); border-radius: 5px; }
.puppy-note strong { font-size: 1.08rem; }
.puppy-note a { width: fit-content; color: var(--gold-ink); font-size: .9rem; text-underline-offset: .16em; }
.dish-filter { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; margin: 0 0 12px; }
.dish-filter label { font-size: .93rem; font-weight: 700; }
.dish-filter select { min-height: 42px; padding: 0 10px; border: 1px solid #c6b99d; border-radius: 5px; background: #fffffb; color: var(--ink); }
.result-dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dinner-example { background: var(--gold-pale); border-radius: 6px; padding: 12px 15px; margin-bottom: 12px; }
.dinner-example h3 { font-size: 1.05rem; }
.dinner-example p { color: var(--muted); margin-top: 3px; }
.dinner-example strong { color: var(--ink); }
.puppy-meals { margin: 12px 0 0; }
.puppy-meals p + p { margin-top: 6px; }
.result-dish { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 5px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; }
.result-dish h3 { font-size: 1rem; font-weight: 700; }
.result-dish .dish-price { font-weight: 750; color: var(--gold-ink); white-space: nowrap; }
.dish-reason, .dish-nutrition, .dish-serving { grid-column: 1 / -1; color: var(--muted); font-size: .89rem; }
.dish-nutrition { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; margin: 4px 0; padding-block: 7px; border-block: 1px solid var(--line); }
.dish-nutrition dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.energy-explainer, .result-actions { margin-top: 16px; }
.menu-band { border-block: 1px solid var(--line); background: var(--gold-pale); }
.menu-section, .about { padding-block: clamp(42px, 6vw, 76px); }
.section-heading p { color: var(--muted); }
.menu-dishes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 27px; }
.menu-dish { border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; }
.menu-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: var(--gold-pale); }
.menu-dish { display: flex; flex-direction: column; }
.menu-dish > .dish-description { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 7px; padding: 15px; }
.menu-dish h3 { font-size: 1.07rem; line-height: 1.25; font-weight: 800; }
.menu-dish .dish-price { font-weight: 800; color: var(--gold-ink); }
.dish-weight, .dish-ingredients { color: var(--muted); font-weight: 400; }
.menu-dish .button { margin-top: auto; }
.delivery-section { padding-top: clamp(28px, 5vw, 52px); }
.delivery-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border: 1px solid #e9c66c; border-radius: 14px; background: #fff0ba; overflow: hidden; }
.delivery-copy { display: grid; align-content: center; justify-items: start; gap: 12px; padding: clamp(20px, 4vw, 46px); }
.delivery-copy .section-heading { margin-bottom: 4px; }
.delivery-copy > p { max-width: 46ch; }
.delivery-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 4px 2px; }
.delivery-actions .button-outline { border-color: #9c7334; }
.delivery-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.delivery-contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.delivery-contacts a { color: inherit; overflow-wrap: anywhere; }
.reviews-section { padding-top: clamp(32px, 5vw, 58px); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 16px; margin-top: 24px; }
.review-card { display: grid; align-content: space-between; gap: 18px; margin: 0; padding: 22px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; }
.review-card blockquote { margin: 0; }
.review-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
.review-card figcaption span { color: var(--muted); font-size: .94rem; }
.about { display: grid; grid-template-columns: .94fr 1.06fr; gap: 36px 76px; }
.about h2 { margin-top: 10px; }
.about-copy { display: grid; justify-items: start; gap: 12px; color: var(--muted); }
.site-footer { border-top: 1px solid #e6ca82; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; padding-block: 27px; }
.footer-inner p, .footer-inner > a:not(.wordmark) { color: #584423; font-size: .94rem; }
dialog { padding: 0; border: 0; border-radius: 12px; color: var(--ink); box-shadow: 0 28px 90px #1c170e63; }
dialog::backdrop { background: #18140e99; backdrop-filter: blur(5px); }
dialog[open] { animation: enter .28s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.welcome { max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); width: 860px; background: var(--white); overflow: auto; }
.welcome-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); }
.welcome-poster { display: grid; grid-template-rows: auto minmax(188px, 1fr); position: relative; background: var(--ink); color: var(--paper); min-width: 0; }
.welcome-copy { position: relative; z-index: 1; padding: 28px clamp(22px, 4vw, 40px) 22px; }
.welcome-copy .wordmark { font-size: 1.8rem; }
.welcome-copy h2 { margin-top: 15px; font-size: clamp(1.65rem, 3.1vw, 2.9rem); font-weight: 950; line-height: .99; letter-spacing: -.055em; }
.welcome-copy h2 span { display: block; color: var(--gold); font-size: .65em; line-height: 1.2; letter-spacing: -.032em; margin-top: 8px; }
.welcome-delivery { margin-top: 9px; color: var(--paper); font-size: .86rem; line-height: 1.3; }
.welcome-photo { display: block; background: var(--gold); width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 65% 44%; }
.welcome-form-slot { display: flex; align-items: center; min-width: 0; padding: 38px clamp(20px, 3.5vw, 40px) 24px; }
.welcome .calculator-form { width: 100%; background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: 0; }
.welcome .dog-form-heading { --spaniel-width: clamp(90px, 14vw, 145px); }
.welcome #welcome-title:focus { outline: none; }
.close-button { display: grid; place-content: center; position: absolute; top: 12px; right: 12px; z-index: 2; border-radius: 50%; font-size: 1.7rem; line-height: 1; width: 42px; height: 42px; }
.welcome-close { color: var(--paper); border: 1px solid var(--ink); background: var(--ink); }
.welcome-close:hover { color: var(--gold); }
.welcome-close:focus-visible { outline-color: var(--gold-ink); }
.order-dialog { width: min(510px, 100% - 32px); background: var(--white); }
.order-content { padding: 32px; }
.order-content h2 { max-width: calc(100% - 35px); font-size: 1.85rem; letter-spacing: -.04em; line-height: 1; margin-bottom: 12px; }
.order-content p { color: var(--muted); }
.order-close { color: var(--ink); background: none; border: 1px solid var(--line); }
.order-content textarea { margin: 13px 0 9px; padding: .6rem .75rem; resize: vertical; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-status:not(:empty) { margin-top: 8px; font-size: .88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 940px) {
  .wrap { width: min(100% - 48px, 1160px); }
  .calculator, .about { gap: 32px; }
  .menu-dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 9px; }
  .header-inner nav { flex-wrap: wrap; gap: 4px; grid-column: 1 / -1; grid-row: 2; padding-block: 6px 9px; font-size: .875rem; }
  .header-inner nav a { min-height: 40px; padding-inline: 8px; }
  .delivery-panel { grid-template-columns: 1fr; }
  .delivery-panel img { height: auto; aspect-ratio: 2 / 1; }
  .header-contact { min-height: 42px; padding: .55rem .75rem; font-size: .9rem; }
  .wordmark { font-size: 2.2rem; }
  .calculator, .about { grid-template-columns: 1fr; gap: 22px; }
  .calculator { padding-top: 24px; }
  h1 { margin: 16px 0; font-size: clamp(3.5rem, 13vw, 5.4rem); }
  .intro-copy { font-size: 1rem; }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-poster { display: block; min-height: 128px; overflow: hidden; }
  .welcome-copy { padding: 16px 12px 17px 20px; width: 72%; background: linear-gradient(90deg, var(--ink) 80%, transparent); }
  .welcome-copy .wordmark { font-size: 1.4rem; }
  .welcome-copy h2 { margin-top: 10px; font-size: clamp(1.3rem, 5.3vw, 2rem); }
  .welcome-copy h2 span { margin-top: 5px; }
  .welcome-photo { position: absolute; inset: 0 0 0 auto; width: 49%; object-position: 67% 42%; }
  .welcome-form-slot { padding: 15px 16px 18px; }
  .dog-form-heading { min-height: 74px; margin-top: 5px; }
  .welcome-close { top: 7px; right: 7px; width: 37px; height: 37px; }
  .result-dishes { grid-template-columns: 1fr; }
  .calculator-form { box-shadow: 3px 3px 0 #f3e2b1; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .calculator-form, .results { padding: 17px; }
  .field-row { gap: 8px; }
  .welcome-form-slot { padding-inline: 15px; }
  .menu-dishes { gap: 9px; }
  .menu-dish > .dish-description { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.brand-mark { display: block; width: clamp(110px, 12vw, 153px); aspect-ratio: 3 / 1; background: currentColor; mask: url("media/brand-wordmark.webp") center / contain no-repeat; }
.welcome-copy .brand-mark { width: 108px; }
.site-header a[aria-current="page"] { color: var(--gold); }

/* The same palette identifies each game in the catalog and on its own page. */
:is(.dog-arcade-runner, .game-runner, .game-switch a[href="igra.html"]) { --game-wash: #e4f6c2; --game-fill: #bbe675; --game-ink: #253716; --game-border: #8eb646; }
:is(.dog-arcade-bones, .game-bones, .game-switch a[href="kostochki.html"]) { --game-wash: #ffe7b5; --game-fill: #ffd082; --game-ink: #4d2d18; --game-border: #d49844; }
:is(.dog-arcade-match, .game-match, .game-switch a[href="tri-v-ryad.html"]) { --game-wash: #ffe0ed; --game-fill: #f7afcb; --game-ink: #512343; --game-border: #d280aa; }
:is(.dog-arcade-space, .game-space, .game-switch a[href="belka-strelka.html"]) { --game-wash: #e6e2ff; --game-fill: #c9c4ff; --game-ink: #342757; --game-border: #9e92d3; }
