/* Model page additions on top of the imported v5 model CSS (model-78.css): our own looped clips and captions in the
   technology stories, the CTA after the third story, the offer button on stock cards, one expert. Scoped to #top .ymodel. */
#top .ymodel .ymodel-shot{display:grid;gap:10px;margin:0;min-width:0}
#top .ymodel .ymodel-shot video{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:#e9edf1}
#top .ymodel .v5-tech__media--two .ymodel-shot video{aspect-ratio:4/5}
#top .ymodel .ymodel-shot--plan img,#top .ymodel .v5-tech__media--two .ymodel-shot--plan img{object-fit:contain;background:#f4f6f8}
#top .ymodel .ymodel-shot figcaption{color:#595959;font-size:13px;line-height:1.45}
#top .ymodel .v5-tech__copy p+p{margin-top:14px}
#top .ymodel .v5-tech__list+.ymodel-mid,#top .ymodel .ymodel-mid+.v5-tech__list{margin-top:clamp(48px,6vw,96px)}
#top .ymodel .ymodel-mid{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 40px;padding:clamp(28px,3.4vw,48px) clamp(24px,3.4vw,56px);background:#00203e;color:#fff}
#top .ymodel .ymodel-mid p{max-width:34ch;margin:0;color:#fff;font-family:'Source Serif 4',Georgia,serif;font-size:clamp(22px,2vw,30px);font-weight:300;line-height:1.3;text-wrap:balance}
#top .ymodel .ymodel-mid .lot3-order__btn{width:auto;background:#fff;color:#00203e}
#top .ymodel .ymodel-mid .lot3-order__btn:hover{background:#fff}
@media (min-width:768px){
  #top .ymodel .v5-tech__list--flip .v5-tech__item:nth-child(odd){grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
  #top .ymodel .v5-tech__list--flip .v5-tech__item:nth-child(odd) .v5-tech__media{order:2}
  #top .ymodel .v5-tech__list--flip .v5-tech__item:nth-child(even){grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
  #top .ymodel .v5-tech__list--flip .v5-tech__item:nth-child(even) .v5-tech__media{order:0}
}
@media (max-width:767px){
  #top .ymodel .ymodel-mid .lot3-order__btn{width:100%}
}
#top .ymodel .lot3-more__grid li{display:flex;flex-direction:column}
/* the card grows to the row height, so every «Получить предложение» sits on one line whatever the card text (Andrei 26.11) */
#top .ymodel .lot3-more__grid li>a{flex:1 0 auto}
/* model-78.css shows the third stock card as display:block (it hides it in other grids at ≤1000px): keep it a column too */
#top .ymodel.ymodel .lot3-more__grid.v5-stock li:nth-child(3){display:flex}
#top .ymodel .ymodel-offer{align-self:flex-start;margin-top:14px;padding:0 0 4px;border:0;border-bottom:1px solid currentColor;background:none;color:#00203e;font:inherit;font-size:15px;font-weight:500;cursor:pointer}
#top .ymodel .ymodel-offer:hover{color:#e0141e}
#top .ymodel .ymodel-offer:focus-visible{outline:2px solid #141414;outline-offset:4px}
#top .home-experts-list.ymodel-experts--one{grid-template-columns:minmax(0,420px)}
/* a photo with a deck plan under it: the plan keeps its own long shape */
#top .ymodel .ymodel-media--stack .ymodel-shot--plan img{aspect-ratio:auto;padding:12px 16px;box-sizing:border-box}
/* template pages: our own review film plays in the 16:9 frame; one media item takes the full row */
#top .ymodel .ymodel-film video{display:block;width:100%;height:100%;object-fit:cover;background:#00203e}
#top .ymodel .ymodel-media--one .lot3-media__grid{grid-template-columns:minmax(0,1fr);max-width:1040px}

/* «Похожие яхты»: three range cards of /cranchi (their CSS lives inline on that page, copied here) and the link to the
   whole range, before the expert. The range grid (.ymodel-range__grid, .f4-series) is gone from the pages (Andrei 26.11) */
