:root { --max: 1200px; --radius: 20px; }
*{box-sizing:border-box} html,body{height:100%}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#1a202c;background:#fff}
html,body,p{-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}

/* Watermarks/patterns must be full-page and always behind */
#tb-bg,#tb-mask,.tb-mask{position:fixed;inset:0;z-index:-1!important;pointer-events:none;background:transparent}

.nav-bar{position:absolute;top:20px;width:100%;z-index:1000;display:flex;justify-content:center;padding:0 20px;padding-top:max(0px, env(safe-area-inset-top))}
.nav-container{width:100%;max-width:800px;display:flex;justify-content:center;align-items:center}
.menu-toggle{display:none}
.menu{display:flex;gap:20px;list-style:none;margin:0;padding:0}
.menu a{text-decoration:none;color:#1a202c;font-weight:600;font-size:16px;background:#fff;padding:8px 16px;border-radius:8px;box-shadow:0 4px 6px rgba(0,0,0,.1);transition:transform .2s ease,background-color .2s ease}
.menu a:hover{background:#f3f4f6;transform:translateY(-2px)}

.hero{position:relative;color:#1a202c;text-align:left;background:transparent;overflow:visible}
/* keep background <picture> behavior if present */
.hero>picture,.hero>picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

@media (min-width:768px){
  .hero{padding:96px 24px 48px}
  .hero--grid .hero-grid{max-width:var(--max);margin:0 auto;display:grid;grid-template-columns:500px 1fr;gap:48px;align-items:center}
  .hero-visual .mascot{display:block;width:500px;height:500px;object-fit:contain}
  .hero-content-stack h2{margin:0 0 8px}
  .hero-content-stack p{margin:0 0 12px;color:#374151}
  /* Add extra space between the two inline blocks */
  .hero-content-stack .home-inline{margin-bottom:62px}
}

.section{max-width:var(--max);margin:0 auto;padding:72px 24px}
h2{color:#1a202c;margin-top:0}

@media (min-width:768px){ #home.section,#about.section{display:none!important} }

.product-block{text-align:center;background:transparent}
.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.card{background:#fff;border-radius:var(--radius);padding:18px;box-shadow:0 8px 28px rgba(0,0,0,.06);transition:transform .2s ease,box-shadow .2s ease}
.card:hover{transform:translateY(-3px);box-shadow:0 14px 38px rgba(0,0,0,.09)}
.card img{width:100%;height:220px;object-fit:contain}
.card h3{margin:12px 0 6px;font-size:20px}
.card p{margin:0;color:#4a5568;font-size:14px}

.footer{text-align:center;padding:40px 24px;background:#f9fafb;font-size:14px}

#scrollToTopBtn{position:fixed;right:30px;bottom:max(30px, env(safe-area-inset-bottom));z-index:999;background:transparent;border:none;padding:0;cursor:pointer;display:none}
#scrollToTopBtn img{width:48px;height:48px;opacity:.8;transition:opacity .2s ease}
#scrollToTopBtn:hover img{opacity:1}

:where(a,button,.menu a,.menu-toggle,#scrollToTopBtn){-webkit-tap-highlight-color:transparent;tap-highlight-color:transparent}
:where(a,button,.menu a,.menu-toggle,#scrollToTopBtn):focus{outline:none}
:where(a,button,.menu a,.menu-toggle,#scrollToTopBtn):focus-visible{outline:3px solid #22c55e;outline-offset:3px;border-radius:10px}
@media (prefers-reduced-motion:reduce){.card,.menu a,.btn,#scrollToTopBtn img{transition:none!important;transform:none!important}}

.hero::after{background:none!important}
@media (min-width:768px){
  .hero__title{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);clip:rect(0 0 0 0);overflow:hidden}
  #home.section{margin-top:0;padding-top:0;position:static}
}

img,picture,#scrollToTopBtn img,.icon{-webkit-touch-callout:none;-webkit-user-drag:none;user-drag:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}
.hero img,.hero picture,.card img,#scrollToTopBtn img,.icon{pointer-events:none}
.hero,.hero *:not(a),.card,.card *:not(a),#scrollToTopBtn img{cursor:default;user-select:none}
.menu a,.email-link,.instagram-button,#scrollToTopBtn,.menu-toggle{cursor:pointer}

.mobile-header-bar{display:none!important}
@media (min-width:768px){.mobile-header-bar{display:none!important}}

.card.new-fruit img{transition:filter .4s ease;animation:pulse-glow 2.5s infinite ease-in-out}
.card.new-fruit:hover img{filter:drop-shadow(0 0 12px rgba(186,85,211,.7))}
@keyframes pulse-glow{0%{filter:drop-shadow(0 0 6px rgba(186,85,211,.4))}50%{filter:drop-shadow(0 0 16px rgba(186,85,211,.9))}100%{filter:drop-shadow(0 0 6px rgba(186,85,211,.4))}}

.contact-block{padding:40px 20px}
.contact-block h2{text-align:center;margin:0 0 24px;color:#1a202c}
.contact-cards{display:grid;grid-template-columns:1fr 1fr;gap:32px;max-width:800px;margin:0 auto}
.contact-card{display:flex;flex-direction:column;align-items:center;text-decoration:none;background:#fff;border-radius:16px;padding:24px;box-shadow:0 10px 24px rgba(0,0,0,.06);transition:transform .18s ease,box-shadow .18s ease}
.contact-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(0,0,0,.10)}
.card-text{font-size:18px;font-weight:700;color:#1a202c;text-align:center;margin-bottom:14px}
.contact-card img{width:100%;max-width:220px;height:auto;object-fit:contain}

.calm-band{max-width:900px;margin:56px auto 48px;padding:40px 32px;text-align:center;background:#fff;border:1px solid #f1f5f9;border-radius:20px;box-shadow:0 10px 28px rgba(0,0,0,.05)}
.calm-band h2{margin:0 0 14px;font-size:28px;color:#1a202c}
.calm-band p{margin:0 auto 14px;font-size:18px;line-height:1.65;color:#374151;max-width:70ch;text-align:justify;text-align-last:left}
.calm-band p:last-of-type{margin-bottom:0}
@media (min-width:768px){
  #products.section{ padding-top:36px; } 
}
@media (min-width:768px){
  .hero{ padding-bottom:2px; } 
}
/* Buy Tropic Bites — desktop layout (300×300 + hover) */
@media (min-width: 768px){
  .marketplaces > h2{ text-align:center; margin:0 0 28px; }
  .market-cards{
    display: grid;
    grid-template-columns: 300px;
    gap: 24px;
    margin: 0;                 /* без центрирования контейнера */
    max-width: none;           /* на всю ширину секции */
    justify-content: start;    /* прижать к левому краю */
  }
  .market-card{
    width: 300px;
    aspect-ratio: 1 / 1;   /* всегда квадрат */
    height: auto;
    box-sizing: border-box; /* бордер внутри 300px */
    display:grid; place-items:center;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #f1f5f9; /* контур */
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,.05);
    padding: 0;                /* картинка занимает весь квадрат */
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
  }
  .market-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.10);
  }
  .market-card:active{
    transform: translateY(-1px) scale(.997);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
  }
  .market-card img{
    width: 100%;
    height: 100%;
    object-fit: contain;       /* логотип аккуратно внутри */
    display: block;
    padding: 12px;             /* «воздух» вокруг логотипа; можешь убрать/изменить */
  }
}
/* Buy: дополнительный отступ сверху на десктопе */
@media (min-width: 768px){
  #buy.section{ margin-top: 32px; } /* подгони число при желании */
}
/* убираем синий highlight при нажатии на карточки */
.market-card,
.market-card img{
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}
@media (min-width:768px){
  .products .card h3{
    white-space: nowrap;   /* не переносить */
    display: block;
    width: 100%;
    line-height: 1.2;
  }
}
/* ссылки-карточки */
.products .card {
  cursor: pointer;
  color: inherit;             /* наследуем цвет текста */
  text-decoration: none;      /* убираем подчёркивание */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.products .card:hover h3 {
  text-decoration: none;      /* даже при ховере не подчёркивать заголовок */
}
.products .card h3,
.products .card p {
  color: inherit;        /* чтобы заголовки и подписи тоже брали цвет от карточки */
  text-decoration: none; /* и точно не подчёркивались */
}