/* Canonical shared implementation of DESIGN.md. Page files own composition only. */
@import url('./tokens.css');

/* Corrections from the final review: shared card footer and contact actions. */
.horse-card-footer { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:12px; margin-top:auto; padding-top:10px; }
.horse-info .horse-card-footer .text-link { margin:0; padding:0; align-self:auto; }
.drawer-phone-row, .utility-page-contact { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.max-contact { display:inline-flex; align-items:center; justify-content:center; flex:0 0 36px; width:36px; height:36px; padding:0; border:0; border-radius:4px; background:transparent; }
.max-contact img { width:36px; height:36px; }
.max-contact img, .catalog-channels img[src$='/93400.svg'] { -webkit-mask: url('../assets/web/020a2.webp') center/100% 100% no-repeat; mask: url('../assets/web/020a2.webp') center/100% 100% no-repeat; mask-mode: alpha; }
.horse-detail-region { min-width:0; }
.horse-detail-region .horse-section-nav { top:var(--sticky-header-height,0px); }
.horse-detail-region .horse-aside { top:calc(var(--sticky-header-height,0px) + var(--horse-nav-height,51px) + 24px); }
[data-horse-section] { scroll-margin-top:calc(var(--sticky-header-height,0px) + var(--horse-nav-height,51px) + 24px); }
.utility-page-main { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:32px; min-height:65vh; padding-block:80px; }
.utility-page-main h1 { max-width:1000px; font:400 clamp(32px,4vw,70px)/1.1 var(--heading); text-transform:uppercase; }
.utility-page-main h1 em { font:400 1em/1.1 var(--display); color:var(--red); }
.utility-page-main>p:not(.error-number) { max-width:60ch; line-height:1.5; }
.utility-page-actions { display:flex; align-items:center; flex-wrap:wrap; gap:24px; }
.error-number { font:400 clamp(100px,16vw,220px)/.9 var(--display); color:var(--red); }
@media(max-width:700px) {
 .utility-page-main { gap:24px; padding-block:60px; }
 .utility-page-contact .phone { font-size:22px; }
}

:root {
  --paper: var(--nt-paper);
  --paper-card: var(--nt-paper);
  --catalog-ground: var(--nt-ground);
  --banner-ground: var(--nt-ground);
  --green: var(--nt-green);
  --red: var(--nt-red);
  --red-deep: var(--nt-redDeep);
  --muted: var(--nt-green);
  --detail-muted: #b9b098;
  --form-field-muted:#8a8774;
  --form-panel-shadow:8.745px 8.745px 17.49px #0000000a,.875px .875px 17.49px 3.498px #0000000a;
  --line: var(--nt-green);
  --olive: var(--nt-green);
  --body: 'Inter', sans-serif;
  --heading: 'Inter Tight', sans-serif;
  --display: 'Literature Decor', serif;
  --handwriting: 'Bad Script', cursive;
  --content: 1410px;
  --gutter: 20px;
  --grid-gap: 30px;
  --catalog-gap: var(--grid-gap);
  --horse-gap: var(--grid-gap);
  --section: 180px;
  --h2: 70px;
  --radius: 4px;
  --chip-radius: 8px;
  --slider-arrow: 50px;
  --slider-dot: 10px;
  --slider-gap: 10px;
  --duration-enter: 180ms;
  --duration-exit: 120ms;
  --fast: var(--duration-enter);
  --card-growth: 1.025;
}
html { scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; }
body { color: var(--green); background: var(--paper); font-family: var(--body); line-height: 1.2; }
button, input, textarea { font-family: inherit; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--content)); margin-inline: auto; }
.two-col { gap: var(--grid-gap); }
h2 { font: 400 var(--h2)/1.05 var(--heading); letter-spacing: 0; text-wrap: initial; max-width: 1410px; }
h2 em { font: 400 1em/1.05 var(--display); letter-spacing: 0; }
.home-page h2 { font-family: var(--heading); }
.home-page h2:not(.footer h2) { text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.home-page h2 + * { margin-top: 80px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* Buttons: exactly three source families, plus the existing inverse context. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 15px 40px; border: 0; border-radius: 4px;
  background: var(--red); color: var(--paper); font: 500 18px/1.45 var(--heading);
  text-align: center; text-transform: none; text-decoration: none;
  transition: background-color var(--duration-exit) ease-in, color var(--duration-exit) ease-in;
}
.button.small, .utility-actions .button, .utility-sticky .button {
  min-height: 40px; padding: 2px 21px; font: 400 16px/1.45 var(--heading);
}
.button.outline { background: var(--paper); border: 1px solid var(--red); color: var(--red); }
#load-more { min-width: 0; min-height: 56px; width: auto; padding: 15px 40px; background: var(--catalog-ground); border: 0; color: var(--red); font: 500 18px/1.45 var(--heading); }
.footer .button { color: var(--paper); background: transparent; border: 1px solid var(--paper); }
.text-link, .inline-link, .reset-filters { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.text-link { font: 500 14px/normal var(--body); text-transform: uppercase; }
.owner-copy .review-toggle { align-self: flex-start; width: fit-content; max-width: 100%; justify-content: flex-start; gap: 8px; }
.owner-copy .review-toggle > span { flex: 0 0 auto; }
.home-page .review-card { min-height: 373px; padding: 20px 20px 24px; gap: 14px; background: var(--paper); border-color: var(--detail-muted); }
.home-page .review-card header { gap: 14px; }
.home-page .review-card header img, .home-page .review-card .review-avatar-placeholder { width: 58px; height: 58px; flex: 0 0 58px; object-fit: cover; border-radius: 50%; }
.home-page .review-card h3 { max-width: 122px; font-size: 18px; line-height: 1.2; }
.home-page .review-card .review-rating { gap: 12px; font-size: 18px; line-height: 1.2; }
.home-page .review-rating img { width: 110px; height: auto; flex: 0 0 110px; }
.guest-review-copy { margin-top: 4px; font-size: 16px; line-height: 1.2; color: #515151; }
.guest-review-copy p { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.guest-review-copy.is-expanded p { display: block; overflow: visible; }
.guest-review-expand { padding: 0; color: var(--red); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.home-page .review-photos { gap: 16px; padding-top: 4px; }
.home-page .review-photos button { width: min(90px, calc((100% - 32px)/3)); }
.home-page .review-photos img { width: 100%; height: auto; aspect-ratio: 90/74; object-fit: cover; }
@media (hover:hover) { .guest-review-expand:hover { color: var(--red-deep); } }
@media(max-width:700px) {
  .home-page .review-card h3 { font-size: 14px; }
  .home-page .review-card .review-rating { font-size: 12px; }
  .guest-review-copy { font-size: 13px; line-height: 1.3; }
}
.inline-link { font: inherit; text-transform: none; }

/* Tabs and chips retain selection during hover. */
.home-page #horses .tabs { display: flex; gap: 20px; flex-wrap: wrap; }
.home-page #horses .tabs button, .horse-section-nav a {
  flex: 0 0 auto; min-height: 51px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--green);
  border-radius: 0; background: transparent; color: var(--green); font: 400 22px/normal var(--body);
  text-transform: uppercase; white-space: nowrap;
  transition: color var(--duration-exit) ease-in, border-color var(--duration-exit) ease-in;
}
.home-page #horses .tabs [aria-selected='true'], .horse-section-nav a[aria-current='location'] { color: var(--red); border-color: var(--red); background: transparent; font-weight: 700; }
.filter-chip { --chip-border: var(--line); min-height: 42px; padding: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--chip-border); border-radius: 8px; color: var(--green); background: transparent; font: 400 18px/normal var(--body); }
.filter-chip[aria-pressed='true'] { --chip-border: var(--red); color: var(--paper); background: var(--red); font-weight: 700; }
.sex-filters { gap: 20px; }
.breadcrumbs > span[aria-hidden] { font: inherit; line-height: 1; }

/* One arrow and one pagination component for every gallery and track. */
.nt-slider-controls { display: flex; align-items: center; gap: 20px; }
.nt-slider-arrow {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 var(--slider-arrow); width: var(--slider-arrow); height: var(--slider-arrow);
  min-width: var(--slider-arrow); min-height: var(--slider-arrow); padding: 0;
  border: 0; border-radius: 4px; background: var(--catalog-ground); color: var(--red);
  font-size: 0; line-height: 1; overflow: visible;
  transition: color var(--duration-exit) ease-in, background-color var(--duration-exit) ease-in;
}
.nt-slider-arrow::after { content: ''; display: block; width: 50px; height: 50px; background: url('../assets/slider-next.svg') center/50px 50px no-repeat; }
.back-to-top { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70; border-radius: 4px; box-shadow: 0 3px 14px #16302b24; }
.back-to-top[hidden] { display: none; }
.back-to-top::after { transform: rotate(-90deg); }
.menu-shade { position: fixed; inset: var(--menu-header-height,68px) 0 0; background: #b9b098b3; z-index: 79; }
.menu-shade[hidden] { display: none; }
.menu-open { overflow: hidden; padding-top: var(--menu-header-height,68px); }
.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 81; background: var(--paper); }
.menu-open .site-header .menu-toggle { background: var(--paper); border: 1px solid var(--detail-muted); position: relative; }
.menu-open .site-header .menu-toggle:focus { outline: none; box-shadow: none; }
.menu-open .site-header .menu-toggle:focus-visible { border-color: var(--green); }
.menu-open .site-header .menu-toggle span { position: absolute; background: var(--green); transform: rotate(45deg); }
.menu-open .site-header .menu-toggle span:last-child { transform: rotate(-45deg); }
.mobile-menu { inset: var(--menu-header-height,68px) 0 0 auto; z-index: 80; width: min(360px,calc(100% - 74px)); height: calc(100dvh - var(--menu-header-height,68px)); max-height: calc(100dvh - var(--menu-header-height,68px)); padding: 30px 20px 20px; border: 1px solid var(--detail-muted); box-shadow: none; overflow-y: auto; }
.mobile-menu .drawer-header { display: none; }
.mobile-menu nav { gap: 20px; font: 400 16px/1.05 var(--heading); }
.mobile-menu nav :is(a,button) { gap: 4px; }
.mobile-menu nav > a:first-child { color: var(--red); }
.mobile-menu nav :is(a,button):focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
.mobile-menu .drawer-contact { font-family: var(--heading); }
.mobile-menu .drawer-phone-row { gap: 10px; flex-wrap: nowrap; }
.mobile-menu .drawer-phone-row .phone { font: 700 24px/1 var(--heading); white-space: nowrap; }
.mobile-menu .max-contact { flex-basis: 28px; width: 28px; height: 28px; }
.mobile-menu .max-contact img { width: 28px; height: 28px; }
.menu-open .back-to-top { visibility: hidden; }
@media(max-width:700px) {
  .back-to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .horse-page .back-to-top { bottom: calc(var(--viewing-bar-height, 80px) + 16px + env(safe-area-inset-bottom)); }
}
.nt-slider-arrow[data-direction='previous']::after { transform: rotate(180deg); }
.nt-slider-arrow:disabled { cursor: default; opacity: .45; }
.nt-slider-controls .nt-slider-arrow { border-radius: 4px; }
.close-button { border-radius: 4px; }
.nt-slider-dots {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: var(--slider-gap); margin: 20px 0 0; padding: 0; min-height: var(--slider-dot);
}
.nt-slider-dots button {
  position: relative; display: block; flex: 0 0 var(--slider-dot); width: var(--slider-dot); height: var(--slider-dot);
  min-width: var(--slider-dot); min-height: var(--slider-dot); padding: 0; border: 0; border-radius: 2px;
  background: var(--catalog-ground); box-shadow: none; color: var(--red); font-size: 0;
  transition: background-color var(--duration-exit) ease-in, box-shadow var(--duration-exit) ease-in;
}
.nt-slider-dots button::before { content: ''; position: absolute; inset: -5px; }
.nt-slider-dots button[aria-current='true'] { background: var(--red); }
.nt-slider-dots[hidden] { display: none; }
.nt-gallery-status { color: var(--green); font: 400 14px/1.4 var(--body); }
.photo-navigation { align-items: center; gap: 20px; }
.photo-navigation .nt-slider-dots { flex: 1; justify-content: center; margin: 0; }
.photo-navigation .nt-gallery-status { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.horse-photo-button { background: var(--paper); }
.horse-photo-button #horse-photo { object-fit: contain; object-position: center; }
.horse-photo-button { position: relative; }
.horse-photo-viewport { display: flex; width: 100%; min-width: 0; aspect-ratio: 1246/829; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
.horse-photo-viewport::-webkit-scrollbar { display: none; }
.horse-photo-viewport > .horse-photo-button { display: block; flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; aspect-ratio: auto; scroll-snap-align: start; touch-action: auto; }
.horse-photo-viewport > .horse-photo-button img { width: 100%; height: 100%; object-fit: contain; object-position: center; view-transition-name: none; user-select: none; -webkit-user-drag: none; }
@media(max-width:700px) { .horse-photo-viewport { aspect-ratio: 320/236; } }
.nt-track.nt-gliding { scroll-snap-type: none; scroll-behavior: auto; }
.nt-track { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; overflow-anchor: none; touch-action: pan-x pan-y pinch-zoom; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nt-track::-webkit-scrollbar { display: none; }
.nt-track > .horse-card { scroll-snap-align: start; }
.nt-carousel-controls { margin-top: 16px; justify-content: flex-end; }
.nt-mobile-dots { display: none; }
.catalog-intro h1>span { color:var(--detail-muted); }
.home-page #horses .chapter-word { left:0; right:0; width:100%; text-align:center; }

/* Cards: source dimensions, one set of typography and internal spaces. */
.horse-card, .catalog-card {
  display: flex; flex-direction: column; min-width: 0; height: auto; padding: 0; border: 0;
  outline: 0; border: 1px solid var(--detail-muted); overflow: hidden; isolation: isolate;
  border-radius: 0; box-shadow: none; background: var(--paper); scale: 1;
  transition:scale var(--duration-enter) ease-out;
}
.horse-image { display: block; position: relative; width: 100%; aspect-ratio: 450/382; flex: 0 0 auto; overflow: hidden; padding: 0; border: 0; background: var(--paper); }
.horse-image > img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; scale: 1; }
.horse-image > img.card-alternate { position: absolute; inset: 0; width: 100%; height: 100%; }
.horse-info { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 20px 24px; min-height: 281px; color: var(--green); background: var(--paper); transition: background-color var(--duration-exit) ease-in; }
.horse-card { transition: scale 320ms cubic-bezier(.22,1,.36,1); cursor: pointer; }
.horse-facts > div, .horse-purchase { border: 1px solid color-mix(in srgb,var(--green) 33.33%,transparent); border-radius: 8px; }
.horse-info .breed-sex { display: flex; justify-content: space-between; gap: 8px; font: 400 14px/normal var(--body); margin-bottom: 8px; }
.horse-info h3 { font: 400 30px/normal var(--display); letter-spacing: 0; margin: 0 0 8px; overflow-wrap: anywhere; color: var(--green); transition: color var(--duration-exit) ease-in; }
.horse-info p { margin: 0; font: 400 14px/1.4 var(--body); color: var(--green); }
.horse-info .pills { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; font: 400 15px/normal var(--body); margin: 0; }
.horse-info .pills > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px 8px; border: 1px solid color-mix(in srgb,var(--detail-muted) 20%,transparent); border-radius: 10px; min-width: 0; }
.horse-info .pills dt { color: var(--detail-muted); font-size: 11px; white-space: nowrap; }
.horse-info .pills dd { color: var(--green); font-weight: 700; white-space: nowrap; }
.catalog-results > .horse-card[hidden], .catalog-results > .catalog-card[hidden] { display: none; }
.catalog-results > .catalog-help[hidden] { display: none; }
.catalog-results[hidden], .catalog-empty[hidden] { display: none; }
.owner-review-body { display: flow-root; font-size: 16px; line-height: 1.2; }
.footer-bottom { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 24px; }
.footer-bottom > :first-child { justify-self: start; }
.footer-bottom .footer-credit { justify-self: center; text-align: center; }
.footer-bottom > [data-policy] { justify-self: end; text-align: right; }
.utility-actions, .footer-socials { --social-size: 36px; }
.utility-actions .max-contact, .footer-socials .max-contact { width: var(--social-size); height: var(--social-size); flex: 0 0 var(--social-size); }
.utility-actions .max-contact img, .footer-socials .max-contact img, .utility-actions a[href*='vk.ru'] img, .footer-socials a[href*='vk.ru'] img { width: var(--social-size); height: var(--social-size); max-width: none; }
@media(max-width:700px) {
  .footer-socials { --social-size: 26px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 14px; }
  .footer-bottom .footer-credit, .footer-bottom > [data-policy] { justify-self: start; text-align: left; }
}
.horse-info .horse-card-price { font: 600 22px/1.3 var(--body); margin: 0; }
.horse-info .text-link { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.horse-page .specifications { gap:20px; margin-top:20px; }
.horse-page .specifications>div { display:grid; grid-template-columns:max-content minmax(8px,1fr) minmax(0,215px); gap:6px; align-items:end; padding:0; border:0; }
.horse-page .specifications dt { grid-column:1; grid-row:1; color:var(--detail-muted); font:400 15px/normal var(--body); text-box-trim:trim-both; text-box-edge:cap alphabetic; }
.horse-page .specifications dd { grid-column:3; grid-row:1; max-width:none; text-align:left; color:var(--green); font:400 15px/normal var(--body); text-box-trim:trim-both; text-box-edge:cap alphabetic; }
.horse-page .specifications>div::after { content:''; grid-column:2; grid-row:1; border-bottom:.5px solid var(--detail-muted); align-self:end; }
@media(max-width:700px) {
 .horse-page .specifications>div { grid-template-columns:minmax(0,1fr) minmax(8px,.15fr) minmax(0,1fr); }
 .horse-page .specifications dt,.horse-page .specifications dd { font-size:14px; line-height:1.4; }
}
.home-horses-grid, .related-track { align-items: stretch; gap: var(--grid-gap); padding-block: 0; }
.home-horses-grid > .horse-card, .related-track > .horse-card { flex: 0 0 calc((100% - 2 * var(--grid-gap)) / 3); height: auto; }
.catalog-results { gap: 40px var(--grid-gap); align-items: stretch; }

/* Input fields and both existing inline forms. Geometry does not change on hover. */
form label:not(.consent) { position: relative; display: block; min-width: 0; }
form label:not(.consent) > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
form input:not([type='checkbox']), form textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; height: 50px;
  padding: 18px 0 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--green); background: transparent; font: 400 20px/normal var(--body); box-shadow: none;
  transition: border-color var(--duration-exit) ease-in, box-shadow var(--duration-exit) ease-in;
}
form textarea { height: 100px; min-height: 100px; resize: vertical; }
form input::placeholder, form textarea::placeholder { color: var(--green); opacity: 1; }
.consent { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: start; gap: 8px; font: 400 13px/1.4 var(--body); }
.consent input[type='checkbox'] { appearance: none; position: relative; display: block; width: 24px; height: 24px; margin: 0; padding: 0; border: 1px solid var(--green); border-radius: 4px; background: var(--paper); color: var(--green); flex: 0 0 24px; }
.consent input:checked { background: var(--paper) url('../assets/checkbox-checked.svg') center/24px 24px no-repeat; border-color: transparent; }
.consent > span { min-width: 0; overflow-wrap: anywhere; }
.contact-form { display: flex; flex-direction: column; min-height: 630px; padding: 44px; border: 1px solid color-mix(in srgb,var(--detail-muted) 50%,transparent); box-shadow:var(--form-panel-shadow); gap: 0; background: var(--paper); }
.contact-form input:not([type='checkbox']),.contact-form textarea { border-bottom-color:var(--detail-muted); }
.contact-form input::placeholder,.contact-form textarea::placeholder { color:var(--form-field-muted); }
.contact-form h3 { max-width: 445px; font: 400 29px/1.05 var(--heading); margin: 0 0 25px; }
.contact-form label:not(.consent) { margin-bottom: 20px; }
.contact-form label:not(.consent):has(textarea) { margin-bottom: 0; }
.contact-form .button { width: 100%; margin: 35px 0 27px; }
.contact-form .consent { margin: 0; }
.consult-form { width: min(100%,600px); display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.consult-form .button { margin: 30px 0 7px; width: 100%; }
.form-status:empty { display: none; }
.form-status:not(:empty) { margin: 16px 0 0; color: var(--green); font: 400 14px/1.4 var(--body); }
.catalog-consult-form, .horse-book-form { display: grid; gap: 20px; width: 100%; }
.catalog-consult-form .button, .horse-book-form .button { width: 100%; }
.detail-dialog #detail-content > .eyebrow { color: var(--green); margin: 0 56px 20px 0; line-height: 1.4; }
.detail-dialog #detail-content > .eyebrow + h2 { margin-top: 0; }
.detail-dialog .close-button:focus { outline: none; box-shadow: none; }
.detail-dialog .close-button:focus-visible { border-color: var(--green); }

/* Source composition: wide screen. */
@media (min-width: 1101px) {
  .site-header .utility { height: 64px; padding: 12px 0; font: 400 14px/normal var(--body); }
  .site-header .main-nav { height: 100px; padding: 9px 0 12px; }
  .site-header .desktop-nav { font: 400 14px/normal var(--body); gap: 20px; }
  .site-header .brand { gap: 11px; max-width: 419px; }
  .site-header .brand span { font: 700 12px/1.2 var(--body); }
  .site-header .logo { width: 75px; height: 79px; }
  .hero-content { padding-top: 30px; }
  .hero h1 { font: 400 clamp(70px,6.4173vw,123.2117px)/.93 var(--display); letter-spacing: 0; max-width: 1420px; min-height: clamp(130px,11.9792vw,230px); }
  .hero-subtitle { margin-top: 26px; font: 400 clamp(24px,1.78205vw,34.2154px)/1.05 var(--heading); }
  .hero-stage { display: grid; grid-template-columns: minmax(0,1fr) 366px; align-content: start; min-height: 634px; padding-top: 58px; }
  .hero-actions { grid-column: 1; grid-row: 1; gap: 40px; }
  .hero-note { grid-column: 2; grid-row: 1; width: 366px; max-width: 100%; padding: 0; margin: 8px 0 0; font: italic 16px/1.2 var(--heading); }
  .hero-horse { width: 1014px; max-width: 76vw; top: -157px; bottom: auto; right: -130px; }
  .scroll-cue { display: none; }
  .chapter { padding-top: 180px; padding-bottom: 0; }
  .breed-layout { margin-top: 80px; }
  .intro { font: 400 18px/1.2 var(--body); }
  .breed-points { margin-top: 60px; gap: 60px; }
  .breed-points li { gap: 20px; }
  .breed-points h3 { font: 400 24px/1.1 var(--heading); }
  .breed-points p { margin-top: 6px; font: 400 18px/1.2 var(--body); color: var(--green); }
  .breed-photo { padding-bottom: 0; }
  .home-page .breed-photo { padding-bottom: 0; }
  .breed-photo > .full-photo { width: 100%; aspect-ratio: 690/495; object-fit: cover; }
  .home-page .horse-tag { left: -9px; bottom: -21px; width: 300px; min-height: 130px; }
  .horse-tag strong { font: 400 30px/normal var(--handwriting); }
  .section-heading, .reviews-heading { margin-bottom: 80px; }
  .section-heading.two-col { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .heading-aside { width: 433px; max-width: 100%; justify-self: start; font: 400 18px/1.2 var(--body); }
  #achievements .section-heading h2 { width: 818px; max-width: none; }
  #horses .section-heading { grid-template-columns: minmax(0,930px) minmax(0,450px); gap: 30px; }
  #horses .section-heading h2 { max-width: 930px; }
  #horses .catalog-toolbar { margin-bottom: 80px; }
  .archive-caption { padding: 0; }
  .archive-caption p { margin-top: 30px; }
  #achievements .archive-feature .archival > img { width: 100%; height: auto; aspect-ratio: 642/439; object-fit: cover; }
  #achievements .archive-item .archival > img { width: 100%; height: auto; aspect-ratio: 365/243; object-fit: cover; }
  #achievements .archival { position: relative; padding: 24px; }
  #achievements .archival figcaption:not(.tape-label) { display: contents; }
  #achievements .archival figcaption.tape-label { display: block; }
  #achievements .tape-label { position: absolute; left: -15px; top: -15px; width: 258px; min-height: 65px; padding: 3px 0; font: 400 30px/59px var(--handwriting); z-index: 2; }
  #achievements .archival figcaption > span:last-child:not(.tape-label) { position: absolute; bottom: 24px; right: 24px; padding: 8px; color: var(--paper); background: var(--red); }
  .archive-grid { margin-top: 40px; padding-top: 40px; gap: 80px 30px; }
  .archive-item { grid-template-columns: 413px minmax(0,1fr); gap: 20px; }
  #achievements .last-archive { grid-column: 2; }
  #achievements { padding-bottom: 80px; }
  .consultation-layout, .contact-grid, .today-layout { margin-top: 80px; }
  .home-page .home-horses-grid { gap: 30px; padding-block: 0; }
  .home-page .home-horses-grid > .horse-card { flex-basis: calc((100% - 60px) / 3); }
  #trust .trust-grid { grid-template-columns: 450fr 450fr 450fr; gap: 30px; }
  #trust .trust-portrait-frame { width: auto; height: calc(100% + var(--trust-rise,80px)); aspect-ratio: 310/804; }
  #today .place-grid { gap: 30px; align-items: start; }
  #today .place-grid > article > img { height: auto; aspect-ratio: 450/291; object-fit: cover; }
  .contact-grid .contact-form { grid-column: 1; grid-row: 1; }
  .contact-grid .contact-copy { grid-column: 2; grid-row: 1; }
  .catalog-main, .horse-main { padding-top: 30px; }
  .breadcrumbs { font: 400 10px/1 var(--body); min-height: 10px; }
  .catalog-intro { margin-top: 30px; }
  .catalog-intro h1 { font: 400 60px/normal var(--body); letter-spacing: 0; }
  .catalog-intro > p { max-width: 793px; margin-top: 10px; font: 400 18px/1.2 var(--body); }
  .catalog-browser { margin-top: 80px; }
  .catalog-filters { gap: 30px; margin-bottom: 30px; }
  .horse-hero { grid-template-columns: minmax(0,810fr) minmax(0,570fr); gap: 30px; margin-top: 30px; }
  .horse-body { grid-template-columns: minmax(0,840fr) minmax(0,570fr); gap: 30px; margin-top: 80px; }
  .horse-section-nav { padding-block: 0; margin-top: 80px; gap: 40px; border-bottom: 0; }
  .horse-heading h1 { font: 400 60px/normal var(--display); letter-spacing: 0; }
  .horse-heading p { font: 400 18px/1.2 var(--body); margin-top: 10px; }
  .horse-summary { gap: 30px; }
}

.catalog-filters .filter-feedback { font: 400 13px/1.4 var(--body); }
.horse-photo-button { border: 0; padding: 0; aspect-ratio: 1246/829; background: var(--paper); }
.horse-photo-button img { object-fit: cover; width: 100%; height: 100%; }
.horse-photo-button:has(img[data-document='true']) img { object-fit: contain; }
.horse-thumbs button { padding: 0; }
.horse-description p, .document-checks p { color: var(--green); }

/* The same surfaces and inverse footer apply on every page. */
.footer { color: var(--paper); }
.footer h2 { font-family: var(--display); }
.footer::before { background-repeat: no-repeat; background-position: center bottom; }
.footer a:focus-visible, .footer button:focus-visible { outline-color: var(--paper); }

@media (min-width: 1101px) and (max-width: 1599px) {
  :root { --h2: clamp(40px,3.646vw,70px); }
  #achievements .section-heading h2 { width: 100%; max-width: 100%; }
  .archive-item { grid-template-columns: minmax(0,3fr) minmax(0,2fr); }
  .archive-item h3 { font-size: 22px; overflow-wrap: break-word; }
  .hero-stage { grid-template-columns: minmax(0,1fr); }
  .hero-note { grid-column: 1; grid-row: 2; max-width: 260px; margin: 20px 0 0; }
  .hero-horse { max-width: 66vw; right: -160px; top: -100px; }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover, .button.small:hover { color: var(--paper); background: var(--red-deep); border-color: var(--red-deep); transition-duration: var(--duration-enter); }
  .button.outline:hover, #load-more:hover { background: var(--red); color: var(--paper); }
  .text-link:hover, .inline-link:hover, .reset-filters:hover { color: var(--red-deep); }
  .home-page #horses .tabs button:hover, .horse-section-nav a:hover { color: var(--red); border-color: var(--red); background: transparent; }
  .home-page #horses .tabs [aria-selected='true']:hover, .horse-section-nav a[aria-current='location']:hover { color: var(--red-deep); border-color: var(--red-deep); }
  .filter-chip:hover { --chip-border: var(--red); background: var(--catalog-ground); color: var(--red); }
  .filter-chip[aria-pressed='true']:hover { --chip-border: var(--red-deep); background: var(--red-deep); color: var(--paper); }
  .nt-slider-arrow:hover { background: var(--red); color: var(--paper); }
  .nt-slider-arrow:hover::after { background-image: url('../assets/slider-next-hover.svg'); }
  .nt-slider-dots button:hover { background: var(--paper); box-shadow: inset 0 0 0 1px var(--red); }
  .nt-slider-dots button[aria-current='true']:hover { background: var(--red-deep); box-shadow: none; }
  .horse-card:hover { scale:var(--card-growth,1.025); box-shadow:none; }
  .home-page .home-horses-grid,.related-track { padding-block:12px; }
  .horse-card:first-child { transform-origin:left center; }
  .horse-card:last-child { transform-origin:right center; }
  form input:not([type='checkbox']):hover, form textarea:hover { border-color: var(--red); box-shadow: inset 0 -1px 0 var(--red); }
  .consent input[type='checkbox']:hover { border-color: var(--red); background: var(--catalog-ground); color: var(--red); }
  .consent input[type='checkbox']:checked:hover { border-color: transparent; background: var(--catalog-ground) url('../assets/checkbox-checked-hover.svg') center/24px 24px no-repeat; }
  .footer a:hover, .footer button:hover { color: var(--paper); text-decoration: underline; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  :root { --h2: 40px; --section: 96px; --gutter: 32px; --grid-gap: 24px; }
  .home-horses-grid > .horse-card, .related-track > .horse-card { flex-basis: calc((100% - var(--grid-gap)) / 2); }
  .horse-info .pills { gap: 8px; }
}

@media (max-width: 700px) {
  :root { --h2: 26px; --gutter: 20px; --section: 80px; --grid-gap: 20px; }
  body { font: 400 16px/1.2 var(--body); }
  .home-page .wrap { width: min(calc(100% - 40px),var(--content)); }
  .site-header, .home-page .site-header.wrap { width: 100%; padding-inline: 20px; border-bottom: 0; }
  .site-header .main-nav { height: 68px; min-height: 68px; padding: 10px 0; border-bottom: 0; }
  .site-header .brand { width: 230px; max-width: 230px; gap: 6px; }
  .site-header .logo { width: 46px; height: 48px; }
  .site-header .main-nav .brand span { font: 700 12px/1 var(--heading); }
  .site-header .menu-toggle { width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 4px; background: var(--red); }
  .site-header .menu-toggle span { width: 20px; height: 2px; background: var(--paper); }
  .button { min-height: 50px; padding: 15px 24px; font: 500 14px/1.45 var(--heading); }
  .button.small, .utility-actions .button { min-height: 40px; padding: 2px 21px; font: 400 14px/1.45 var(--heading); }
  #load-more { width: auto; min-height: 53px; font-size: 16px; }
  .home-page h2 { font: 400 26px/1.05 var(--heading); letter-spacing: 0; margin-bottom: 0; }
  .home-page h2 em { font: 400 1em/1.05 var(--display); }
  .home-page h2 + *, .home-page .breed-layout, .home-page .consultation-layout, .home-page .today-layout { margin-top: 40px; }
  .home-page .section-heading, .home-page .section-heading.two-col { gap: 40px; margin-bottom: 30px; }
  .home-page .heading-aside { margin-top: 0; }
  .home-page .hero h1 { font: 400 42px/1 var(--display); letter-spacing: 0; }
  .home-page .hero-subtitle { font: 400 16px/1.05 var(--heading); margin-top: 10px; }
  .home-page .hero-note { font-size: 12px; }
  .home-page #horses .tabs { gap: 20px; flex-wrap: wrap; }
  .home-page #horses .tabs button, .horse-section-nav a { flex: 0 0 auto; font-size: 16px; padding: 12px 0; min-height: 43px; }
  .home-page #horses .catalog-toolbar { margin-bottom: 20px; }
  .horse-card, .catalog-card, .home-page .home-horses-grid > .horse-card { height: auto; padding: 0; }
  .home-horses-grid > .horse-card, .related-track > .horse-card { flex-basis: 100%; }
  .horse-image, .home-page .home-horses-grid .horse-image { aspect-ratio: 320/253; }
  .horse-image > img, .home-page .home-horses-grid .horse-image img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .horse-info, .home-page .horse-info { padding: 20px 20px 24px; min-height: 232px; gap: 10px; }
  .horse-info h3, .home-page .horse-info h3 { font: 400 26px/normal var(--display); margin: 0; }
  .horse-info .breed-sex, .home-page .breed-sex { font: 400 14px/normal var(--body); margin: 0; }
  .horse-info p, .home-page .horse-info p { font: 400 14px/1.4 var(--body); }
  .horse-info .pills, .home-page .horse-info .pills { gap: 6px; font-size: 10px; }
  .horse-info .pills > div, .home-page .horse-info .pills > div { padding: 8px 6px; border-radius: 10px; }
  .horse-info .pills dt { font-size: 9px; }
  .horse-info .horse-card-price, .home-page .horse-info .horse-card-price { font: 600 20px/1.3 var(--body); }
  .nt-mobile-dots, .home-page .nt-mobile-dots { display: flex; }
  .nt-desktop-controls, .home-page .nt-desktop-controls { display: none; }
  .home-page .mobile-carousel [data-reveal], .home-page .mobile-carousel .mobile-carousel-slide { transform: none; translate: none; opacity: 1; }
  form input:not([type='checkbox']), form textarea { font-size: 14px; }
  .contact-form, .home-page .contact-form { min-height: 560px; padding: 19px; gap: 0; }
  .contact-form h3, .home-page .contact-form h3 { font: 400 18px/1.05 var(--heading); margin: 0 0 20px; max-width: 280px; }
  .contact-form label:not(.consent) { margin-bottom: 16px; }
  .contact-form label:not(.consent):has(textarea) { margin-bottom: 0; }
  .contact-form .button, .home-page .contact-form .button { margin: 30px 0 16px; padding: 15px 8px; min-height: 50px; }
  .consult-form, .home-page .consult-form { gap: 16px; }
  .consult-form .button, .home-page .consult-form .button { min-height: 50px; margin: 14px 0 0; }
  .consent { font-size: 13px; }
  .home-page #contacts .contact-grid { margin-top: 40px; }
  .home-page #contacts .contact-form, .home-page #contacts .contact-copy { grid-row: auto; grid-column: auto; }
  #today .place-grid > article > img { height: auto; aspect-ratio: 300/194; object-fit: cover; }
  .catalog-main, .horse-main { padding-top: 20px; }
  .breadcrumbs { min-height: 10px; font: 400 10px/1 var(--body); }
  .catalog-intro { margin-top: 20px; }
  .catalog-intro h1 { font: 400 26px/normal var(--body); letter-spacing: 0; }
  .catalog-intro > p { font: 400 16px/1.2 var(--body); margin-top: 20px; }
  .catalog-browser { margin-top: 30px; }
  .catalog-filters { gap: 20px; margin-bottom: 20px; }
  .filter-chip { font-size: 14px; min-height: 37px; padding: 10px; }
  .filter-row { gap: 10px; }
  .filter-label { flex-basis: auto; font: 700 14px/normal var(--body); }
  .horse-hero { margin-top: 20px; gap: 20px; }
  .horse-heading h1 { font: 400 26px/normal var(--display); letter-spacing: 0; }
  .horse-heading p { margin-top: 10px; font: 400 16px/1.2 var(--body); }
  .horse-photo-button { aspect-ratio: 320/236; }
  .horse-photo-button img { object-fit: cover; }
  .horse-section-nav { margin-top: 40px; padding-block: 0; border: 0; gap: 20px; }
  .horse-body { margin-top: 20px; }
  .horse-summary { grid-row: 4; gap: 20px; }
  .horse-purchase { grid-row: 3; }
  .horse-heading .horse-birth-year { display: block; white-space: nowrap; }
  .horse-gallery .horse-thumbs, .horse-gallery .photo-navigation > [data-photo-step] { display: none; }
  .horse-gallery .photo-navigation { justify-content: center; }
  .horse-quick-links > .text-link[href='#about-horse'] { display: none; }
  .horse-related .section-heading { margin-bottom: 40px; }
  .horse-related h2 { font-size: 26px; }
  .photo-navigation { gap: 20px; }
  .footer, .home-page .footer, .catalog-page .footer, .horse-page .footer { --footer-edge: 64px; margin-top: 80px; padding-top: 32px; }
  .footer::before { background-image: linear-gradient(to bottom,transparent, var(--green) 40%),url('../assets/web/09c89.webp'); background-size: auto 100%; mask-image: linear-gradient(transparent,#000 56px); }
  .home-page .footer::before, .catalog-page .footer::before, .horse-page .footer::before { background-image: url('../assets/web/09c89.webp'),linear-gradient(transparent 20%,var(--green) 35%); background-size: auto 100%,100% 100%; background-position: center bottom; mask-image: linear-gradient(transparent,#000 56px); }
  .footer .phone { white-space: nowrap; }
  .footer-booking { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nt-track { scroll-behavior: auto; }
  .hero-line, .hero-subtitle { animation: none !important; }
  .horse-card, .horse-image img, .button, .nt-slider-arrow, .nt-slider-dots button { transition: none; }
  #achievements .archival { translate: none; rotate: none; }
}
