/* ========== Doi Bloom Coffee – One Page Sale ========== */
:root {
  --c-bg: #f6f8fb;
  --c-bg-alt: #e9eff7;
  --c-ink: #0f2340;
  --c-ink-soft: #52627a;
  --c-brand: #1a4fa0;
  --c-brand-dark: #123a78;
  --c-accent: #f2b33d;
  --c-line: #d9e1ec;
  --c-white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 35, 64, .09);
  --shadow-lg: 0 24px 60px rgba(15, 35, 64, .2);
  --header-h: 68px;
  --font: "Prompt", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Prompt", "Noto Sans JP", system-ui, sans-serif;
}
html[lang="ja"] { --font: "Noto Sans JP", "Prompt", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--c-ink); background: var(--c-bg);
  line-height: 1.65; font-size: 16px; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-brand); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.h1, h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.8rem); font-weight: 700; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2.5rem); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-ink); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--c-brand); margin: 0 0 .5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; transition: transform .2s, background .2s, color .2s;
  min-height: 48px;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-dark); }
.btn--ghost { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--c-ink); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s; color: #fff;
}
.header.is-scrolled { background: rgba(251,247,242,.96); color: var(--c-ink); box-shadow: 0 2px 20px rgba(0,0,0,.08); backdrop-filter: blur(8px); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: inherit; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.logo__mark { font-size: 1.5rem; }
.nav { display: flex; gap: 1.8rem; }
.nav a { color: inherit; text-decoration: none; font-weight: 500; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--c-accent); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: flex; border: 1.5px solid currentColor; border-radius: 999px; overflow: hidden; }
.lang-switch button, .chat__lang button {
  background: none; border: 0; color: inherit; padding: .3rem .65rem; font-size: .8rem; font-weight: 600; min-width: 40px; min-height: 32px;
}
.lang-switch button[aria-pressed="true"] { background: var(--c-accent); color: var(--c-ink); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; color: inherit; }
.burger span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 920px; overflow: hidden; background: var(--c-ink); }
.hero__track { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; color: #fff;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
}
.slide::before {
  content: ""; position: absolute; inset: 0; background: var(--bg) center/cover no-repeat;
  transform: scale(1.08); transition: transform 7s ease-out;
}
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,25,50,.9) 0%, rgba(10,25,50,.55) 55%, rgba(10,25,50,.2) 100%); }
.slide.is-active { opacity: 1; visibility: visible; }
.slide.is-active::before { transform: scale(1); }
.slide__content { position: relative; z-index: 2; max-width: 1180px; }
.slide__content > * { max-width: 640px; opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > *:nth-child(2) { transition-delay: .15s; }
.slide.is-active .slide__content > *:nth-child(3) { transition-delay: .3s; }
.slide.is-active .slide__content > *:nth-child(4) { transition-delay: .45s; }
.slide .eyebrow { color: var(--c-accent); }
.slide__sub { font-size: clamp(1rem, .9rem + .4vw, 1.2rem); opacity: .92; }
.slide__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6); background: rgba(0,0,0,.2); color: #fff; font-size: 2rem; line-height: 1; transition: background .2s;
}
.hero__arrow:hover { background: rgba(255,255,255,.25); }
.hero__arrow--prev { left: 1.5rem; }
.hero__arrow--next { right: 1.5rem; }
.hero__dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: .6rem; }
.hero__dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); padding: 0; transition: width .3s, background .3s; }
.hero__dots button[aria-selected="true"] { width: 36px; background: var(--c-accent); }

