:root{--gallery-ratio:1246/829;--viewing-bar-height:80px;--control-radius:4px}
/* Portrait crop from the source frame, shared by consultant cards. */
.expert-portrait{display:block;position:relative;flex:0 0 var(--expert-portrait-size,100px);width:var(--expert-portrait-size,100px);height:var(--expert-portrait-size,100px);overflow:hidden;border-radius:50%}
.catalog-expert .expert-portrait .expert-avatar{position:absolute;left:-65%;top:-22.22%;width:230%;height:230%;max-width:none;aspect-ratio:1;border-radius:0;object-fit:cover}
.horse-aside .expert-portrait{--expert-portrait-size:80px}
.horse-photo-button{aspect-ratio:var(--gallery-ratio);background:var(--paper-card);overflow:hidden}
.horse-photo-button img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:contain;object-position:center;view-transition-name:none}
.horse-thumbs{max-height:640px;overflow-y:auto;overscroll-behavior:contain}
.horse-thumbs button{flex-shrink:0}
.horse-thumbs img{aspect-ratio:88/64;object-fit:cover}
.horse-thumbs .pedigree-thumbnail img{object-fit:contain}
.pedigree-thumbnail span{display:block;font-size:10px;line-height:1.3;padding-top:6px}
.horse-quick-links{display:grid;justify-content:start;gap:16px}
.passport-available{display:flex;align-items:center;gap:8px;font-size:16px;line-height:1.4;margin:0}
.passport-available img{width:28px;height:28px;object-fit:contain}
.passport-available strong{font-weight:600}
.pedigree-link{font-size:16px}
.pedigree-link img{width:22px;height:29px}
.related-track{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom}
.related-track>.horse-card{height:auto;flex:0 0 calc((100% - 64px)/3)}
.horse-section-nav{top:88px}
.mobile-viewing-bar{display:none}
.catalog-expert .expert-tenure{color:var(--red)}
.catalog-help{background:var(--banner-ground,#eee6d8);min-height:520px;overflow:hidden}
.catalog-help-final{background:var(--banner-ground,#eee6d8);min-height:520px;overflow:hidden}
.help-landscape{position:absolute;bottom:0;left:0;width:100%;display:grid;pointer-events:none;z-index:-1}
.help-landscape img{grid-area:1/1;width:100%;height:auto;max-width:none}
.catalog-help .help-copy{max-width:600px}
.catalog-help .catalog-expert{align-self:start}
.catalog-channels button{border-radius:var(--control-radius)}
.help-landscape img:first-child{mask-image:linear-gradient(90deg,transparent,#000 65%)}
.catalog-consult-form label{display:grid;gap:8px;min-width:0}
.horse-book-form label{display:grid;gap:8px;min-width:0}
.catalog-consult-form input:not([type=checkbox]){display:block;width:100%;max-width:100%;min-width:0}
.catalog-consult-form textarea{display:block;width:100%;max-width:100%;min-width:0}
.horse-book-form input:not([type=checkbox]){display:block;width:100%;max-width:100%;min-width:0}
.horse-book-form textarea{display:block;width:100%;max-width:100%;min-width:0}
.catalog-consult-form .consent{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start}
.horse-book-form .consent{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start}
.catalog-consult-form input[type=checkbox]{width:20px;margin:2px 0 0}
.horse-book-form input[type=checkbox]{width:20px;margin:2px 0 0}
.catalog-consult-form .consent span{min-width:0;overflow-wrap:anywhere}
.horse-book-form .consent span{min-width:0;overflow-wrap:anywhere}
.catalog-consult-form .button{width:100%;white-space:normal}
.horse-book-form .button{width:100%;white-space:normal}
.detail-dialog{width:min(880px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.detail-dialog .lightbox-photo{display:block;max-width:100%;width:auto;max-height:70dvh;height:auto;object-fit:contain;margin-inline:auto}
@media(max-width:1100px) and (min-width:701px){
.related-track>.horse-card{flex-basis:calc((100% - 32px)/2)}
.horse-section-nav{top:80px}
}
@media(max-width:700px){
.horse-page{padding-bottom:calc(var(--viewing-bar-height) + env(safe-area-inset-bottom))}
.horse-page .main-nav{padding-block:10px;min-height:69px}
.catalog-page .main-nav{padding-block:10px;min-height:69px}
.horse-page .main-nav .brand{width:230px;gap:6px}
.catalog-page .main-nav .brand{width:230px;gap:6px}
.horse-page .main-nav .logo{width:46px;height:48px}
.catalog-page .main-nav .logo{width:46px;height:48px}
.horse-page .main-nav .brand span{font-size:12px;line-height:1;font-weight:700}
.catalog-page .main-nav .brand span{font-size:12px;line-height:1;font-weight:700}
.horse-page .menu-toggle{width:40px;height:40px}
.catalog-page .menu-toggle{width:40px;height:40px}
.horse-hero{gap:20px;margin-top:20px}
.horse-heading h1{font-size:30px;line-height:1}
.horse-heading p{font-size:16px;margin-top:12px;max-width:none}
.horse-gallery{gap:12px}
.horse-thumbs{display:flex;overflow-x:auto;overflow-y:hidden;max-height:none;gap:8px;scrollbar-width:thin}
.horse-thumbs button{width:64px;flex:0 0 64px}
.horse-thumbs img{aspect-ratio:64/48}
.horse-photo-button{aspect-ratio:320/253}
.horse-photo-button img{object-fit:contain}
.photo-navigation{margin-top:8px}
.horse-purchase{grid-row:3;padding:16px;display:block}
.horse-purchase dl{display:flex;align-items:center;justify-content:space-between;gap:16px}
.horse-purchase dd{font-size:30px}
.horse-purchase>.button{display:none}
.horse-summary{grid-row:4;gap:20px}
.horse-facts{grid-template-columns:1fr 1fr;gap:12px}
.horse-facts>div{padding:12px 10px}
.horse-facts dd{font-size:15px}
.horse-additional{gap:16px}
.horse-quick-links{gap:16px}
.horse-section-nav{position:static;margin-top:32px;gap:24px;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.horse-section-nav a{flex-shrink:0}
.horse-body{margin-top:24px}
.horse-article{gap:40px}
.horse-description h2{font-size:20px}
.horse-description p{font-size:16px;line-height:1.5}
.specifications>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.specifications dt{font-size:14px}
.specifications dd{font-size:14px}
.horse-aside{display:none}
.related-track{gap:20px}
.related-track>.horse-card{flex-basis:100%}
.horse-related .section-heading{flex-wrap:wrap;align-items:start}
.horse-related h2{font-size:28px}
.horse-related .related-controls{margin-left:auto}
.mobile-viewing-bar{display:block;position:fixed;bottom:0;left:0;right:0;z-index:65;background:var(--paper);padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.mobile-viewing-bar .button{width:100%}
body:has(dialog[open]) .mobile-viewing-bar{visibility:hidden}
.catalog-help{min-height:650px;padding:24px 20px;grid-template-columns:minmax(0,1fr);gap:20px;align-content:start;isolation:isolate}
.catalog-help-final{min-height:650px;padding:24px 20px;grid-template-columns:minmax(0,1fr);gap:20px;align-content:start;isolation:isolate}
.catalog-help .help-copy{display:contents}
.catalog-help .help-copy h2{grid-row:1;font-size:28px;line-height:1.05;margin:0}
.catalog-help .help-copy h2 em{font-size:1em}
.catalog-help .help-copy>p{grid-row:2;margin:0;font-size:16px;line-height:1.4}
.catalog-help .catalog-expert{grid-row:3;max-width:100%;width:100%;padding:12px;gap:10px;flex-direction:row}
.catalog-help .catalog-expert .expert-avatar{width:64px;flex:0 0 64px}
.catalog-help .catalog-expert strong{font-size:16px}
.catalog-help .catalog-expert p{font-size:12px}
.catalog-help .help-actions{grid-row:4;display:flex;flex-wrap:wrap;margin:0;gap:12px}
.catalog-help .help-actions .button{width:100%}
.catalog-help .catalog-channels img{width:40px;height:40px}
.catalog-help .catalog-channels button{width:40px;height:40px}
.catalog-help .help-landscape{width:700px;left:50%;translate:-50% 0}
.catalog-help-final{min-height:600px}
.catalog-help-final .help-landscape{width:986px}
.catalog-closing{margin-top:80px}
.catalog-help-final .help-copy>p{font-size:18px}
.detail-dialog{padding:40px 20px 24px}
.detail-dialog h2{font-size:26px;line-height:1.15;margin-bottom:24px}
.horse-book-form{width:100%;gap:20px}
.catalog-consult-form{width:100%;gap:20px}
.horse-book-form label{font-size:14px}
.catalog-consult-form label{font-size:14px}

}
@media(max-width:700px){
.catalog-help:not(.catalog-help-final){min-height:0;padding-bottom:300px}
.catalog-help .help-copy h2{font-size:clamp(22px,6.6vw,28px)}
.catalog-help .help-copy h2 em{display:block}
.help-landscape img:first-child{mask-image:linear-gradient(transparent,#000 35%)}
.catalog-help .catalog-expert{align-items:center}
.catalog-help .expert-tenure{font-size:11px}
}
:is(.catalog-page,.horse-page) .footer-mobile-heading{display:none}
:is(.catalog-page,.horse-page) .footer-booking>.button{display:none}
:is(.catalog-page,.horse-page) .footer-booking{display:flex;gap:16px;align-items:center}
:is(.catalog-page,.horse-page) .footer-socials{display:flex;gap:16px;align-items:center}
:is(.catalog-page,.horse-page) .footer-mail{display:block}
@media(max-width:700px){
:is(.catalog-page,.horse-page) .footer{margin-top:80px;padding-top:32px;--footer-edge:0px;color:var(--paper)}
:is(.catalog-page,.horse-page) .footer::before{background-image:url('assets/web/e9062.webp');background-size:1920px 100%;background-position:left bottom}
:is(.catalog-page,.horse-page) .footer-grid{display:flex;flex-direction:column;gap:30px;padding:0 0 24px}
:is(.catalog-page,.horse-page) .footer h2{font:400 20px/.93 var(--display);text-transform:uppercase;line-height:1.05;margin-bottom:20px;white-space:normal;max-width:260px}
:is(.catalog-page,.horse-page) .footer h2 br{display:block}
:is(.catalog-page,.horse-page) .footer .brand{width:230px;max-width:230px;gap:6px}
:is(.catalog-page,.horse-page) .footer .brand .logo{width:46px;height:48px}
:is(.catalog-page,.horse-page) .footer .brand span{font:700 12px/1 var(--body)}
:is(.catalog-page,.horse-page) .footer-grid>div:first-child>.button{display:none}
:is(.catalog-page,.horse-page) .footer nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-flow:column;grid-template-rows:repeat(4,auto);gap:20px;font:400 14px/17px 'Inter',sans-serif}
:is(.catalog-page,.horse-page) .footer-mobile-heading{display:block;grid-column:1/-1;grid-row:1;font:600 20px/1.05 'Inter',sans-serif}
:is(.catalog-page,.horse-page) .footer-contact{display:flex;gap:10px;align-items:start;font-size:14px}
:is(.catalog-page,.horse-page) .footer-contact>span{font-size:14px;line-height:20px}
:is(.catalog-page,.horse-page) .footer-contact>span br{display:none}
:is(.catalog-page,.horse-page) .footer .phone{font:700 24px/1 var(--body);margin:0}
:is(.catalog-page,.horse-page) .footer-mail{display:block;font-size:14px;overflow-wrap:anywhere}
:is(.catalog-page,.horse-page) .footer-booking{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-block:6px 20px}
:is(.catalog-page,.horse-page) .footer-booking>.button{margin:0;flex:0 0 194px}
:is(.catalog-page,.horse-page) .footer-socials{display:flex;align-items:center;gap:10px}
:is(.catalog-page,.horse-page) .footer-socials img:first-child{width:74px;height:auto}
:is(.catalog-page,.horse-page) .footer-socials img:last-child{width:26px;height:26px}
:is(.catalog-page,.horse-page) .footer-contact>p{font-size:12px;line-height:14px;margin:0;width:100%}
:is(.catalog-page,.horse-page) .footer-contact>a:last-child{font-size:12px;line-height:16px;margin-top:6px}
:is(.catalog-page,.horse-page) .footer-bottom{border-color:color-mix(in srgb,var(--green) 40.0%,transparent);font-size:11px;gap:12px;padding-block:16px}
:is(.catalog-page,.horse-page) .footer nav{justify-items:start;text-align:left;width:100%}
:is(.catalog-page,.horse-page) .footer-booking>.button{display:inline-flex}
:is(.catalog-page,.horse-page) .footer-socials .avito-link img{width:74px;height:auto}
:is(.catalog-page,.horse-page) .footer-socials a img{width:26px;height:26px}

}

/* Final consultation composition: one aligned scene, never duplicated backgrounds. */
.catalog-help .catalog-expert .expert-portrait .expert-avatar{width:230%;height:230%;max-width:none}
.catalog-help,.catalog-help-final{background-image:none;min-height:438px;padding:60px;grid-template-columns:minmax(0,1fr) 420px;gap:30px;align-items:center;overflow:clip}
.catalog-help .catalog-expert{grid-column:2;align-self:start;padding:20px;max-width:420px;box-shadow:none;gap:10px}
.catalog-help .help-copy{grid-column:1;max-width:689px}
.catalog-help .help-copy h2{text-box-trim:trim-both;text-box-edge:cap alphabetic}
.catalog-help-final .help-copy h2{font:400 70px/1.05 var(--heading);letter-spacing:0;text-box-trim:trim-both;text-box-edge:cap alphabetic}
.catalog-help-final .help-copy h2 em{font:400 1em/1.05 var(--display)}
.catalog-help-final .help-copy>p{font:400 29px/1.2 var(--heading);max-width:471px;margin-top:30px}
.catalog-help .help-actions{margin-top:40px;gap:30px}
.catalog-help .help-landscape{top:-45px;bottom:auto;left:0;translate:none;width:1487px;height:585px}
.catalog-help .help-landscape img{width:100%;height:auto;grid-area:1/1}
.catalog-help .help-landscape img:first-child{mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.09) 43%,#000 85%)}
.catalog-help:not(.catalog-help-final) .help-landscape img:first-child{mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.09) 30%,#000 48%)}
@media(min-width:1101px){
.catalog-help:not(.catalog-help-final) .help-copy{max-width:599px}
.catalog-help:not(.catalog-help-final) .help-copy>p{max-width:471px}
.catalog-help:not(.catalog-help-final) .help-landscape{width:1460px;height:637px;left:-24px;top:auto;bottom:-72px}
}
@media(min-width:701px) and (max-width:1100px){
 .catalog-help,.catalog-help-final{padding:32px;grid-template-columns:minmax(0,1fr) 300px}
 .catalog-help .catalog-expert{flex-direction:row;padding:16px;--expert-portrait-size:64px}
 .catalog-help-final .help-copy h2{font-size:40px}
 .catalog-help-final .help-copy>p{font-size:22px}
 .catalog-help .help-actions{gap:16px}
}
@media(max-width:700px){
 .catalog-closing{margin-inline:-20px}
 .catalog-help,.catalog-help-final{display:grid;grid-template-columns:minmax(0,1fr);padding:20px 20px 0;min-height:0;gap:16px;align-content:start}
 .catalog-help .help-copy{display:contents}
 .catalog-help .help-copy h2{grid-row:1;font:400 26px/1.05 var(--heading);margin:0;max-width:100%}
 .catalog-help .help-copy h2 em{display:inline;font:400 1em/1.05 var(--display)}
 .catalog-help .help-copy h2 br{display:none}
 .catalog-help .help-copy h2 br.horse-title-break{display:block}
 .catalog-help .help-copy>p{grid-row:2;margin:0;font:400 16px/1.2 var(--heading);max-width:100%}
 .catalog-help .catalog-expert{grid-column:1;grid-row:3;justify-self:stretch;width:100%;max-width:none;padding:10px;gap:10px;--expert-portrait-size:90px;flex-direction:row;align-items:center}
 .catalog-help .catalog-expert .expert-now{font-size:10px;line-height:1.45;gap:6px}
 .catalog-help .catalog-expert strong{font:600 16px/1 var(--body);margin-top:8px}
 .catalog-help .catalog-expert p{font-size:10px;line-height:1.2;margin-top:4px}
 .catalog-help .catalog-expert .expert-tenure{font-size:10px;color:var(--green)}
 .catalog-help .help-actions{grid-row:4;display:flex;flex-direction:column;align-items:start;gap:16px;margin:0}
 .catalog-help .help-actions .button{width:100%;min-height:50px;padding:15px 8px;font-size:14px}
 .catalog-help .catalog-channels button,.catalog-help .catalog-channels img{width:50px;height:50px}
 .catalog-help .help-landscape{position:relative;grid-column:1;grid-row:5;width:calc(100% + 40px);height:248px;left:auto;top:auto;bottom:auto;margin-inline:-20px;margin-top:-16px;overflow:visible;translate:none}
 .catalog-help .help-landscape img{position:absolute;top:-80px;left:calc(50% - 514px);width:986px;height:auto;max-width:none}
 .catalog-help .help-landscape img:first-child{mask-image:linear-gradient(transparent,#000 70%)}
 .catalog-help:not(.catalog-help-final){padding-bottom:0}
 .catalog-help:not(.catalog-help-final) .help-landscape{height:300px}
 .catalog-help:not(.catalog-help-final) .help-landscape img:first-child{mask-image:linear-gradient(transparent,#000 70%)}
 .catalog-help:not(.catalog-help-final) .help-landscape img{width:820px;left:calc(50% - 410px);top:-32px}
}