#top .ymodel .ymodel-peers{padding:clamp(56px,6vw,104px) 0 0}
#top .ymodel .ymodel-range{padding-bottom:clamp(56px,6vw,104px)}
#top .ymodel .ymodel-peers .lot3-h2{margin:0 0 clamp(24px,3vw,44px)}
#top .ymodel .f4-series+.f4-series{margin-top:clamp(36px,4vw,64px)}
#top .ymodel .f4-series__head{display:grid;gap:8px;margin-bottom:clamp(16px,2vw,28px)}
#top .ymodel .f4-series__head h3{margin:0;color:#141414;font-size:clamp(24px,2.2vw,34px);font-weight:300;letter-spacing:-.02em;line-height:1.1}
#top .ymodel .f4-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(32px,3.4vw,56px) clamp(20px,2.4vw,40px);margin:0;padding:0;list-style:none}
#top .ymodel .ymodel-range__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(24px,2.6vw,40px) clamp(16px,2vw,32px)}
#top .ymodel .f4-card{position:relative;min-width:0;margin:0;list-style:none}
#top .ymodel .f4-card>a{display:block;color:#141414;text-decoration:none}
#top .ymodel .f4-card figure{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:2/1;margin:0;overflow:hidden;background:transparent}
#top .ymodel .f4-card figure img.f4-boat{display:block;width:92%;height:auto;max-height:90%;object-fit:contain;background:none;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
#top .ymodel .f4-card>a:hover img.f4-boat{transform:scale(1.035)}
#top .ymodel .f4-new{position:absolute;top:10px;left:10px;padding:4px 9px;color:#fff;background:#00203e;font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase}
#top .ymodel .f4-medal,#top .ymodel .f4-card figure img.f4-award,#top .ymodel .f4-award{position:absolute;top:8px;right:8px;width:clamp(38px,3vw,52px);height:auto;filter:drop-shadow(0 2px 6px rgba(0,0,0,.18));pointer-events:none}
#top .ymodel .f4-cap{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-top:clamp(8px,1vw,14px);padding-top:14px;border-top:1px solid rgba(20,20,20,.22)}
#top .ymodel .f4-cap>div{min-width:0}
#top .ymodel .f4-card h4{margin:0 0 4px;color:#141414;font-size:clamp(18px,1.4vw,24px);font-weight:400;letter-spacing:-.01em;line-height:1.15}
#top .ymodel .f4-line{margin:0;color:#141414;font-size:15px;line-height:1.4}
#top .ymodel .f4-len{display:grid;gap:2px;flex:none;margin:0;color:#141414;font-size:14px;line-height:1.4;text-align:right}
#top .ymodel .f4-len span{font-size:12px;opacity:.7}
#top .ymodel .f4-len b{font-weight:500}
#top .ymodel .ymodel-range .f4-card h4{font-size:clamp(16px,1.2vw,20px)}
#top .ymodel .ymodel-range .f4-line{font-size:14px}
#top .ymodel .ymodel-range__all{display:flex;flex-wrap:wrap;gap:12px 32px;margin:clamp(32px,3.6vw,56px) 0 0}
@media (max-width:1023px){
  #top .ymodel .f4-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #top .ymodel .ymodel-range__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:767px){
  #top .ymodel .f4-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  #top .ymodel .ymodel-range__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
  #top .ymodel .ymodel-range .f4-cap{flex-direction:column;gap:4px;padding-top:10px}
  #top .ymodel .ymodel-range .f4-len{text-align:left}
  #top .ymodel .ymodel-range .f4-line{display:none}
}
@media (prefers-reduced-motion:reduce){#top .ymodel .f4-card figure img.f4-boat{transition:none}#top .ymodel .f4-card>a:hover img.f4-boat{transform:none}}

/* FAQ: the very last block, after the lead form and before the footer; a plain accordion of <details> */
#top .ymodel-faq{padding:clamp(56px,6vw,104px) 0;background:#fff}
#top .ymodel-faq h2{max-width:22ch;margin:0 0 clamp(24px,3vw,44px);color:#141414;font-family:inherit;font-size:clamp(30px,3vw,48px);font-weight:300;letter-spacing:-.02em;line-height:1.1}
#top .ymodel-faq__list{max-width:960px;border-top:1px solid rgba(20,20,20,.22)}
#top .ymodel-faq__item{border-bottom:1px solid rgba(20,20,20,.22)}
#top .ymodel-faq__item summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;color:#141414;font-size:clamp(17px,1.3vw,20px);font-weight:400;line-height:1.4;list-style:none;cursor:pointer}
#top .ymodel-faq__item summary::-webkit-details-marker{display:none}
#top .ymodel-faq__item summary:hover{color:#00203e}
#top .ymodel-faq__item summary:focus-visible{outline:2px solid #141414;outline-offset:4px}
#top .ymodel-faq__icon{flex:none;width:20px;height:20px;color:#00203e;transition:transform .25s ease}
#top .ymodel-faq__item[open] .ymodel-faq__icon{transform:rotate(45deg)}
#top .ymodel-faq__item p{max-width:72ch;margin:0;padding:0 44px 24px 0;color:#3d3d3d;font-size:16px;line-height:1.6}
@media (max-width:767px){#top .ymodel-faq__item p{padding-right:0}}
@media (prefers-reduced-motion:reduce){#top .ymodel-faq__icon{transition:none}}

/* «Цвета и отделка» (78): hull colours as swatches with one coloured hull picture, Christian Grande, the décors */
#top .ymodel .ymodel-finish{padding:clamp(56px,6vw,104px) 0;background:#f4f6f8}
#top .ymodel .ymodel-finish .lot3-h2{margin:0 0 clamp(28px,3.4vw,56px)}
#top .ymodel .ymodel-finish h3{margin:0 0 12px;color:#141414;font-size:clamp(22px,1.8vw,30px);font-weight:300;letter-spacing:-.01em;line-height:1.2}
#top .ymodel .ymodel-finish p{margin:0;color:#3d3d3d;font-size:16px;line-height:1.6}
#top .ymodel .ymodel-finish p+p{margin-top:12px}
#top .ymodel .ymodel-paint{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,4vw,72px);align-items:center}
#top .ymodel .ymodel-paint__list{display:grid;gap:14px;margin:24px 0 0;padding:0;list-style:none}
#top .ymodel .ymodel-paint__list li{display:flex;align-items:center;gap:14px;color:#141414;font-size:16px}
#top .ymodel .ymodel-paint__list small{margin-left:6px;color:#595959;font-size:13px}
#top .ymodel .ymodel-paint__dot{flex:none;width:28px;height:28px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(20,20,20,.25)}
#top .ymodel .ymodel-paint__pic{display:grid;gap:10px;margin:0}
#top .ymodel .ymodel-paint__pic img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
#top .ymodel .ymodel-paint__pic figcaption{color:#595959;font-size:13px}
#top .ymodel .ymodel-grande{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(24px,4vw,72px);align-items:center;margin-top:clamp(48px,6vw,96px)}
#top .ymodel .ymodel-grande figure{margin:0}
#top .ymodel .ymodel-grande img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
#top .ymodel .ymodel-grande .v5-tech__tag{display:inline-block;margin-bottom:10px}
#top .ymodel .ymodel-decor{margin-top:clamp(48px,6vw,96px)}
#top .ymodel .ymodel-decor__tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
#top .ymodel .ymodel-decor__tabs button{min-height:44px;padding:0 18px;border:1px solid rgba(20,20,20,.3);background:transparent;color:#141414;font:inherit;font-size:15px;cursor:pointer}
#top .ymodel .ymodel-decor__tabs button[aria-selected="true"]{border-color:#00203e;background:#00203e;color:#fff}
#top .ymodel .ymodel-decor__tabs button:focus-visible,#top .ymodel .ymodel-decor__arrow:focus-visible{outline:2px solid #141414;outline-offset:3px}
#top .ymodel .ymodel-decor__panel{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(24px,4vw,72px);align-items:start}
#top .ymodel .ymodel-decor__panel[hidden]{display:none}
#top .ymodel .ymodel-decor__text strong{display:block;margin-bottom:10px;color:#141414;font-size:20px;font-weight:500}
#top .ymodel .ymodel-decor__count{display:block;margin-top:18px;color:#595959;font-size:13px;letter-spacing:.08em}
#top .ymodel .ymodel-decor__slider{position:relative;min-width:0}
#top .ymodel .ymodel-decor__track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#top .ymodel .ymodel-decor__track::-webkit-scrollbar{display:none}
#top .ymodel .ymodel-decor__track figure{flex:0 0 100%;margin:0;scroll-snap-align:start}
#top .ymodel .ymodel-decor__track img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
#top .ymodel .ymodel-decor__arrow{position:absolute;top:50%;display:grid;place-items:center;width:44px;height:44px;margin-top:-22px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#00203e;cursor:pointer}
#top .ymodel .ymodel-decor__arrow svg{width:22px;height:22px}
#top .ymodel .ymodel-decor__arrow--prev{left:12px}
#top .ymodel .ymodel-decor__arrow--next{right:12px}
#top .ymodel .ymodel-decor__arrow[disabled]{opacity:.35;cursor:default}
@media (max-width:767px){
  #top .ymodel .ymodel-paint,#top .ymodel .ymodel-grande,#top .ymodel .ymodel-decor__panel{grid-template-columns:minmax(0,1fr)}
  #top .ymodel .ymodel-grande img{aspect-ratio:1/1}
  #top .ymodel .ymodel-decor__tabs{flex-wrap:nowrap;overflow-x:auto;margin-right:-16px;padding-right:16px}
  #top .ymodel .ymodel-decor__tabs button{flex:none}
}
/* the 78 first screen: one button, the presentation (our deck) */
#top .ymodel .yacht-hero-actions--build{margin-top:24px}
/* the expert block right after the range: the etalon zeroes #contact's top padding because on the lot the section
   above it is grey too (lot3-route); here the range above is light, so the grey block gets its own top padding back */
#top .ymodel .ymodel-peers + #contact.lot3-expert{padding-top:clamp(72px,9vw,140px)}
