:root {
  --sg-gold: #c9a227;
  --sg-gold-light: #e6c264;
  --sg-gold-dark: #9c7b14;
  --sg-teal: #3e6377;
  --sg-teal-dark: #26404f;
  --sg-teal-light: #547e94;
  --sg-ink: #14181a;
  --sg-cream: #f6f4ef;
  --sg-line: rgba(20, 24, 26, .1);
  --plyr-color-main: #c9a227;
  --plyr-video-control-color: #fff;
  --plyr-range-thumb-background: #c9a227;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--sg-cream);
  color: var(--sg-ink);
  -webkit-font-smoothing: antialiased;
}

.ti { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

button, a, label, .sg-inline { display: inline-flex; align-items: center; }
a.sg-block, .sg-block { display: block; }
:is(div, li, ul, ol, header, footer, section, article, aside, nav, figure, form, p, h1, h2, h3, h4, h5, h6, blockquote)[class*="items-center"]:not([class*="flex"]):not([class*="grid"]) { display: flex; }
:is(span, cite, em, strong, small, i, time)[class*="items-center"]:not([class*="flex"]):not([class*="grid"]) { display: inline-flex; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(62, 99, 119, .08); }
::-webkit-scrollbar-thumb { background: var(--sg-teal-light); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--sg-teal); }

::selection { background: var(--sg-gold); color: #fff; }

:focus-visible { outline: 2px solid var(--sg-gold); outline-offset: 2px; }

.sg-gold-text {
  background: linear-gradient(120deg, var(--sg-gold-dark), var(--sg-gold-light) 45%, var(--sg-gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sg-select { position: relative; display: block; }
.sg-select select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding-right: 44px;
  cursor: pointer;
}
.sg-select select::-ms-expand { display: none; }
.sg-select .sg-select-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--sg-teal);
  pointer-events: none;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), color .2s ease;
}
.sg-select.is-open .sg-select-arrow { transform: translateY(-50%) rotate(180deg); color: var(--sg-gold); }
.sg-select select:focus ~ .sg-select-arrow { color: var(--sg-gold); }

.sg-field {
  width: 100%;
  border: 1px solid var(--sg-line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sg-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sg-field::placeholder { color: rgba(20, 24, 26, .38); font-weight: 400; }
.sg-field:focus { border-color: var(--sg-gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .16); outline: none; }
textarea.sg-field { min-height: 120px; resize: vertical; }

.sg-dp-wrap { position: relative; }
.sg-dp-input { cursor: pointer; }
.sg-dp {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  left: 0;
  width: 306px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 16px;
  box-shadow: 0 24px 48px -18px rgba(20, 24, 26, .35);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top left;
  transition: opacity .2s ease, transform .22s cubic-bezier(.4, 0, .2, 1), visibility .22s;
}
.sg-dp.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.sg-dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sg-dp-nav {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(62, 99, 119, .08); color: var(--sg-teal); font-size: 18px;
  transition: background .2s ease, color .2s ease;
}
.sg-dp-nav:hover { background: var(--sg-gold); color: #fff; }
.sg-dp-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.sg-dp-title select {
  border: none; background: transparent; font-weight: 700; font-size: 14px;
  font-family: inherit; color: var(--sg-ink); padding: 4px 22px 4px 6px; border-radius: 8px;
}
.sg-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.sg-dp-dow {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--sg-teal-light); text-transform: uppercase;
}
.sg-dp-day {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--sg-ink); background: transparent; transition: background .18s ease, color .18s ease;
}
.sg-dp-day:hover:not(:disabled) { background: rgba(201, 162, 39, .16); }
.sg-dp-day.is-muted { color: rgba(20, 24, 26, .25); }
.sg-dp-day.is-today { box-shadow: inset 0 0 0 1px var(--sg-teal-light); }
.sg-dp-day.is-selected { background: var(--sg-gold); color: #fff; }
.sg-dp-day:disabled { color: rgba(20, 24, 26, .2); cursor: not-allowed; }
.sg-dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sg-line); }
.sg-dp-time { display: flex; align-items: center; gap: 6px; }
.sg-dp-time input {
  width: 52px; text-align: center; border: 1px solid var(--sg-line); border-radius: 8px;
  padding: 6px 4px; font-size: 13px; font-weight: 700; font-family: inherit;
}
.sg-dp-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 700; background: var(--sg-teal); color: #fff;
  transition: background .2s ease;
}
.sg-dp-btn:hover { background: var(--sg-teal-dark); }
.sg-dp-btn.is-ghost { background: rgba(62, 99, 119, .1); color: var(--sg-teal); }
.sg-dp-btn.is-ghost:hover { background: rgba(62, 99, 119, .2); }

