:root {
  --cream: #f8ead2;
  --paper: #fffaf0;
  --red: #c9342f;
  --blue: #117b92;
  --sky: #bfe0df;
  --yellow: #efc45b;
  --green: #3d765f;
  --ink: #18343d;
  --muted: #66736f;
  --line: rgba(24, 52, 61, .16);
  --radius: 22px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Onest", system-ui, sans-serif;
  margin: 0;
  overflow-x: hidden;
}
body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 250, 240, .82);
  border-bottom: 1px solid rgba(24, 52, 61, .09);
  display: grid;
  grid-template-columns: 150px 1fr auto;
  left: 0;
  min-height: 76px;
  padding: 9px max(24px, calc((100vw - var(--container)) / 2));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}
.brand { display: block; height: 58px; overflow: hidden; width: 142px; }
.brand img { height: 100%; object-fit: contain; width: 100%; }
.main-nav { display: flex; gap: 30px; justify-content: center; }
.main-nav a { font-size: 14px; font-weight: 600; position: relative; }
.main-nav a::after { background: var(--red); bottom: -8px; content: ""; height: 2px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; width: 100%; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-cta, .menu-toggle {
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 16px;
}
.header-cta { font-size: 13px; font-weight: 700; }
.menu-toggle { display: none; }

.hero {
  background: var(--paper) url("assets/hero-sand-products-v3.png") right bottom / auto calc(100% - 76px) no-repeat;
  min-height: 810px;
  overflow: hidden;
  padding-top: 76px;
  position: relative;
}
.hero-left {
  align-items: center;
  display: flex;
  min-height: 734px;
  padding: 54px 34px 74px max(32px, calc((100vw - var(--container)) / 2));
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 600px; position: relative; z-index: 3; }
.hero-content .eyebrow { margin-bottom: 18px; }
.hero h1, .section h2 {
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -.06em;
  line-height: .94;
  margin: 0;
}
.hero h1 { font-size: clamp(50px, 5.6vw, 82px); max-width: 670px; }
.hero-content > p { font-size: 18px; line-height: 1.55; margin: 25px 0 30px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 52px;
  padding: 0 21px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--red); box-shadow: 0 8px 0 rgba(124, 35, 31, .18); color: white; }
.button-primary:hover { box-shadow: 0 11px 0 rgba(124, 35, 31, .13); }
.button-ghost { background: rgba(255,250,240,.62); border-color: rgba(24,52,61,.46); color: var(--ink); }
.button-glass { backdrop-filter: blur(12px); background: rgba(255,255,255,.42); border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.48), 0 12px 28px rgba(24,52,61,.1); color: var(--ink); }
.scroll-cue { bottom: 28px; font-size: 12px; font-weight: 700; left: max(24px, calc((100vw - var(--container)) / 2)); letter-spacing: .08em; position: absolute; text-transform: uppercase; z-index: 2; }
.scroll-cue span { display: inline-block; margin-left: 8px; animation: bob 1.7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.ticker { background: var(--red); color: white; overflow: hidden; padding: 15px 0; }
.ticker-track { align-items: center; animation: ticker 26s linear infinite; display: flex; gap: 30px; min-width: max-content; white-space: nowrap; }
.ticker span { font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ticker b { color: var(--yellow); }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 120px max(24px, calc((100vw - var(--container)) / 2)); position: relative; }
.section-index { color: var(--red); font-size: 12px; font-weight: 800; left: max(24px, calc((100vw - var(--container)) / 2)); letter-spacing: .16em; position: absolute; top: 60px; }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .14em; margin: 0 0 18px; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.65; }

