/* Site shell rules shared by every page (V5-STANDARD.md). Page CSS files come from the v5 sandbox as they are. */
html,body{margin:0;background:#fff}
/* WhatsApp float steps aside while the lead form is on screen; home v5 did not have it yet («добавить скрытие») */
.yfg-wa-float,.yacht-whatsapp-float{transition:opacity .25s ease,visibility .25s ease}
html.v5-form-on .yfg-wa-float,html.v5-form-on .yacht-whatsapp-float{opacity:0;visibility:hidden;pointer-events:none}
/* dealer line in the header: the divider and «Официальный дилер / CRANCHI YACHTS» sit on the logo wordmark, not on the
   middle of the whole logo (the swoosh above made them look high; Andrei 2026-11-23) */
.v5-brandline .v5-dealer{transform:translateY(7px)}
@media(max-width:760px){.v5-brandline .v5-dealer{transform:translateY(5px)}}
/* 375-400 px phones: logo + dealer line + RU/EN + menu were 404 px wide and the menu button hung 17 px past the edge;
   narrower language buttons (tap height stays 44 px) and tighter gaps keep the row inside the screen */
@media(max-width:400px){.home-header .home-header-right{gap:6px}.home-header .v5-brandline{gap:8px}.home-header .v5-brandline .v5-dealer{padding-left:8px;letter-spacing:.05em}.home-header .home-header-right .home-languages button{min-width:34px;padding-inline:6px}}
/* Dictionary languages (kk, uz, az, ka, hy, tg, tk) have words longer than a 390 px phone line at heading size
   ("ճանապարհորդությունների" at 46.8 px): headings may break inside a word instead of pushing the page sideways */
html:is([lang="kk"],[lang="uz"],[lang="az"],[lang="ka"],[lang="hy"],[lang="tg"],[lang="tk"]) :is(h1,h2,h3,h4){overflow-wrap:break-word;hyphens:auto}
html:is([lang="hy"],[lang="kk"],[lang="uz"],[lang="tk"]) #top .m78 .lot3-tg__win{font-size:12px;letter-spacing:.04em}
/* country hero H1 of the dictionary languages: 12ch at 100 px split «Թուրքմենստա|նում» mid-word (audit 29.11 P2-1);
   the line takes the column and the size steps down so the longest word fits whole */
html:is([lang="kk"],[lang="uz"],[lang="az"],[lang="ka"],[lang="hy"],[lang="tg"],[lang="tk"]) .yfg-brand .brand-hero h1{max-width:none;font-size:clamp(32px,5.2vw,88px)}
/* hy deck plans H2: «տախտակամածների» is wider than a 390 px line at heading size (audit 29.11 P2-2) */
@media(max-width:420px){html[lang="hy"] h2#layouts-title{font-size:26px!important}}
/* the WhatsApp float sits inside the footer: «.yfg-home .yacht-footer a:hover{color:#fff}» outweighed its own hover and
   left white text on the white hover background, an empty white box (Andrei 29.11 screenshot) */
body .yfg-home a.yfg-wa-float:hover,body .yfg-home a.yacht-whatsapp-float:hover,body .yfg-home a.yfg-wa-float:focus-visible,body .yfg-home a.yacht-whatsapp-float:focus-visible{background:#fff;color:#00203e}
/* 3D tour / video frame on a phone: a long caption (uz «Yaxtani 3D formatda aylanib chiqish») wraps to two lines and ran
   into the round badge in the middle (audit 29.11 P2-3); the badge gets smaller and sits higher, the caption a size down */
@media(max-width:560px){html[lang="uz"] #top .m78 .lot3-tour__badge{top:42%;width:64px;font-size:16px}html[lang="uz"] #top .m78 .lot3-tour__go{font-size:15px;gap:10px}}
/* WhatsApp float: a round green WhatsApp button instead of the navy «WhatsApp» bar, as the Tilda widget was
   (Andrei 29.11: smaller, takes less of the screen). No backdrop-filter on anything fixed: on iPhone (WebKit) a blurred
   fixed bar over a long page left whole screens of the footer unpainted, navy with only the float (Andrei 29.11, iPhone
   Chrome); the backgrounds behind are opaque, so the blur did nothing visible. Hover only where a mouse hovers: on a
   phone a tap left the hover colours stuck. */
#top a.yfg-wa-float.yacht-whatsapp-float{place-items:center;grid-template-columns:none!important;gap:0!important;width:58px;height:58px;min-height:0!important;padding:0!important;right:max(16px,env(safe-area-inset-right,0px))!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;border:0!important;border-radius:50%!important;color:#fff!important;background:#25d366!important;box-shadow:0 6px 20px rgba(0,32,62,.28)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;transform:none}
#top a.yfg-wa-float.yacht-whatsapp-float svg{width:30px!important;height:30px!important;fill:currentColor}
#top a.yfg-wa-float.yacht-whatsapp-float>span{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#top a.yfg-wa-float.yacht-whatsapp-float:hover,#top a.yfg-wa-float.yacht-whatsapp-float:focus-visible{color:#fff!important;background:#25d366!important}
@media(hover:hover){#top a.yfg-wa-float.yacht-whatsapp-float:hover{background:#1ebe5b!important;transform:translateY(-2px)}}
#top a.yfg-wa-float.yacht-whatsapp-float:focus-visible{outline:2px solid #fff;outline-offset:3px;box-shadow:0 0 0 5px #00203e!important}
@media(max-width:760px){#top a.yfg-wa-float.yacht-whatsapp-float{width:54px;height:54px}#top a.yfg-wa-float.yacht-whatsapp-float svg{width:28px!important;height:28px!important}}
.yfg-uh,.home-header,#top .m78 .lot3-mbar{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.yfg-uh,.home-header{background-color:#00203e!important}
#top .m78 .lot3-mbar{background-color:#f6f7f4!important}
/* sticky section bars stay on screen almost to the footer: no blur there either (REVIEW-14 P2-1), opaque instead */
#top .m78 .yacht-v2-subnav,.yfg-brand .brand-nav{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background-color:#f6f7f4!important}
/* WhatsApp float = the company AI bot on every page (Andrei 2026-11-29, icon v4 of job 2026-11-29_wa-ai-logo): the WhatsApp
   glyph stays untouched, a small «AI» label sits under the circle; the white rim keeps it visible on the navy footer */
#top a.yfg-wa-float.yacht-whatsapp-float{overflow:visible;bottom:calc(30px + env(safe-area-inset-bottom,0px))!important;transition:opacity .25s ease,visibility .25s ease,bottom .35s ease}
#top a.yfg-wa-float.yacht-whatsapp-float>.yfg-wa-ai{position:absolute;top:calc(100% - 6px);left:50%;transform:translateX(-50%);display:block;height:17px;padding:0 8px;border:1.5px solid #fff;border-radius:9px;box-sizing:border-box;color:#fff;background:#00203e;font:700 10px/14px Montserrat,"Wix Madefor Text",Arial,sans-serif;letter-spacing:.08em;white-space:nowrap;pointer-events:none}
/* phone: model and lot pages keep the bottom bar (name, price, form button); the float rides above it instead of hiding */
@media(max-width:760px){html:has(.lot3-mbar.is-on) #top a.yfg-wa-float.yacht-whatsapp-float{bottom:calc(65px + 26px + env(safe-area-inset-bottom,0px))!important}}
@media(prefers-reduced-motion:reduce){#top a.yfg-wa-float.yacht-whatsapp-float{transition:opacity .25s ease,visibility .25s ease}}
/* desktop: the float no longer covers the end of the «©» line (REVIEW-14 P3-3) */
@media(min-width:761px){#top .yacht-footer-bottom{padding-right:84px}}
