:root {
  --sand: #f7f3ec;
  --sand-dark: #ede5d8;
  --turquoise-soft: #bfe8e3;
  --turquoise: #079f98;
  --navy: #264653;
  --orange: #ff9d4d;
  --orange-dark: #ed8330;
  --text: #3d3d3d;
  --white: #fff;
  --shadow: 0 12px 34px rgba(38, 70, 83, 0.09);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: "Heebo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body.a11y-contrast { background: #fff; color: #000; }
body.a11y-contrast * { border-color: #000 !important; text-shadow: none !important; box-shadow: none !important; }
body.a11y-contrast a, body.a11y-contrast h1, body.a11y-contrast h2, body.a11y-contrast h3 { color: #000 !important; }
body.a11y-grayscale { filter: grayscale(1); }
body.a11y-links a { outline: 2px solid #0d63c7; outline-offset: 2px; text-decoration: underline !important; }
body.a11y-motion *, body.a11y-motion *::before, body.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
a { color: inherit; }
button, input { font: inherit; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -60px; right: 24px; z-index: 100; background: var(--navy); color: white; padding: 10px 18px; border-radius: 10px; }
.skip-link:focus { top: 14px; }
.site-header { position: sticky; top: 0; z-index: 50; height: 78px; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(38,70,83,.08); backdrop-filter: blur(16px); }
.site-header__inner { height: 100%; display: grid; grid-template-columns: 130px 1fr 115px; align-items: center; gap: 30px; }
.brand-mini img { display: block; width: 112px; height: 56px; object-fit: cover; object-position: center 48%; mix-blend-mode: multiply; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: 34px; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: #128b85; }
.header-publish { border: 0; background: transparent; color: var(--navy); padding: 4px 0; font-weight: 600; cursor: pointer; transition: color 180ms ease; }
.header-publish:hover { color: #087f79; }
.cbot-mini { justify-self: end; display: flex; align-items: center; gap: 7px; color: #758184; font-size: 11px; text-decoration: none; }
.cbot-mini img { width: 70px; height: 34px; object-fit: cover; object-position: center 48%; mix-blend-mode: multiply; }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f1fbf9 0%, #d9f1ed 58%, #ccebe6 100%);
  min-height: 590px;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 64px));
  min-height: 590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
  animation: fade-in 500ms ease both;
}
.hero__visual { width: 100%; max-width: 508px; padding: 14px; border: 1px solid rgba(15, 110, 109, .22); border-radius: 32px; background: rgba(255, 255, 255, .58); box-shadow: 0 24px 55px rgba(27, 76, 83, .12); backdrop-filter: blur(8px); }
.hero__brand { width: 100%; overflow: hidden; border-radius: 22px; background: white; padding: 10px; }
.hero__logo { width: 100%; max-width: none; height: auto; display: block; border-radius: 16px; }
.hero__content { max-width: 620px; }
.hero__independence { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px; border: 1px solid rgba(15, 126, 120, .18); border-radius: 999px; background: rgba(255, 255, 255, .66); color: #536e72; padding: 7px 12px; font-size: 13px; font-weight: 500; box-shadow: 0 4px 12px rgba(38, 70, 83, .04); }
.hero__independence span { color: #087f79; font-size: 15px; }
.eyebrow { margin: 0 0 14px; color: #087f79; font-size: 15px; font-weight: 700; letter-spacing: 0.025em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 570px; color: var(--navy); font-size: clamp(40px, 4.4vw, 54px); line-height: 1.12; margin-bottom: 20px; font-weight: 700; letter-spacing: -0.022em; text-wrap: balance; animation: hero-fade-up 520ms ease both; }
.hero-title__lead { color: var(--navy); font-weight: 600; }
.hero-title__accent { color: #0b8f88; font-weight: 800; }
.hero__promise { max-width: 570px; margin: 0 0 30px; color: #456368; font-size: clamp(18px, 1.65vw, 21px); line-height: 1.65; font-weight: 400; text-wrap: balance; }
.hero__promise strong { color: #087f79; font-weight: 700; }
.hero__lead { max-width: 610px; margin: 0 0 26px; color: #315c61; font-size: 17px; line-height: 1.65; }
.hero__lead span { color: #5f777a; font-size: 14px; }
.hero__trust { margin: 13px 0 0; color: #3f6666; font-size: 13px; font-weight: 600; animation: fade-in 520ms 180ms ease both; }
.hero__trust span { padding-inline: 5px; color: #13958f; }
.hero__content > .button { animation: fade-in 480ms 120ms ease both; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 0 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.button--primary { color: #362b20; background: var(--orange); box-shadow: 0 8px 18px rgba(244, 162, 97, 0.28); }
.button--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 11px 22px rgba(232, 140, 66, 0.32); }
.button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(26, 174, 167, 0.35); outline-offset: 3px; }

.search-section { padding: 60px 0 42px; }
.search-label { display: block; color: var(--navy); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%;
  height: 60px;
  border: 1.5px solid #76c9c3;
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  padding: 0 22px 0 130px;
  box-shadow: 0 6px 20px rgba(38, 70, 83, 0.07);
}
.result-count { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #607578; font-size: 14px; }
.search-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 13px; }
.search-tools label { color: #4f676b; font-size: 14px; font-weight: 600; }
.search-tools select { min-height: 42px; border: 1px solid #9bcfca; border-radius: 11px; background: white; color: var(--navy); padding: 0 12px 0 34px; font: inherit; cursor: pointer; }
.search-tools select:focus-visible { outline: 3px solid rgba(26, 174, 167, 0.35); outline-offset: 3px; }

.board { padding-bottom: 80px; }
.publish-card, .ticket-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.publish-card { padding: 24px; border-top: 5px solid #63c8c1; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.section-heading__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: #e5f6f4; color: #148f89; font-size: 25px; }
.section-heading h2 { color: var(--navy); font-size: 27px; margin-bottom: 0; }
.section-heading p { margin: 2px 0 0; color: #667477; }
form { display: grid; gap: 9px; }
[hidden] { display: none !important; }
form label { color: var(--navy); font-weight: 600; }
form input:not([type="checkbox"]) {
  width: 100%;
  height: 52px;
  border: 1px solid #d9dedc;
  border-radius: var(--radius);
  background: #fdfdfc;
  padding: 0 15px;
  margin-bottom: 7px;
}
.input-suffix { position: relative; }
.input-suffix input { padding-left: 42px !important; }
.input-suffix span { position: absolute; left: 16px; top: 14px; color: #6b7674; }
.publication-note { margin: 5px 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff4d8; color: #624c16; font-size: 13px; line-height: 1.5; }
.field-help { margin: -2px 0 7px; color: #607174; font-size: 13px; line-height: 1.45; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 5px 0 10px; font-size: 13px; font-weight: 400; }
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--turquoise); }
.consent a { color: #0b7773; }
.button--wide { width: 100%; }
.form-status { min-height: 22px; margin: 0; color: #0c756f; font-weight: 600; text-align: center; }

.listings { padding: 32px; border: 1px solid #d9e4e7; border-radius: 28px; background: rgba(255, 255, 255, .58); box-shadow: 0 12px 36px rgba(38, 70, 83, .045); }
.listings__header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.listings__header h2 { color: var(--navy); font-size: 32px; line-height: 1.2; margin: 0; }
.safe-note { max-width: 260px; border-radius: 30px; background: #e7f4f1; color: #39625f; padding: 8px 15px; font-size: 13px; text-align: center; }
.ticket-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ticket-card { position: relative; overflow: hidden; padding: 28px; border: 1px solid #d4e0e4; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.05); animation: rise-in 380ms ease both; transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.ticket-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #24c7c2, #3c9dff); }
.ticket-card:hover { transform: translateY(-4px); border-color: #b8d4d7; box-shadow: 0 16px 38px rgba(38, 70, 83, 0.11); }
.ticket-card:nth-child(2) { animation-delay: 70ms; }
.ticket-card:nth-child(3) { animation-delay: 140ms; }
.ticket-card:nth-child(4) { animation-delay: 210ms; }
.ticket-card__top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 13px; margin-bottom: 18px; }
.ticket-card__title { min-width: 0; }
.ticket-card h3 { color: var(--navy); font-size: 22px; line-height: 1.25; margin: 0; }
.ticket-card__price { align-self: start; border-radius: 999px; background: #e9f8f5; color: #087d77; padding: 7px 11px; font-size: 17px; font-weight: 800; white-space: nowrap; }
.ticket-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0; }
.ticket-card dl div { min-height: 72px; padding: 12px; border-radius: 14px; }
.ticket-card .detail--code { background: #f1f5f7; }
.ticket-card .detail--date { background: #eaf6ff; }
.ticket-card .detail--time { background: #f1f3f5; }
.ticket-card .detail--quantity { background: #fff1e5; }
.ticket-card dt { color: #52686a; font-size: 15px; line-height: 1.35; font-weight: 700; white-space: nowrap; }
.ticket-card dd { margin: 4px 0 0; color: var(--text); font-size: 17px; font-weight: 700; }
.ticket-card__phone { display: flex; align-items: center; justify-content: center; margin: 0 0 22px; border: 1px solid #b9dedb; border-radius: 14px; background: #f2fbfa; color: var(--navy); padding: 12px 14px; font-size: 19px; font-weight: 800; text-decoration: none; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.ticket-card__phone:hover { border-color: var(--turquoise); background: #e7f8f5; color: #087d77; transform: translateY(-1px); }
.ticket-card__manage { width: 100%; margin-top: 18px; border: 0; background: transparent; color: #526a6e; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ticket-card__manage:hover { color: #087d77; }
.ticket-card__sold { padding-top: 48px; opacity: .82; }
.ticket-card__sold .ticket-card__phone { pointer-events: none; filter: grayscale(1); opacity: .48; }
.ticket-card__status { position: absolute; top: 13px; left: 14px; z-index: 1; border-radius: 999px; background: #475a61; color: white; padding: 5px 10px; font-size: 12px; font-weight: 800; }
.empty-state { background: white; border-radius: var(--radius); text-align: center; padding: 50px 24px; box-shadow: var(--shadow); }
.empty-state span { font-size: 42px; }
.empty-state h3 { color: var(--navy); font-size: 23px; margin: 10px 0 4px; }

.how-it-works { background: #edf5f2; padding: 80px 0; }
.how-it-works h2 { color: var(--navy); font-size: 32px; margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps article { position: relative; background: #fff; border: 1px solid rgba(38,70,83,.08); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.steps article > span { color: rgba(26,174,167,.22); font-size: 46px; line-height: 1; font-weight: 800; }
.steps h3 { color: var(--navy); font-size: 22px; margin: 14px 0 5px; }
.steps p { margin: 0; color: #617073; }

footer { background: #173943; color: #dfeaec; padding: 68px 0 24px; }
.footer__inner { text-align: right; }
.footer__top { display: grid; grid-template-columns: 1.35fr .8fr .8fr 1.1fr; gap: 55px; padding-bottom: 44px; }
.footer__brand img { width: 230px; height: 126px; object-fit: contain; object-position: center; filter: brightness(0) invert(1); opacity: .96; }
.footer__brand p { color: #b9cccf; margin: 10px 0 0; font-size: 14px; white-space: nowrap; }
.footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__column h2 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.footer__column a, .footer__column button { color: #bdced1; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.footer__column a:hover, .footer__column button:hover { color: #fff; }
.footer__trust { display: flex; flex-direction: column; gap: 10px; }
.trust-badge { display: block; width: fit-content; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 8px 13px; font-size: 13px; }
.footer__trust p { color: #9fb6ba; font-size: 13px; margin-top: 6px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
.footer__bottom p { margin: 0; color: #9eb3b7; font-size: 13px; }
.footer__legal { max-width: 900px; margin: 24px 0 0; color: #8fa8ac; font-size: 12px; }
.footer__credit { display: flex; align-items: center; gap: 10px; color: #9eb3b7; font-size: 11px; }
.footer__credit img { width: 72px; height: 34px; object-fit: cover; object-position: center 48%; filter: brightness(0) invert(1); opacity: .8; }

dialog { width: min(600px, calc(100% - 40px)); border: 0; border-radius: 18px; padding: 30px; box-shadow: 0 25px 80px rgba(20, 40, 45, 0.25); }
dialog::backdrop { background: rgba(23, 45, 50, 0.55); }
.dialog-close { position: absolute; left: 14px; top: 10px; border: 0; background: transparent; font-size: 30px; cursor: pointer; color: var(--navy); }
#dialog-content h2 { color: var(--navy); }
.publish-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border-top: 6px solid #63c8c1; }
.publish-dialog[open] { animation: dialog-in 220ms ease both; }
.manage-dialog { width: min(650px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border-top: 6px solid #3c9dff; }
.manage-dialog h2 { color: var(--navy); }
.manage-dialog > section > input { width: 100%; height: 52px; border: 1px solid #d9dedc; border-radius: var(--radius); padding: 0 15px; margin: 7px 0 14px; }
.manage-actions { display: flex; gap: 12px; margin-top: 8px; }
.button--secondary { border: 1px solid #a9c8c5; background: white; color: var(--navy); }
.button--secondary:hover { background: #edf8f6; transform: translateY(-1px); }
.button--danger { border: 1px solid #c92f3f; background: #d83a4b; color: white; box-shadow: 0 8px 20px rgba(185, 38, 55, .18); }
.button--danger:hover { border-color: #aa1f30; background: #bd293b; transform: translateY(-1px); box-shadow: 0 11px 24px rgba(185, 38, 55, .24); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row > div { min-width: 0; }

.accessibility-toggle { position: fixed; z-index: 70; right: 18px; bottom: 20px; display: grid; place-items: center; width: 54px; height: 54px; border: 3px solid white; border-radius: 50%; background: #0d63c7; color: white; box-shadow: 0 8px 25px rgba(13,99,199,.35); font-size: 27px; cursor: pointer; }
.accessibility-toggle:hover { background: #084d9f; transform: translateY(-2px); }
.accessibility-panel { position: fixed; z-index: 80; right: 18px; bottom: 86px; width: min(360px, calc(100% - 36px)); background: white; color: var(--text); border-radius: 18px; padding: 22px; box-shadow: 0 22px 65px rgba(13,40,55,.24); border: 1px solid #d8e3ea; }
.accessibility-panel__head, .accessibility-panel__head > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.accessibility-panel__head > div > span { color: #0d63c7; font-size: 28px; }
.accessibility-panel h2 { color: var(--navy); font-size: 22px; margin: 0; }
.accessibility-panel__head button { border: 0; background: none; font-size: 28px; cursor: pointer; color: #506268; }
.accessibility-panel > p { color: #68787d; font-size: 14px; }
.accessibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.accessibility-grid button { min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid #dce5e9; border-radius: 12px; background: #f8fafb; color: var(--navy); cursor: pointer; }
.accessibility-grid button:hover, .accessibility-grid button.is-active { border-color: #0d63c7; background: #eaf3ff; color: #0d63c7; }
.accessibility-grid b { font-size: 20px; }
.accessibility-grid span { font-size: 12px; }
.accessibility-reset { width: 100%; margin-top: 11px; min-height: 42px; border: 1px solid #dce5e9; border-radius: 10px; background: white; color: #40575f; cursor: pointer; }
.accessibility-statement { display: block; margin-top: 12px; color: #0d63c7; font-size: 13px; text-align: center; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hero-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: 110px 1fr 95px; }
  .site-nav a { display: none; }
  .site-nav { justify-self: end; }
  .hero__inner { grid-template-columns: 1fr; gap: 30px; padding: 52px 0 58px; text-align: center; }
  .hero__visual { width: min(489px, 96%); margin: 0 auto; }
  .hero__lead { margin-inline: auto; }
  .hero__promise { margin-inline: auto; }
  h1 { margin-inline: auto; }
  .ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer__trust { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
}
@media (max-width: 640px) {
  .site-header { height: 68px; }
  .site-header__inner { width: calc(100% - 28px); grid-template-columns: 92px 1fr; gap: 10px; }
  .brand-mini img { width: 90px; }
  .cbot-mini { display: none; }
  .site-nav { justify-self: end; }
  .header-publish { padding: 9px 12px; font-size: 14px; }
  .container, .hero__inner { width: calc(100% - 40px); }
  .hero { min-height: auto; }
  .hero__inner { min-height: auto; }
  .hero__visual { width: 100%; max-width: 357px; padding: 11px; border-radius: 24px; }
  .hero__brand { border-radius: 16px; }
  .hero__independence { justify-content: center; border-radius: 12px; font-size: 13px; line-height: 1.45; }
  h1 { font-size: 37px; }
  .hero__promise { font-size: 18px; line-height: 1.6; }
  .hero__lead { font-size: 17px; }
  .search-section { padding: 46px 0 34px; }
  .search-wrap input { padding-left: 20px; }
  .result-count { position: static; display: block; transform: none; margin: 8px 4px 0; }
  .search-tools { align-items: stretch; flex-direction: column; }
  .search-tools select { width: 100%; }
  .board { padding-bottom: 60px; }
  .listings { padding: 22px 18px; border-radius: 22px; }
  .listings__header { align-items: flex-start; flex-direction: column; }
  .listings__header h2 { font-size: 28px; }
  .ticket-grid { grid-template-columns: 1fr; }
  .ticket-card dl { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .how-it-works { padding: 60px 0; }
  footer { padding-top: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 35px 24px; }
  .footer__brand, .footer__trust { grid-column: 1 / -1; }
  .footer__bottom { align-items: flex-start; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .manage-actions { align-items: stretch; flex-direction: column; }
  .accessibility-toggle { right: 14px; bottom: 14px; }
  .accessibility-panel { right: 12px; bottom: 78px; width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