.story { align-items: center; background: var(--paper); display: grid; gap: 70px; grid-template-columns: .8fr 1.2fr; min-height: 760px; overflow: hidden; }
.story-copy { position: relative; z-index: 2; }
.story h2 { font-size: clamp(44px, 5vw, 74px); }
.story-copy .lead { max-width: 525px; }
.story-image { border-radius: 180px 24px 24px 24px; box-shadow: 0 28px 70px rgba(24,52,61,.14); height: 560px; margin: 0; overflow: hidden; position: relative; }
.story-image img { height: 100%; object-fit: cover; object-position: 42% center; width: 100%; }
.story-image figcaption { background: rgba(255,250,240,.9); border-radius: 12px; bottom: 18px; font-size: 11px; left: 18px; padding: 10px 13px; position: absolute; }
.story-stamp { align-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; bottom: 70px; display: flex; flex-direction: column; font-size: 10px; height: 130px; justify-content: center; line-height: 1.4; position: absolute; right: 4vw; text-align: center; text-transform: uppercase; transform: rotate(8deg); width: 130px; z-index: 3; }
.story-stamp strong { font-size: 17px; }

.drinks { background: var(--cream); min-height: 920px; overflow: hidden; }
.section-heading { align-items: end; display: grid; gap: 30px; grid-template-columns: 1fr auto; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -12px; }
.section-heading > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0 0 5px; max-width: 340px; }
.drinks h2 { font-size: clamp(50px, 7vw, 92px); }
.taste-nav { display: flex; gap: 8px; margin: 50px 0 25px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.taste-nav::-webkit-scrollbar { display: none; }
.taste-tab { background: transparent; border: 1px solid rgba(24,52,61,.25); border-radius: 999px; color: var(--ink); flex: 0 0 auto; font-size: 12px; font-weight: 700; min-height: 42px; padding: 0 16px; transition: .2s ease; }
.taste-tab.active { background: var(--ink); border-color: var(--ink); color: white; }
.taste-stage { background: var(--paper); border: 1px solid var(--line); border-radius: 30px; display: grid; grid-template-columns: .75fr 1.25fr; min-height: 470px; overflow: hidden; }
.taste-copy { align-self: center; padding: 50px; }
.taste-number { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.taste-copy h3 { font-size: clamp(42px, 5vw, 68px); letter-spacing: -.05em; margin: 12px 0 18px; }
.taste-description { color: var(--muted); font-size: 17px; line-height: 1.6; }
.taste-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.taste-meta span { background: rgba(17,123,146,.09); border: 1px solid rgba(17,123,146,.18); border-radius: 999px; color: var(--blue); font-size: 11px; font-weight: 700; padding: 8px 10px; }
.taste-visual { min-height: 560px; overflow: hidden; position: relative; }
.taste-scene { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.sun-disc { background: rgba(255,255,255,.46); border-radius: 50%; height: 340px; left: 50%; position: absolute; top: 50%; transform: translate(-50%,-50%); width: 340px; }
.pack { border: 0; border-radius: 22px; box-shadow: 0 30px 45px rgba(24,52,61,.18); height: auto; object-fit: cover; position: relative; transition: opacity .22s ease, transform .38s cubic-bezier(.2,.75,.2,1); width: 49%; z-index: 2; }
.pack-can { transform: rotate(-3deg) translateY(12px); }
.pack-bottle { transform: rotate(3deg) translateY(-12px); }
.taste-stage.changing .pack-can { opacity: 0; transform: translateX(-35px) rotate(-8deg); }
.taste-stage.changing .pack-bottle { opacity: 0; transform: translateX(35px) rotate(8deg); }

.formats { background: var(--ink); color: white; }
.formats .section-index, .formats .eyebrow { color: var(--yellow); }
.section-heading.light { display: block; margin-bottom: 48px; }
.formats h2 { font-size: clamp(52px, 7vw, 94px); }
.format-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.format-card { border-radius: 30px; min-height: 600px; overflow: hidden; padding: 38px; position: relative; }
.format-glass { background: var(--yellow); color: var(--ink); }
.format-pet { background: var(--sky); color: var(--ink); }
.format-copy { max-width: 430px; position: relative; z-index: 2; }
.format-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.format-card h3 { font-size: clamp(38px, 4.2vw, 57px); letter-spacing: -.05em; line-height: .98; margin: 18px 0; }
.format-card p { font-size: 15px; line-height: 1.6; }
.format-card a { border-bottom: 1px solid currentColor; display: inline-flex; font-size: 13px; font-weight: 800; gap: 12px; margin-top: 8px; padding-bottom: 5px; }
.format-products { bottom: 28px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); position: absolute; right: 24px; width: 57%; }
.format-products img { background: rgba(255,255,255,.15); border: 4px solid rgba(255,255,255,.42); border-radius: 22px; box-shadow: 0 22px 34px rgba(24,52,61,.17); height: auto; margin: 0; object-fit: contain; transform: none; width: 100%; }
.format-products.cans { bottom: 28px; width: 57%; }

.gallery { background: var(--paper); display: grid; gap: 38px; grid-template-columns: 350px minmax(0,1fr); min-height: 760px; overflow: hidden; }
.gallery-heading { align-self: center; }
.gallery h2 { font-size: clamp(46px, 6vw, 80px); }
.slider-controls { display: flex; gap: 10px; margin-top: 34px; }
.slider-arrow { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); display: flex; font-size: 22px; height: 50px; justify-content: center; width: 50px; }
.summer-slider { display: flex; gap: 20px; overflow-x: auto; padding: 8px 0 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.summer-slider::-webkit-scrollbar { display: none; }
.summer-slide { aspect-ratio: 4 / 3; border-radius: 28px 150px 28px 28px; flex: 0 0 min(820px, 82vw); overflow: hidden; position: relative; scroll-snap-align: start; }
.summer-slide > img { height: 100%; object-fit: cover; width: 100%; }
.slider-flavor { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .11em; margin: 24px 0 0; text-transform: uppercase; }

.partners { align-items: center; background: var(--blue); color: white; display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; min-height: 660px; overflow: hidden; }
.partners .eyebrow { color: var(--yellow); }
.partners h2 { font-size: clamp(50px, 7vw, 92px); }
.partners-copy > p:not(.eyebrow) { color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.65; max-width: 550px; }
.partners-art { aspect-ratio: 4 / 3; border-radius: 160px 24px 24px 24px; box-shadow: 0 30px 65px rgba(0,0,0,.23); overflow: hidden; position: relative; }
.partners-art img { height: 100%; object-fit: cover; position: static; transform: none; width: 100%; }
.arch { border: 32px solid rgba(255,250,240,.2); border-bottom: 0; border-radius: 260px 260px 0 0; bottom: -30px; position: absolute; }
.arch-one { height: 430px; right: 5%; width: 390px; }
.arch-two { border-color: rgba(239,196,91,.25); height: 320px; right: 16%; width: 280px; }

.contacts { background: var(--cream); display: grid; gap: 60px; grid-template-columns: .8fr 1.2fr; }
.contacts h2 { font-size: clamp(52px, 7vw, 94px); }
.contact-list { border-top: 1px solid var(--line); }
.contact-list a, .contact-list > div { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 92px; }
.contact-list span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.contact-list strong { font-size: clamp(17px, 2.2vw, 28px); }
.socials { display: flex; gap: 10px; grid-column: 2; }
.socials a { border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 10px 14px; }

.site-footer { align-items: center; background: var(--ink); color: white; display: grid; gap: 30px; grid-template-columns: 1fr auto 1fr; min-height: 120px; padding: 24px max(24px, calc((100vw - var(--container)) / 2)); }
.site-footer img { filter: brightness(0) invert(1); height: 65px; object-fit: contain; object-position: left; width: 150px; }
.site-footer p { color: rgba(255,255,255,.6); font-size: 11px; }
.site-footer a { font-size: 12px; font-weight: 700; justify-self: end; }

.partner-dialog { background: var(--paper); border: 0; border-radius: 26px; box-shadow: 0 35px 90px rgba(24,52,61,.3); color: var(--ink); max-width: 520px; padding: 34px; width: calc(100% - 30px); }
.partner-dialog::backdrop { backdrop-filter: blur(8px); background: rgba(24,52,61,.48); }
.partner-dialog h2 { font-size: 42px; letter-spacing: -.05em; margin: 0 0 8px; }
.partner-dialog > p:not(.eyebrow), .form-success p { color: var(--muted); line-height: 1.5; }
.partner-dialog label { display: block; font-size: 12px; font-weight: 700; margin: 15px 0; }
.partner-dialog input { background: white; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); display: block; min-height: 48px; padding: 0 13px; width: 100%; }
.dialog-close { background: transparent; border: 0; color: var(--ink); font-size: 30px; position: absolute; right: 18px; top: 12px; }
.form-note { font-size: 10px; }
.form-success strong { display: block; font-size: 32px; margin-bottom: 10px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.72,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 120px 1fr auto; }
  .main-nav { gap: 17px; }
  .header-cta { display: none; }
  .hero { min-height: 740px; }
  .hero-left { min-height: 664px; padding-left: 30px; padding-right: 24px; }
  .story, .gallery, .contacts { gap: 36px; grid-template-columns: 1fr; }
  .story-image { height: 460px; }
  .section-heading { align-items: start; grid-template-columns: 1fr; }
  .section-heading .eyebrow { margin-bottom: -18px; }
  .format-grid { grid-template-columns: 1fr; }
  .format-card { min-height: 560px; }
  .gallery-main { height: auto; }
  .gallery { grid-template-columns: 1fr; }
  .partners { grid-template-columns: .9fr 1.1fr; }
  .socials { grid-column: 1; }
}