/* ---------- Trust bar ---------- */
.trust { background: var(--c-ink); color: #fff; padding: 1.6rem 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.trust__item strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--c-accent); }
.trust__item span { font-size: .9rem; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head p:last-child { color: var(--c-ink-soft); }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.8rem; }
.products > * { grid-column: span 2; display: flex; }
.products > * > .card { width: 100%; }
/* 5 บริการ: จัดแถวล่างให้อยู่กึ่งกลาง */
@media (min-width: 1025px) {
  .products > :nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  .products > :nth-child(3n+1):nth-last-child(1) { grid-column: 3 / span 2; }
}
.card {
  background: var(--c-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; cursor: pointer; text-align: left;
  border: 0; padding: 0; color: inherit;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.07); }
.card__tag { position: absolute; top: 1rem; left: 1rem; background: var(--c-accent); color: var(--c-ink); font-size: .75rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.card__body p { color: var(--c-ink-soft); font-size: .92rem; margin: 0 0 1rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--c-brand); }
.card__foot { gap: .5rem; flex-wrap: wrap; }
.card__more { font-size: .88rem; font-weight: 600; color: var(--c-ink); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__media img { border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow-lg); aspect-ratio: 9/7; object-fit: cover; width: 100%; }
.about__body p { color: var(--c-ink-soft); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.checks li { padding-left: 2rem; position: relative; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--c-brand); color: #fff; font-size: .8rem; display: grid; place-items: center; margin-top: .15rem; }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3.5rem; align-items: start; }
.booking__intro { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.booking__intro > p { color: var(--c-ink-soft); }
.summary { margin-top: 1.5rem; background: var(--c-white); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); display: grid; gap: .5rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.summary__row--total { border-top: 1px dashed var(--c-line); padding-top: .6rem; margin-top: .2rem; font-weight: 700; font-size: 1.1rem; color: var(--c-brand); }
.summary__note { font-size: .82rem; color: #2f7a46; }
.form { background: var(--c-white); padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: calc(var(--radius) * 1.25); box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__row { display: grid; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.form label, .form legend { font-weight: 500; font-size: .92rem; }
.form legend { margin-bottom: .4rem; }
.form input:not([type="radio"]), .form select, .form textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--c-line); border-radius: 12px; font: inherit; font-size: 16px;
  background: var(--c-bg); color: var(--c-ink); transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(26,79,160,.12); }
.form .is-invalid { border-color: #c0392b !important; }
.radios { display: flex; flex-wrap: wrap; gap: .6rem; }
.radios label { display: flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border: 1.5px solid var(--c-line); border-radius: 12px; cursor: pointer; }
.radios label:has(input:checked) { border-color: var(--c-brand); background: rgba(26,79,160,.06); }
.radios input { accent-color: var(--c-brand); }
.form__error { color: #c0392b; margin: 0; font-size: .9rem; }
.qty { display: flex; align-items: stretch; border: 1.5px solid var(--c-line); border-radius: 12px; overflow: hidden; background: var(--c-bg); }
.qty input { border: 0 !important; text-align: center; border-radius: 0 !important; box-shadow: none !important; -moz-appearance: textfield; min-width: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__btn { border: 0; background: transparent; width: 48px; font-size: 1.3rem; color: var(--c-brand); flex-shrink: 0; }
.qty__btn:hover { background: var(--c-bg-alt); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; }
.faq details { background: var(--c-white); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.04); overflow: hidden; }
.faq summary { padding: 1.15rem 3.2rem 1.15rem 1.4rem; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--c-brand); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--c-ink-soft); }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 1.5rem; }
.location__map { grid-row: span 2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; }
.location__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.yt { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000 center/cover no-repeat; box-shadow: var(--shadow); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.25); display: grid; place-items: center; transition: background .2s; }
.yt__play span { width: 72px; height: 50px; border-radius: 14px; background: #e62117; color: #fff; display: grid; place-items: center; font-size: 1.4rem; transition: transform .2s; }
.yt__play:hover { background: rgba(0,0,0,.1); }
.yt__play:hover span { transform: scale(1.1); }
.location__info { font-style: normal; background: var(--c-white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.location__info h3 { font-size: .95rem; color: var(--c-brand); margin: 0 0 .2rem; }
.location__info p { margin: 0 0 1rem; }
.location__info p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--c-ink); color: rgba(255,255,255,.8); padding: 2rem 0; padding-bottom: calc(2rem + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer__top { color: var(--c-accent); text-decoration: none; }

/* ---------- Modal ---------- */
.modal {
  border: 0; padding: 0; border-radius: calc(var(--radius) * 1.5); width: min(960px, 100% - 2rem); max-height: calc(100dvh - 2rem);
  box-shadow: var(--shadow-lg); background: var(--c-white); color: var(--c-ink); overflow: auto;
}
.modal::backdrop { background: rgba(20,12,6,.65); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__close { position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.6rem; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.modal__body { display: grid; grid-template-columns: 1fr 1fr; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; aspect-ratio: 1; }
.modal__info { padding: 2.2rem; display: flex; flex-direction: column; }
.modal__info h3 { font-size: 1.6rem; }
.modal__price { font-size: 1.6rem; font-weight: 700; color: var(--c-brand); margin: 0 0 .8rem; }
.modal__info > p:not(.eyebrow):not(.modal__price) { color: var(--c-ink-soft); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: .5rem 0 1.5rem; font-size: .92rem; }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--c-ink-soft); }
.modal__actions { display: flex; gap: .8rem; margin-top: auto; flex-wrap: wrap; }
.modal__actions .qty { width: 140px; }
.modal__actions .qty input { width: 100%; font: inherit; background: transparent; }
.modal__actions .btn { flex: 1; min-width: 180px; }
.modal--small { width: min(440px, 100% - 2rem); }
.success { padding: 2.5rem 2rem 2rem; text-align: center; }
.success__icon { width: 72px; height: 72px; border-radius: 50%; background: #2f7a46; color: #fff; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 1rem; }
.success p { color: var(--c-ink-soft); white-space: pre-line; }

/* ---------- Live chat ---------- */
.chat { position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 80; }
.chat__fab { width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--c-brand); color: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; position: relative; transition: transform .2s; }
.chat__fab:hover { transform: scale(1.07); }
.chat__fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-brand); animation: ring 2s infinite; }
@keyframes ring { to { transform: scale(1.5); opacity: 0; } }
.chat__badge { position: absolute; top: -2px; right: -2px; background: #e53935; color: #fff; font-size: .72rem; font-weight: 700; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; border: 2px solid #fff; }
.chat__badge[hidden] { display: none; }
.chat__panel {
  position: absolute; right: 0; bottom: calc(100% + 1rem); width: 370px; height: min(560px, calc(100dvh - 140px));
  background: var(--c-white); border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; animation: pop .3s ease;
}
.chat__panel[hidden] { display: none; }
.chat__head { background: var(--c-ink); color: #fff; padding: .9rem 1rem; display: flex; align-items: center; gap: .6rem; }
.chat__agent { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.chat__agent small { display: flex; align-items: center; gap: .35rem; opacity: .8; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__agent strong { font-size: .95rem; display: block; }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4cd964; flex-shrink: 0; }
.chat__lang { display: flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 2px; }
.chat__lang button { min-width: 34px; padding: .25rem .45rem; border-radius: 999px; font-size: .72rem; }
.chat__lang button[aria-pressed="true"] { background: var(--c-accent); color: var(--c-ink); }
.chat__close { background: none; border: 0; color: #fff; font-size: 1.6rem; width: 36px; height: 36px; line-height: 1; }
.chat__body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--c-bg); overscroll-behavior: contain; }
.msg { max-width: 82%; padding: .65rem .95rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; white-space: pre-line; animation: pop .25s ease; }
.msg--bot { background: var(--c-white); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.msg--user { background: var(--c-brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg time { display: block; font-size: .68rem; opacity: .6; margin-top: .2rem; }
.typing { display: inline-flex; gap: 4px; padding: .8rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat__quick { display: flex; gap: .4rem; padding: .6rem .8rem; overflow-x: auto; background: var(--c-bg); border-top: 1px solid var(--c-line); scrollbar-width: none; }
.chat__quick::-webkit-scrollbar { display: none; }
.chat__quick button { flex-shrink: 0; border: 1.5px solid var(--c-brand); background: var(--c-white); color: var(--c-brand); border-radius: 999px; padding: .35rem .8rem; font-size: .8rem; font-weight: 500; }
.chat__quick button:hover { background: var(--c-brand); color: #fff; }
.chat__form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--c-line); background: var(--c-white); }
.chat__form input { flex: 1; border: 1.5px solid var(--c-line); border-radius: 999px; padding: .6rem 1rem; font: inherit; font-size: 16px; min-width: 0; }
.chat__form input:focus { outline: none; border-color: var(--c-brand); }
.chat__form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .products > * { grid-column: auto; }
  .about { gap: 2.5rem; }
  .booking { grid-template-columns: 1fr; gap: 2rem; }
  .booking__intro { position: static; }
  .location { grid-template-columns: 1fr 1fr; }
  .location__map { grid-row: auto; grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--c-bg); color: var(--c-ink); box-shadow: 0 20px 30px rgba(0,0,0,.12);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--c-line); }
  .nav a::after { display: none; }
  .header.menu-open { background: var(--c-bg); color: var(--c-ink); }
  .about { grid-template-columns: 1fr; }
  .modal__body { grid-template-columns: 1fr; }
  .modal__media img { aspect-ratio: 16/10; }
  .modal__info { padding: 1.5rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .logo { font-size: 1.2rem; }
  .hero { min-height: 520px; }
  .slide::after { background: linear-gradient(180deg, rgba(10,25,50,.4) 0%, rgba(10,25,50,.9) 100%); }
  .slide { align-items: flex-end; padding-bottom: 5.5rem; }
  .slide__cta .btn { flex: 1; }
  .hero__arrow { display: none; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.3rem; }
  .products { grid-template-columns: 1fr; gap: 1.3rem; }
  .form__grid { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
  .location__map, .location__map iframe { min-height: 300px; }
  .footer__inner { justify-content: center; text-align: center; padding-bottom: 4rem; }
  .modal { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .modal--small { margin: auto; border-radius: 22px; width: calc(100% - 2rem); }
  .modal__actions .qty { width: 100%; }
  .modal__actions .btn { min-width: 100%; }
  .chat { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .chat__panel {
    position: fixed; inset: auto 0 0 0; width: 100%; height: 100dvh; border-radius: 0;
  }
  .chat__panel:not([hidden]) ~ .chat__fab, .chat.is-open .chat__fab { display: none; }
}

@media (max-width: 380px) {
  .lang-switch button { min-width: 34px; padding: .3rem .45rem; }
  .logo__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
