:root {
  --ink: #26221f;
  --muted: #746d66;
  --cream: #fffaf1;
  --paper: #fffdf9;
  --yellow: #ffd83d;
  --orange: #f18c42;
  --pink: #ffad9e;
  --brown: #6b4b39;
  --line: #eadfd2;
  --shadow: 0 22px 50px rgba(93, 63, 40, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
  line-height: 1.6;
}
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page-shell { max-width: 1240px; margin: 0 auto; padding: 0 42px; overflow: hidden; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--yellow); font-weight: 900; color: var(--brown); transform: rotate(-7deg); }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 16px; letter-spacing: .04em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.nav-links { display: flex; gap: 34px; margin-left: auto; color: var(--muted); font-size: 13px; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-button { border: 1px solid var(--ink); background: transparent; border-radius: 99px; padding: 11px 18px; font-size: 12px; transition: .2s; }
.nav-button:hover { background: var(--ink); color: white; }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero { min-height: 650px; padding: 56px 0 86px; }
.eyebrow { margin: 0 0 18px; color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--orange); }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; line-height: 1.08; }
h1 { max-width: 560px; margin-bottom: 24px; font-size: clamp(48px, 6vw, 82px); font-weight: 900; }
h1 em { color: var(--orange); font-style: normal; position: relative; }
h1 em::after { content: ''; position: absolute; left: 2px; right: 0; bottom: -7px; height: 9px; border-radius: 50%; background: var(--yellow); z-index: -1; transform: rotate(-2deg); }
.hero-text { max-width: 450px; color: var(--muted); font-size: 15px; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.primary-button { border: 0; border-radius: 99px; padding: 15px 21px; background: var(--ink); color: white; font-weight: 700; font-size: 13px; box-shadow: 0 8px 0 #dcb83a; transition: transform .2s, box-shadow .2s; }
.primary-button span { display: inline-block; margin-left: 12px; font-size: 18px; }
.primary-button:hover { transform: translateY(3px); box-shadow: 0 5px 0 #dcb83a; }
.text-link { color: var(--muted); font-size: 13px; }
.text-link span { margin-left: 8px; color: var(--orange); }
.hero-note { margin-top: 54px; color: var(--muted); font-size: 11px; }
.sparkle { margin-right: 8px; color: var(--orange); }

.hero-art { position: relative; min-height: 500px; border-radius: 45% 45% 30px 30px; background: #fff0c4; overflow: hidden; isolation: isolate; }
.sun-disc { position: absolute; width: 350px; height: 350px; top: 35px; left: 50%; border-radius: 50%; background: var(--yellow); transform: translateX(-50%); z-index: -1; }
.mascot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; filter: saturate(1.04); }
.burst { position: absolute; color: white; font-size: 22px; }
.burst-one { top: 58px; left: 16%; transform: rotate(-15deg); }
.burst-two { top: 170px; right: 13%; color: var(--orange); font-size: 16px; }
.cloud { position: absolute; width: 70px; height: 23px; border-radius: 99px; background: rgba(255,255,255,.76); }
.cloud::before, .cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 32px; height: 32px; left: 14px; bottom: 6px; }
.cloud::after { width: 23px; height: 23px; right: 12px; bottom: 4px; }
.cloud-one { top: 105px; left: 12%; transform: scale(.8); }
.cloud-two { top: 122px; right: 10%; transform: scale(.55); opacity: .65; }
.art-caption { position: absolute; left: 28px; bottom: 24px; display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.8); color: var(--brown); font-size: 10px; backdrop-filter: blur(8px); }
.art-caption strong { color: var(--orange); }

.intro { padding: 76px 0 100px; border-top: 1px solid var(--line); }
.intro h2, .mood-card h2, .footer-message h2 { font-size: clamp(35px, 4vw, 56px); }
.intro h2 span, .footer-message h2 span { color: var(--orange); }
.intro-copy { max-width: 420px; color: var(--muted); }
.intro-copy > p { font-size: 16px; }
.mini-facts { display: flex; gap: 32px; margin-top: 48px; }
.mini-facts strong, .mini-facts span { display: block; }
.mini-facts strong { color: var(--ink); font-size: 25px; letter-spacing: -.06em; }
.mini-facts span { margin-top: 5px; font-size: 11px; color: var(--muted); }

.mood-card { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; min-height: 360px; margin-bottom: 100px; padding: 62px 68px; border-radius: 30px; background: var(--orange); overflow: hidden; color: white; }
.eyebrow.light { color: #ffe4a7; }
.mood-card h2 { margin-bottom: 17px; }
.mood-card p:not(.eyebrow) { color: #fff0dd; font-size: 14px; }
.mood-buttons { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.mood-buttons button { border: 1px solid rgba(255,255,255,.4); border-radius: 99px; padding: 10px 13px; background: rgba(255,255,255,.1); color: white; font-size: 12px; transition: .2s; }
.mood-buttons button:hover, .mood-buttons button.active { background: white; color: var(--orange); }
.mood-result { min-height: 25px; margin-top: 20px; color: #fff8ee; font-size: 13px; font-weight: 700; }
.mood-decoration { position: relative; min-height: 200px; }
.bubble { position: absolute; display: block; border: 3px solid rgba(255,255,255,.5); border-radius: 50%; }
.bubble-a { width: 170px; height: 170px; right: 10%; top: 8%; background: rgba(255,216,61,.55); }
.bubble-b { width: 90px; height: 90px; right: 4%; bottom: 6%; background: var(--pink); }
.bubble-c { width: 35px; height: 35px; left: 22%; top: 2%; background: white; }
.tiny-star { position: absolute; top: 30%; right: 33%; color: white; font-size: 34px; }

.chat-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 66px; align-items: center; padding: 8px 0 110px; }
.chat-intro h2 { font-size: clamp(38px, 4.5vw, 62px); }
.chat-intro h2 span { color: var(--orange); }
.chat-intro > p:not(.eyebrow) { max-width: 350px; color: var(--muted); font-size: 15px; }
.chat-sticker { display: inline-block; margin-top: 24px; padding: 12px 18px; border-radius: 100px; background: var(--yellow); color: var(--brown); font-size: 13px; font-weight: 800; transform: rotate(-5deg); }
.chat-panel { min-width: 0; border: 1px solid var(--line); border-radius: 25px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.chat-panel-head { display: flex; align-items: center; gap: 11px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 13px; background: var(--yellow); color: var(--brown); font-weight: 900; transform: rotate(-6deg); }
.chat-panel-head strong, .chat-panel-head small { display: block; line-height: 1.2; }
.chat-panel-head strong { font-size: 13px; }
.chat-panel-head small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.chat-online { margin-left: auto; color: #58806a; font-size: 11px; white-space: nowrap; }
.chat-online::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #72b28b; vertical-align: 1px; }
.chat-messages { display: flex; flex-direction: column; gap: 12px; height: 300px; padding: 22px 20px; overflow-y: auto; overscroll-behavior: contain; }
.chat-bubble { max-width: 83%; width: fit-content; margin: 0; padding: 11px 15px; border-radius: 17px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble.bot { align-self: flex-start; border-bottom-left-radius: 5px; background: #fff0c9; color: var(--brown); }
.chat-bubble.user { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--ink); color: white; }
.chat-bubble.waiting { opacity: .72; }
.chat-form { padding: 15px 18px 17px; border-top: 1px solid var(--line); }
.chat-form textarea { display: block; width: 100%; min-height: 58px; max-height: 120px; resize: vertical; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.5; outline: none; }
.chat-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241,140,66,.14); }
.chat-form textarea::placeholder { color: #a39a90; }
.chat-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 9px; }
.chat-form-bottom span { color: var(--muted); font-size: 10px; }
.chat-form-bottom button { border: 0; border-radius: 100px; padding: 9px 16px; background: var(--yellow); color: var(--brown); font-size: 12px; font-weight: 800; }
.chat-form-bottom button:hover { background: #ffca26; }
.chat-form-bottom button:disabled { cursor: wait; opacity: .55; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.gallery { padding: 0 0 105px; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.gallery-heading h2 { margin: 0; font-size: clamp(35px, 4vw, 56px); }
.gallery-heading h2 span { color: var(--orange); }
.gallery-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: right; }
.gallery-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 16px; }
.gallery-item { position: relative; min-height: 330px; margin: 0; border-radius: 22px; overflow: hidden; background: #f3e8d8; box-shadow: var(--shadow); }
.gallery-item-tall { min-height: 460px; }
.gallery-item picture { display: block; width: 100%; height: 100%; }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(32, 21, 11, .65)); pointer-events: none; }
.gallery-item figcaption { position: absolute; z-index: 1; left: 18px; bottom: 16px; color: white; font-size: 13px; font-weight: 700; }

.footer-message { padding-bottom: 90px; text-align: center; }
.footer-message h2 { margin-bottom: 17px; }
.footer-message > p:last-child { color: var(--muted); font-size: 14px; }
.site-footer { display: flex; justify-content: space-between; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.site-footer b { color: var(--orange); font-size: 14px; }

@media (max-width: 760px) {
  .page-shell { padding: 0 20px; }
  .site-header { min-height: 76px; }
  .nav-links { display: none; }
  .nav-button { padding: 9px 13px; }
  .section-grid, .mood-card { grid-template-columns: 1fr; gap: 38px; }
  .hero { padding-top: 36px; }
  .hero-art { min-height: 410px; order: -1; border-radius: 34px; }
  .sun-disc { width: 270px; height: 270px; }
  .hero-copy { padding-bottom: 10px; }
  .hero-note { margin-top: 35px; }
  .intro { padding: 60px 0 75px; }
  .mini-facts { gap: 20px; }
  .mood-card { padding: 42px 28px 30px; margin-bottom: 75px; }
  .mood-decoration { position: absolute; right: -8px; bottom: -8px; width: 190px; opacity: .7; }
  .chat-section { grid-template-columns: 1fr; gap: 28px; padding-bottom: 80px; }
  .chat-sticker { margin-top: 9px; }
  .chat-messages { height: 310px; }
  .gallery { padding-bottom: 75px; }
  .gallery-heading { align-items: start; flex-direction: column; gap: 6px; }
  .gallery-heading > p { text-align: left; }
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-item, .gallery-item-tall { min-height: 0; height: 300px; }
  .gallery-item:first-child { grid-column: auto; height: 330px; }
  .gallery-item picture, .gallery-item img { height: 100%; }
  .mini-facts { flex-wrap: wrap; justify-content: space-between; gap: 18px 10px; }
  .footer-message { padding-bottom: 65px; }
  .site-footer { gap: 15px; flex-direction: column; }
}

@media (max-width: 380px) {
  .page-shell { padding: 0 16px; }
  .mood-card { padding-left: 22px; padding-right: 22px; }
  .hero-art { min-height: 360px; }
  .gallery-item, .gallery-item-tall { height: 260px; }
  .gallery-item:first-child { height: 300px; }
}
