/* v1 home «Avia Concept 1.1» (08-Travel 3393:29640 / 3350:29129). Figma is dark; light keeps the layout on Coin tokens. */
.h1{--h1-tint:var(--primitive-colors-primary-electric-blue-c100);--h1-tint-sub:var(--theme-text-accent);--h1-tint-title:var(--theme-text-primary);--h1-inner:var(--theme-bg-island);--h1-city-stroke:#92c8ff;background:var(--theme-bg-ocean)}
[data-theme="dark"] .h1{--h1-tint:#192e46;--h1-tint-sub:#5ca8ff;--h1-tint-title:var(--theme-text-always-white);--h1-inner:var(--theme-bg-ocean)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .h1{--h1-tint:#192e46;--h1-tint-sub:#5ca8ff;--h1-tint-title:var(--theme-text-always-white);--h1-inner:var(--theme-bg-ocean)}}
.h1 .av-icon{flex:none}
/* Zero-specificity reset, so every class rule below (tab and row paddings…) still applies. */
:where(.h1 button){font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer;text-align:left}

/* Navbar: back, «Click Travel», support */
.h1-head{flex:none;display:flex;align-items:center;height:48px;margin-top:34px;padding:0 8px}
.h1-head h1{flex:1;margin:0;text-align:center;font-size:17px;line-height:22px;font-weight:600;color:var(--theme-text-primary)}
.h1-head__chev{display:block;width:24px;height:24px;background:var(--theme-icon-secondary);-webkit-mask:url(../assets/home1/chevron.svg) center/24px no-repeat;mask:url(../assets/home1/chevron.svg) center/24px no-repeat}
.h1-scroll{flex:1;min-height:0;overflow-y:auto}
.h1-content{display:flex;flex-direction:column;gap:var(--space-base-xl);padding:24px var(--space-base-l) 120px}

/* Folder menu: the picked tab is part of the card; 8px inverted corners join them. */
.h1-tabs{display:flex}
.h1-tab{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:var(--space-base-s);padding:16px 8px 12px;border-radius:8px 8px 0 0;font-size:12.5px!important;line-height:16px;color:var(--theme-text-secondary)!important;text-align:center!important}
.h1-tab.is-on{background:var(--theme-bg-island);color:var(--theme-text-accent)!important}
/* Figma «Subtract» (8×8) joins the tab to the card on each side: the shape itself is the mask, filled with Bg/Island. */
.h1-tab.is-on::before,.h1-tab.is-on::after{content:'';position:absolute;bottom:0;width:8px;height:8px;background:var(--theme-bg-island);-webkit-mask:url(../assets/home1/folder-corner.svg) 0 0/8px 8px no-repeat;mask:url(../assets/home1/folder-corner.svg) 0 0/8px 8px no-repeat}
.h1-tab.is-on::after{right:-8px}
.h1-tab.is-on::before{left:-8px;transform:scaleX(-1)}
.is-at-0 .h1-tab.is-on::before,.is-at-3 .h1-tab.is-on::after{display:none}
.h1-card{display:flex;flex-direction:column;gap:var(--space-base-l);padding:16px;border-radius:16px;background:var(--theme-bg-island)}
.is-at-0 .h1-card{border-top-left-radius:0}
.is-at-3 .h1-card{border-top-right-radius:0}

/* Avia route: two rows on Bg/Ocean, a dashed cut with notches, the swap button on the right */
.h1-route{position:relative;display:flex;flex-direction:column;border-radius:8px;background:var(--theme-bg-ocean)}
.h1-route__row{display:flex;align-items:center;gap:var(--space-base-m);height:50px;padding:0 56px 0 12px;font-size:17px!important;line-height:22px}
.h1-route__row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h1-route__row .is-empty{color:var(--theme-text-tertiary,var(--theme-text-secondary))}
.h1-route__row .is-accent{color:var(--theme-text-accent)}
.h1-route__cut{position:relative;height:1px;margin:0 86px 0 26px;background:repeating-linear-gradient(90deg,var(--theme-bg-natural) 0 6px,transparent 6px 12px)}
.h1-route__cut::before,.h1-route__cut::after{content:'';position:absolute;top:-10.5px;width:10px;height:21px;background:var(--theme-bg-island)}
.h1-route__cut::before{left:-26px;border-radius:0 10px 10px 0/0 10.5px 10.5px 0}
.h1-route__cut::after{right:-86px;border-radius:10px 0 0 10px/10.5px 0 0 10.5px}
.h1-route__swap{position:absolute;right:26px;top:50%;width:44px;height:44px;display:grid;place-items:center;translate:0 -50%;border-radius:8px;background:var(--theme-bg-island)!important;color:var(--theme-icon-accent)!important}
.h1-route__swap:disabled{opacity:.5}
.h1-more{display:flex;flex-direction:column;gap:var(--space-base-m)}
.h1-more__chips{display:flex;gap:var(--space-base-s)}
.h1-chip-btn{flex:1;height:44px;padding:0 12px!important;border-radius:8px;background:var(--theme-bg-ocean)!important;font-size:15.5px!important;color:var(--theme-text-primary)!important}
.h1-field{display:flex;align-items:center;gap:var(--space-base-m);height:50px;padding:0 12px!important;border-radius:8px;background:var(--theme-bg-ocean)!important;font-size:17px!important;line-height:22px;color:var(--theme-text-tertiary,var(--theme-text-secondary))!important}
.h1-card .av-find{margin:0}

/* Tinted blocks (Прямые рейсы, Мир без границ, Отели со скидкой) */
.h1-tint{display:flex;flex-direction:column;gap:var(--space-base-l);padding-top:16px;border-radius:16px;background:var(--h1-tint);overflow:hidden}
.h1-tint--pad{padding-bottom:16px}
.h1-tint__head{display:flex;align-items:center;gap:var(--space-base-m);padding:0 16px}
.h1-tint__head p{margin:0}
.h1-tint__title{font-size:17px;line-height:22px;font-weight:600;color:var(--h1-tint-title)}
.h1-tint__sub{font-size:14px;line-height:18px;color:var(--h1-tint-sub)}
.h1-tint__foot{padding:0 16px 16px}
.h1-tint .av-button,.h1-plain .av-button{height:44px;border-radius:8px}
.h1-chips{display:flex;gap:var(--space-base-s);padding:0 16px}
.h1-plain .h1-chips{margin:0 -16px}
.h1-chip{flex:none;display:flex;align-items:center;gap:var(--space-base-s);padding:8px 16px!important;border-radius:var(--radius-chips);background:var(--h1-inner)!important;font-size:14px!important;line-height:18px;color:var(--theme-text-secondary)!important;white-space:nowrap}
.h1-chip.is-on{color:var(--theme-text-accent)!important}
.h1-plain .h1-chip{background:var(--theme-bg-island)!important}
.h1-plain .h1-chip.is-on{background:var(--theme-bg-accent)!important;color:var(--theme-text-always-white)!important}
.h1-row{display:flex;gap:var(--space-base-s);padding:0 16px}
.h1-plain .h1-row,.h1-section .h1-row{margin:0 -16px}
.h1-price{font-size:17px;line-height:22px;font-weight:600;color:#5CA8FF;white-space:nowrap}
.h1-price small{font-size:14px;font-weight:400}

/* Direct flight ticket */
.h1-ticket{position:relative;flex:none;display:flex;align-items:center;gap:var(--space-base-s);padding:12px!important;border-radius:16px;background:var(--h1-inner)!important}
.h1-ticket__text{display:flex;flex-direction:column;gap:4px;width:150px}
.h1-ticket__text b{font-size:14px;line-height:18px;font-weight:600;color:var(--theme-text-accent);white-space:nowrap}
.h1-ticket__text>span{display:flex;align-items:center;gap:8px;white-space:nowrap}
.h1-ticket__text i{font-style:normal;font-size:14px;line-height:18px;font-weight:500;color:var(--theme-text-primary)}
.h1-ticket__text small{font-size:11px;line-height:14px;color:var(--theme-text-secondary)}
/* Figma «Cut»: 8×2 rounded dashes in the block's own tint (holes through the ticket), 6px apart, plus the two notches. */
.h1-ticket__cut{align-self:stretch;width:2px;margin:-12px 15px;position:relative;background:repeating-linear-gradient(180deg,transparent 0 3px,var(--h1-tint) 3px 11px,transparent 11px 14px);border-radius:1px}
.h1-ticket__cut::before,.h1-ticket__cut::after{content:'';position:absolute;left:-9px;width:18px;height:9px;background:var(--h1-tint)}
.h1-ticket__cut::before{top:0;border-radius:0 0 9px 9px}
.h1-ticket__cut::after{bottom:0;border-radius:9px 9px 0 0}

/* eSIM */
.h1-plain{display:flex;flex-direction:column;gap:var(--space-base-l)}
.h1-plain__head p{margin:0}
.h1-plain__title{font-size:17px;line-height:22px;font-weight:600;color:var(--theme-text-primary)}
.h1-plain__sub{font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.h1-esim{position:relative;flex:none;display:flex;flex-direction:column;gap:2px;width:123px;padding:12px;border-radius:16px;background:var(--theme-bg-island);
 -webkit-mask:url(../assets/home1/esim-corner.svg) 100% 0/46px 47px no-repeat,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:url(../assets/home1/esim-corner.svg) 100% 0/46px 47px no-repeat exclude,linear-gradient(#000 0 0)}
.h1-esim b{font-size:17px;line-height:22px;font-weight:600;color:var(--theme-text-primary)}
.h1-esim>span:not(.h1-price){font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.h1-esim i{display:block;margin:6px 0;border-top:1px solid var(--theme-stroke-ocean)}

/* Sections with a headline and «Смотреть все» */
.h1-section{display:flex;flex-direction:column;gap:var(--space-base-m)}
.h1-section__head{display:flex;align-items:flex-end;gap:16px}
.h1-section__head h2{flex:1;margin:0;font-size:22.5px;line-height:28px;font-weight:600;color:var(--theme-text-primary)}
.h1-section__head button{font-size:17px!important;line-height:22px;color:var(--theme-text-accent)!important}
.h1-review{flex:none;width:calc(100% - 32px);max-width:358px;display:flex;flex-direction:column;gap:var(--space-base-m);padding:16px;border-radius:16px;background:var(--theme-bg-island)}
.h1-review__head{display:flex;align-items:center;gap:12px}
.h1-review__who{flex:1;display:flex;flex-direction:column;gap:2px}
.h1-review__who b{font-size:14px;line-height:18px;font-weight:600;color:var(--theme-text-primary)}
.h1-stars{display:flex;gap:6px}
.h1-review__what{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:11px;line-height:14px;color:var(--theme-text-primary)}
.h1-review__what small{font-size:11px;color:var(--theme-text-secondary)}
.h1-review p{margin:0;font-size:12.5px;line-height:16px;color:var(--theme-text-primary)}
.h1-review p button{display:inline;font-size:12.5px!important;color:var(--theme-text-accent)!important}

/* Мир без границ city tiles */
.h1-city{position:relative;flex:none;width:112px;height:128px;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;padding:12px!important;border:1px solid var(--h1-city-stroke)!important;border-radius:8px;overflow:hidden;color:#fff!important}
.h1-city img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.h1-city::after{content:'';position:absolute;left:0;right:0;bottom:0;height:100px;background:linear-gradient(rgba(0,119,255,0),#004799)}
.h1-city b,.h1-city span{position:relative;z-index:1;white-space:nowrap}
.h1-city b{font-size:14px;line-height:18px;font-weight:600}
.h1-city span{font-size:11px;line-height:14px}

/* Hotel deal card */
.h1-hotel{flex:none;display:flex;gap:16px;width:280px;padding:12px!important;border-radius:16px;background:var(--h1-inner)!important}
.h1-hotel__img{position:relative;flex:none;width:98px;height:98px;border-radius:8px;overflow:hidden}
.h1-hotel__img img{width:100%;height:100%;object-fit:cover;display:block}
.h1-rating{position:absolute;left:8px;top:8px;width:20px;height:24px;display:grid;place-items:center;padding-bottom:3px;background:url(../assets/home1/rating-bg.svg) center/18px 22.5px no-repeat;font-size:11px;line-height:14px;font-weight:500;color:#fff}
.h1-starbadge{position:absolute;left:8px;bottom:8px;display:flex;align-items:center;gap:2px;padding:2px 6px;border-radius:var(--radius-rounding);background:var(--theme-bg-island);font-size:12.5px;line-height:16px;color:#fc0}
.h1-hotel__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:12.5px;line-height:16px;color:var(--theme-text-secondary)}
.h1-hotel__text b{font-size:14px;line-height:18px;font-weight:600;color:var(--theme-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h1-hotel__text .is-accent{color:var(--theme-text-accent)}
.h1-hotel__old{display:flex;align-items:center;justify-content:space-between;margin-top:6px;font-size:11px;line-height:14px;color:var(--theme-text-disabled,var(--theme-text-secondary))}
.h1-hotel__price{font-size:14px;line-height:18px;font-weight:600;color:#5CA8FF}
.h1-hotel__price small{font-weight:400}
.h1-deal{display:inline-flex;align-items:center;gap:4px;padding:0 4px;border-radius:var(--radius-rounding);background:#FF6600;font-style:normal;font-size:11px;line-height:14px;color:#fff}
.h1-deal--big{padding:4px 8px;font-size:12.5px;line-height:16px;font-weight:600}
.h1-deal--corner{position:absolute;right:8px;top:8px;padding:2px 8px;font-size:14px;line-height:18px;font-weight:500}

/* Tour deal (Вьетнам - Нячанг): a ticket-like head and a strip of photos */
.h1-tour{display:flex;flex-direction:column;border-radius:16px;background:var(--h1-tint);overflow:hidden}
.h1-tour__top{position:relative;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;border:0}
.h1-tour__name{display:flex;flex-direction:column;gap:2px}
.h1-tour__name b{font-size:17px;line-height:22px;font-weight:600;color:var(--h1-tint-title)}
.h1-tour__name span{font-size:14px;line-height:18px;color:var(--h1-tint-sub)}
.h1-tour__side{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.h1-tour__inc{display:flex;gap:6px}
.h1-tour__photos{display:flex;gap:8px;padding:16px}
.h1-tour__photos img{flex:none;width:98px;height:72px;border-radius:8px;object-fit:cover}

/* Hot tours / excursions cards */
.h1-card-tour{flex:none;display:flex;flex-direction:column;width:174px;border-radius:16px;overflow:hidden;background:var(--theme-bg-island)!important}
.h1-card-tour__img{position:relative;height:144px}
.h1-card-tour__img img{width:100%;height:100%;object-fit:cover;display:block}
.h1-card-tour__img .h1-starbadge{left:8px;top:8px;bottom:auto}
.h1-card-tour__body{display:flex;flex-direction:column;gap:4px;padding:12px}
.h1-card-tour__icons{display:flex;gap:8px;margin-bottom:12px}
.h1-card-tour__body b{font-size:17px;line-height:22px;font-weight:500;color:var(--theme-text-primary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.h1-card-tour__body>span:not(.h1-card-tour__icons):not(.h1-card-tour__price){font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.h1-card-tour__price{margin-top:12px;font-size:17px;line-height:22px;color:var(--theme-text-primary)}
.h1-card-tour__price em{font-style:normal;color:#FF6600}
.h1-card-tour__price em.is-price{color:#5CA8FF}

/* Floating blue tab bar */
.h1-nav{position:absolute;left:16px;right:16px;bottom:21px;z-index:20;display:flex;justify-content:center;gap:12px;padding:12px 24px;border-radius:var(--radius-rounding);background:var(--theme-bg-accent);box-shadow:0 8px 24px rgba(0,60,140,.25)}
.h1-nav__item{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px!important;line-height:14px;color:rgba(255,255,255,.5)!important;text-align:center!important}
.h1-nav__item.is-on{color:#fff!important}
.h1-nav__icon{position:relative;width:24px;height:24px;background:currentColor;-webkit-mask:var(--i) center/24px no-repeat;mask:var(--i) center/24px no-repeat}
.h1 .av-home-indicator{position:absolute;left:0;right:0;bottom:0;z-index:21}
.h1-starbadge .av-icon,.h1-stars .av-icon{width:12px!important;height:12px!important}
.h1-starbadge{--h1-gold:#E0A800;color:var(--h1-gold)}
[data-theme="dark"] .h1-starbadge{--h1-gold:#fc0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .h1-starbadge{--h1-gold:#fc0}}

/* Туры in the folder card: the same look as the Avia route (Bg/Ocean block, dashed cut with notches, 44px chips). */
.h1-card .tr-route{gap:0;border-radius:8px;background:var(--theme-bg-ocean)}
.h1-card .tr-route::after{left:44px;right:12px;border-top:0;height:1px;background:repeating-linear-gradient(90deg,var(--theme-bg-natural) 0 6px,transparent 6px 12px)}
.h1-card .tr-route__divider{display:none}
.h1-card .tr-route__row{height:50px;padding:0 12px}
.h1-card .tr-route__row .tr-route__text.is-empty{color:var(--theme-text-tertiary,var(--theme-text-secondary))}
.h1-card .av-h3-chips{display:flex;gap:var(--space-base-s)}
.h1-card .av-h3-chip{flex:1;height:44px;padding:0 12px;border-radius:8px;background:var(--theme-bg-ocean)}
.h1-card .tr-find.cds-button,.h1-card .av-find.cds-button{height:48px}

/* v1 only: every button keeps the 8px Coin corner (v2–v4 use their own radii). */
:root[data-v="1"] .cds-button{border-radius:8px!important}
.h1-tint .cds-button,.h1-plain .cds-button{font-weight:400}
.h1-tour__top::after{content:'';position:absolute;left:16px;right:16px;bottom:0;height:2px;background:repeating-linear-gradient(90deg,var(--h1-inner) 0 8px,transparent 8px 14px)}
/* Other v1 screens: the floating bar sits in its own 106px slot at the bottom (Bg/Ocean), so it never covers content. */
.h1-navslot{position:relative;flex:none;height:106px;background:var(--theme-bg-ocean)}
.h1-navslot .h1-nav{position:absolute}
.h1-navslot .av-home-indicator{position:absolute;left:0;right:0;bottom:0}