@media (max-width: 720px) {
  :root { --radius: 18px; }
  .site-header { grid-template-columns: 1fr auto; min-height: 66px; padding: 6px 18px; }
  .brand { height: 52px; width: 120px; }
  .menu-toggle { display: block; font-size: 12px; font-weight: 700; }
  .main-nav { background: var(--paper); border-bottom: 1px solid var(--line); display: none; flex-direction: column; gap: 18px; left: 0; padding: 24px; position: absolute; right: 0; top: 65px; }
  .main-nav.open { display: flex; }
  .hero { background-position: 64% bottom; background-size: auto 65%; min-height: 790px; padding-top: 66px; }
  .hero-left { align-items: flex-start; min-height: 724px; padding: 42px 20px 410px; }
  .hero h1 { font-size: clamp(45px, 14vw, 66px); }
  .hero-content > p { font-size: 15px; max-width: 370px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 340px; }
  .scroll-cue { display: none; }
  .section { padding: 92px 20px; }
  .section-index { left: 20px; top: 36px; }
  .story { min-height: auto; }
  .story h2, .drinks h2, .formats h2, .gallery h2, .partners h2, .contacts h2 { font-size: clamp(43px, 13vw, 64px); }
  .story-image { border-radius: 110px 18px 18px; height: 420px; }
  .story-stamp { bottom: 65px; height: 105px; right: 6px; width: 105px; }
  .taste-stage { grid-template-columns: 1fr; }
  .taste-copy { padding: 28px; }
  .taste-visual { min-height: 380px; }
  .taste-visual { gap: 10px; min-height: 330px; padding: 18px; }
  .pack { border-width: 4px; border-radius: 17px; width: 48%; }
  .format-card { display: flex; flex-direction: column; min-height: auto; padding: 27px; }
  .format-products, .format-products.cans { bottom: auto; margin-top: 26px; position: relative; right: auto; width: 100%; }
  .format-products img { border-radius: 16px; }
  .summer-slide { border-radius: 18px 80px 18px 18px; flex-basis: 88vw; }
  .partners { gap: 38px; grid-template-columns: 1fr; min-height: auto; }
  .partners-art { aspect-ratio: 4 / 3; border-radius: 90px 18px 18px 18px; height: auto; }
  .contact-list a, .contact-list > div { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