.sg-hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.sg-hero-slide.is-active { opacity: 1; visibility: visible; }
.sg-hero-slide.is-active .sg-hero-anim { animation: sgUp .9s .15s cubic-bezier(.16, 1, .3, 1) both; }
.sg-hero-slide.is-active .sg-hero-anim:nth-child(2) { animation-delay: .3s; }
.sg-hero-slide.is-active .sg-hero-anim:nth-child(3) { animation-delay: .42s; }
.sg-hero-slide.is-active .sg-hero-anim:nth-child(4) { animation-delay: .54s; }
.sg-hero-slide img { transform: scale(1.06); transition: transform 8s linear; }
.sg-hero-slide.is-active img { transform: scale(1); }

@keyframes sgUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.sg-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: all .3s ease; }
.sg-dot.is-active { width: 30px; background: var(--sg-gold); }

.sg-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.sg-reveal.is-visible { opacity: 1; transform: none; }

.sg-drawer { transition: transform .38s cubic-bezier(.4, 0, .2, 1); transform: translateX(100%); }
.sg-drawer.is-open { transform: translateX(0); }
.sg-burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s ease, opacity .25s ease; }
.sg-burger span + span { margin-top: 5px; }
.sg-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sg-burger.is-open span:nth-child(2) { opacity: 0; }
.sg-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sg-acc-body { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4, 0, .2, 1); }
.sg-acc.is-open .sg-acc-body { max-height: 520px; }
.sg-acc.is-open .sg-acc-icon { transform: rotate(180deg); }
.sg-acc-icon { transition: transform .32s cubic-bezier(.4, 0, .2, 1); }

.sg-modal { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.sg-modal.is-open { opacity: 1; visibility: visible; }
.sg-modal-panel { transform: translateY(24px) scale(.98); transition: transform .34s cubic-bezier(.16, 1, .3, 1); }
.sg-modal.is-open .sg-modal-panel { transform: none; }

.sg-lightbox-img { animation: sgZoom .4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes sgZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.sg-thumb-strip { scrollbar-width: thin; }
.sg-thumb-strip::-webkit-scrollbar { height: 6px; }

.sg-toast { animation: sgToast .35s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes sgToast { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.sg-switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: rgba(20, 24, 26, .18); transition: background .25s ease; flex: none; }
.sg-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s cubic-bezier(.4, 0, .2, 1); }
.sg-switch.is-on { background: var(--sg-gold); }
.sg-switch.is-on::after { transform: translateX(20px); }

.sg-tab.is-active { background: var(--sg-gold); color: #fff; }
.sg-nav-link.is-active { color: var(--sg-gold); }
.sg-nav-link::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--sg-gold); transition: width .28s ease; }
.sg-nav-link:hover::after, .sg-nav-link.is-active::after { width: 100%; }

.sg-side-link { transition: background .2s ease, color .2s ease; }
.sg-side-link.is-active { background: rgba(201, 162, 39, .16); color: var(--sg-gold-light); box-shadow: inset 3px 0 0 var(--sg-gold); }

.sg-drop { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.sg-drop.is-open { opacity: 1; visibility: visible; transform: none; }

.sg-progress-bar { transition: width .25s ease; }

.sg-skeleton { background: linear-gradient(90deg, rgba(62, 99, 119, .07) 25%, rgba(62, 99, 119, .14) 37%, rgba(62, 99, 119, .07) 63%); background-size: 400% 100%; animation: sgShimmer 1.3s ease infinite; }
@keyframes sgShimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

.sg-marquee { animation: sgMarquee 26s linear infinite; }
@keyframes sgMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.plyr { border-radius: 16px; overflow: hidden; }
.plyr--video { background: var(--sg-ink); }

.sg-line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

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

@media print {
  .sg-noprint { display: none !important; }
}

.sg-drawer-left { transform: translateX(-100%); }
.sg-drawer-left.is-open { transform: translateX(0); }
@media (min-width: 1024px) {
  .sg-drawer-left { transform: none; }
}
