trix-editor {
  border: 1px solid #bbb;
  border-radius: 3px;
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 5em;
  outline: none; }

trix-toolbar * {
  box-sizing: border-box; }

trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto; }

trix-toolbar .trix-button-group {
  display: flex;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-top-color: #ccc;
  border-bottom-color: #888;
  border-radius: 3px; }
  trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 1.5vw; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button-group:not(:first-child) {
        margin-left: 0; } }

trix-toolbar .trix-button-group-spacer {
  flex-grow: 1; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button-group-spacer {
      display: none; } }

trix-toolbar .trix-button {
  position: relative;
  float: left;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5em;
  margin: 0;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent; }
  trix-toolbar .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-toolbar .trix-button.trix-active {
    background: #cbeefa;
    color: black; }
  trix-toolbar .trix-button:not(:disabled) {
    cursor: pointer; }
  trix-toolbar .trix-button:disabled {
    color: rgba(0, 0, 0, 0.125); }
  @media (max-width: 768px) {
    trix-toolbar .trix-button {
      letter-spacing: -0.01em;
      padding: 0 0.3em; } }

trix-toolbar .trix-button--icon {
  font-size: inherit;
  width: 2.6em;
  height: 1.6em;
  max-width: calc(0.8em + 4vw);
  text-indent: -9999px; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button--icon {
      height: 2em;
      max-width: calc(0.8em + 3.5vw); } }
  trix-toolbar .trix-button--icon::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.6;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button--icon::before {
        right: 6%;
        left: 6%; } }
  trix-toolbar .trix-button--icon.trix-active::before {
    opacity: 1; }
  trix-toolbar .trix-button--icon:disabled::before {
    opacity: 0.125; }

trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  top: 8%;
  bottom: 4%; }

trix-toolbar .trix-button--icon-bold::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-italic::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-link::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-strike::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-quote::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-heading-1::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-code::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-bullet-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-number-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-undo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-redo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-decrease-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-increase-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-dialogs {
  position: relative; }

trix-toolbar .trix-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.75em;
  padding: 15px 10px;
  background: #fff;
  box-shadow: 0 0.3em 1em #ccc;
  border-top: 2px solid #888;
  border-radius: 5px;
  z-index: 5; }

trix-toolbar .trix-input--dialog {
  font-size: inherit;
  font-weight: normal;
  padding: 0.5em 0.8em;
  margin: 0 10px 0 0;
  border-radius: 3px;
  border: 1px solid #bbb;
  background-color: #fff;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }
  trix-toolbar .trix-input--dialog.validate:invalid {
    box-shadow: #F00 0px 0px 1.5px 1px; }

trix-toolbar .trix-button--dialog {
  font-size: inherit;
  padding: 0.5em;
  border-bottom: none; }

trix-toolbar .trix-dialog--link {
  max-width: 600px; }

trix-toolbar .trix-dialog__link-fields {
  display: flex;
  align-items: baseline; }
  trix-toolbar .trix-dialog__link-fields .trix-input {
    flex: 1; }
  trix-toolbar .trix-dialog__link-fields .trix-button-group {
    flex: 0 0 content;
    margin: 0; }

trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; }

trix-editor [data-trix-mutable]::-moz-selection,
trix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {
  background: none; }

trix-editor [data-trix-mutable]::selection,
trix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection {
  background: none; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::-moz-selection {
  background: highlight; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::selection {
  background: highlight; }

trix-editor [data-trix-mutable].attachment.attachment--file {
  box-shadow: 0 0 0 2px highlight;
  border-color: transparent; }

trix-editor [data-trix-mutable].attachment img {
  box-shadow: 0 0 0 2px highlight; }

trix-editor .attachment {
  position: relative; }
  trix-editor .attachment:hover {
    cursor: default; }

trix-editor .attachment--preview .attachment__caption:hover {
  cursor: text; }

trix-editor .attachment__progress {
  position: absolute;
  z-index: 1;
  height: 20px;
  top: calc(50% - 10px);
  left: 5%;
  width: 90%;
  opacity: 0.9;
  transition: opacity 200ms ease-in; }
  trix-editor .attachment__progress[value="100"] {
    opacity: 0; }

trix-editor .attachment__caption-editor {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }

trix-editor .attachment__toolbar {
  position: absolute;
  z-index: 1;
  top: -0.9em;
  left: 0;
  width: 100%;
  text-align: center; }

trix-editor .trix-button-group {
  display: inline-flex; }

trix-editor .trix-button {
  position: relative;
  float: left;
  color: #666;
  white-space: nowrap;
  font-size: 80%;
  padding: 0 0.8em;
  margin: 0;
  outline: none;
  border: none;
  border-radius: 0;
  background: transparent; }
  trix-editor .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-editor .trix-button.trix-active {
    background: #cbeefa; }
  trix-editor .trix-button:not(:disabled) {
    cursor: pointer; }

trix-editor .trix-button--remove {
  text-indent: -9999px;
  display: inline-block;
  padding: 0;
  outline: none;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid highlight;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25); }
  trix-editor .trix-button--remove::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%; }
  trix-editor .trix-button--remove:hover {
    border-color: #333; }
    trix-editor .trix-button--remove:hover::before {
      opacity: 1; }

trix-editor .attachment__metadata-container {
  position: relative; }

trix-editor .attachment__metadata {
  position: absolute;
  left: 50%;
  top: 2em;
  transform: translate(-50%, 0);
  max-width: 90%;
  padding: 0.1em 0.6em;
  font-size: 0.8em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3px; }
  trix-editor .attachment__metadata .attachment__name {
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }
  trix-editor .attachment__metadata .attachment__size {
    margin-left: 0.2em;
    white-space: nowrap; }

.trix-content {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word; }
  .trix-content * {
    box-sizing: border-box;
    margin: 0;
    padding: 0; }
  .trix-content h1 {
    font-size: 1.2em;
    line-height: 1.2; }
  .trix-content blockquote {
    border: 0 solid #ccc;
    border-left-width: 0.3em;
    margin-left: 0.3em;
    padding-left: 0.6em; }
  .trix-content [dir=rtl] blockquote,
  .trix-content blockquote[dir=rtl] {
    border-width: 0;
    border-right-width: 0.3em;
    margin-right: 0.3em;
    padding-right: 0.6em; }
  .trix-content li {
    margin-left: 1em; }
  .trix-content [dir=rtl] li {
    margin-right: 1em; }
  .trix-content pre {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    font-family: monospace;
    font-size: 0.9em;
    padding: 0.5em;
    white-space: pre;
    background-color: #eee;
    overflow-x: auto; }
  .trix-content img {
    max-width: 100%;
    height: auto; }
  .trix-content .attachment {
    display: inline-block;
    position: relative;
    max-width: 100%; }
    .trix-content .attachment a {
      color: inherit;
      text-decoration: none; }
      .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
        color: inherit; }
  .trix-content .attachment__caption {
    text-align: center; }
    .trix-content .attachment__caption .attachment__name + .attachment__size::before {
      content: ' \2022 '; }
  .trix-content .attachment--preview {
    width: 100%;
    text-align: center; }
    .trix-content .attachment--preview .attachment__caption {
      color: #666;
      font-size: 0.9em;
      line-height: 1.2; }
  .trix-content .attachment--file {
    color: #333;
    line-height: 1;
    margin: 0 2px 2px 2px;
    padding: 0.4em 1em;
    border: 1px solid #bbb;
    border-radius: 5px; }
  .trix-content .attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    position: relative; }
    .trix-content .attachment-gallery .attachment {
      flex: 1 0 33%;
      padding: 0 0.5em;
      max-width: 33%; }
    .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
      flex-basis: 50%;
      max-width: 50%; }
/*
 * Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
 * the trix-editor content (whether displayed or under editing). Feel free to incorporate this
 * inclusion directly in any other asset bundle and remove this file.
 *

*/

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
/* ═══════════════════════════════════════════
   Admin Forms — club/event/news new/edit pages
   Pixel-perfect per Figma node 777:1172
   ═══════════════════════════════════════════ */

.admin-form-page {
  min-height: 100vh;
  padding: 20px 40px 80px;
  display: flex;
  justify-content: center;
}

/* ── Modal/popup mode (used inside admin profile) ── */
.admin-form-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.admin-form-modal-overlay.is-open {
  display: flex;
}

.admin-form-modal-overlay .admin-form-page {
  padding: 0;
  min-height: 0;
  width: 100%;
  animation: afmIn 0.25s ease-out;
}

@keyframes afmIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

body.admin-form-modal-open {
  overflow: hidden;
}

/* Layout: form card + close button column */
.admin-form-layout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 945px; /* 869 + 12 + 62 */
}

.admin-form-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px; /* tiny gap between header and body, both white */
  width: 100%;
  max-width: 869px;
}

/* ── Header card (white, rounded bottom) ── */
.admin-form-header {
  background: var(--white);
  color: var(--text);
  padding: 40px 50px;
  text-align: center;
  border-radius: 0 0 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-form-header-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 0.9;
  margin: 0;
  letter-spacing: 0.005em;
}

/* ── Close button (circular, outside card) ── */
.admin-form-close {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.2s;
  border: none;
}

.admin-form-close:hover {
  background: #f0f0f0;
}

/* ── Body card (white, rounded bottom) ── */
.admin-form-body {
  background: var(--white);
  border-radius: 0 0 40px 40px;
  padding: 40px 50px 50px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.af-form {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

/* Section block (title + fields) */
.af-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Field-to-field gap inside a section — override .af-section gap */
.af-section > .af-field + .af-field {
  margin-top: -10px;  /* tighten from 20px → 10px */
}

/* Subtitle hugs the title, not the content below */
.af-section-title + .af-section-subtitle {
  margin-top: -12px;
}

/* Checkbox group — checkbox + its dependent field */
.af-check-group {
  gap: 8px !important;
}

.af-check-group [hidden],
.af-field[hidden] { display: none; }

/* Section heading — left aligned, serif 26px */
.af-section-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  margin: 0;
  color: var(--text);
}

.af-section-subtitle {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  opacity: 0.5;
  margin: 0;
  text-align: left;
}

/* ── Form fields (bordered card style) ── */
.af-field {
  position: relative;
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.af-field input,
.af-field textarea,
.af-field select {
  width: 100%;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
  background: transparent;
  outline: none;
}

.af-field textarea {
  min-height: 80px;
  resize: vertical;
}

/* Floating label — uppercase, opacity 0.5 */
.af-field label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 17px;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.2s ease;
  background: var(--white);
  padding: 0 4px;
}

.af-field textarea ~ label {
  top: 24px;
  transform: none;
}

/* Label moves up when input has value or focused */
.af-field input:focus ~ label,
.af-field input.has-value ~ label,
.af-field textarea:focus ~ label,
.af-field textarea.has-value ~ label,
.af-field select ~ label,
.af-field select.has-value ~ label {
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.6;
}

/* ── Checkbox row — 24x24 box, 24px gap to label ── */
.af-checkbox-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
}

.af-checkbox-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

/* Group of checkbox + dependent field */
.af-check-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Date field with calendar icon ── */
.af-date-field {
  position: relative;
}

.af-date-field input {
  padding-right: 36px;
}

.af-date-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
  width: 24px;
  height: 24px;
}

/* ── Inline calendar (date picker) ── */
.af-calendar {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.af-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 4px;
}

.af-calendar-month {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.af-calendar-nav {
  display: flex;
  gap: 4px;
}

.af-calendar-nav-btn {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.af-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.af-calendar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: -0.02em;
  color: rgba(34, 34, 34, 0.6);
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}

.af-calendar-cell.weekday {
  cursor: default;
  font-weight: 400;
}

.af-calendar-cell.today,
.af-calendar-cell.selected {
  border-color: var(--text);
  color: var(--text);
}

.af-calendar-cell.disabled {
  color: rgba(34, 34, 34, 0.4);
  cursor: default;
}

.af-calendar-cell.next-month {
  color: rgba(34, 34, 34, 0.2);
}

/* Time inputs */
.af-time-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 391px;
}

.af-time-label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  opacity: 0.5;
  text-transform: uppercase;
}

.af-time-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.af-time-input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
  outline: none;
}

.af-time-arrow {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  opacity: 0.5;
  font-size: 14px;
  display: flex;
  align-items: center;
}

/* Schedule action buttons (Сохранить / Сбросить) */
.af-schedule-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 391px;
}

.af-schedule-save {
  background: var(--text);
  color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.af-schedule-save:hover {
  background: #1a1a1a;
}

.af-schedule-reset {
  background: none;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 18px;
  color: #030303;
  cursor: pointer;
  transition: opacity 0.2s;
}

.af-schedule-reset:hover {
  opacity: 0.6;
}

/* ── Schedule block (КОГДА) — clubs ── */
.af-schedule-block {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.af-schedule-label {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  opacity: 0.5;
  text-transform: uppercase;
}

.af-schedule-entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.af-schedule-entry {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

/* "+" card to open picker */
.af-schedule-add {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  background: none;
  cursor: pointer;
  color: var(--text);
  opacity: 0.4;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  min-height: 58px;
}

.af-schedule-add:hover {
  opacity: 0.8;
}

/* Hide picker by default; show when block has .is-picking */
.af-schedule-block .af-schedule-picker { display: none; }
.af-schedule-block.is-picking .af-schedule-picker { display: flex; }
.af-schedule-block.is-picking .af-schedule-add { display: none; }

.af-schedule-entry-days {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
}

.af-schedule-entry-time {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
}

.af-schedule-entry-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.3;
  font-size: 14px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.af-schedule-entry-remove:hover {
  opacity: 1;
}

/* New entry picker — full width inside КОГДА block */
.af-schedule-picker {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: min(100%, 430px);
}

.af-event-time-panel {
  width: min(100%, 430px);
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.af-picker-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.af-picker-label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  opacity: 0.5;
  text-transform: uppercase;
}

.af-day-picker-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.af-day-btn {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
  font-family: var(--sans);
  font-size: 17px;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  min-width: 44px;
}

.af-day-btn.active {
  border-color: var(--text);
  color: var(--text);
}

/* ── Photo upload area ── */
.af-upload-area {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  height: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.af-upload-area:hover {
  border-color: var(--text);
  background: #fafafa;
}

.af-upload-area.dragover {
  border-color: var(--text);
  background: #f5f5f0;
}

.af-upload-icon {
  opacity: 0.6;
  width: 24px;
  height: 24px;
}

.af-upload-text {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  opacity: 0.5;
}

.af-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Uploaded files list — 3-column grid */
.af-files-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}

.af-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 8px 16px 8px 8px;
  min-width: 0;
}

.af-file-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.af-file-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #d9d9d9;
  object-fit: cover;
  flex-shrink: 0;
}

.af-file-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.af-file-name {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-file-size {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  opacity: 0.5;
}

.af-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
  color: var(--text);
}

.af-file-remove:hover {
  opacity: 1;
}

/* Description blocks (news content) */
.af-desc-blocks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.af-desc-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.af-desc-block .af-field {
  flex: 1;
}

.af-rich-text-hidden { display: none; }

.af-desc-block-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.af-desc-block-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.af-desc-block-btn:hover {
  border-color: var(--text);
}

.af-add-block-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.af-add-block-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.af-add-block-btn:hover {
  opacity: 1;
}

/* ── Members section (club edit) ── */
.af-members-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.af-members-count {
  font-family: var(--sans);
  font-size: 14px;
  opacity: 0.5;
}

.af-members-sort {
  display: flex;
  gap: 16px;
  font-family: var(--sans);
  font-size: 13px;
}

.af-members-sort button {
  color: var(--text);
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.af-members-sort button.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.af-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.af-member-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
}

.af-member-card--removed {
  opacity: 0.35;
}

.af-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e4dd;
}

.af-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-member-avatar-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 34%, #fff 0 22%, transparent 23%), radial-gradient(circle at 50% 112%, #fff 0 48%, transparent 49%), #ddd;
}

.af-member-info {
  flex: 1;
  min-width: 0;
}

.af-member-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.af-member-date {
  font-family: var(--sans);
  font-size: 11px;
  opacity: 0.4;
}

.af-member-remove,
.af-member-undo {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.2s;
  flex-shrink: 0;
  padding: 4px;
}

.af-member-remove:hover,
.af-member-undo:hover {
  opacity: 1;
}

/* ── Submit button — full-width, black, 8px radius ── */
.af-submit-wrap {
  width: 100%;
  margin-top: 8px;
}

.af-submit-btn {
  width: 100%;
  background: #030303;
  color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 18px 40px;
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  transition: background 0.2s;
}

.af-submit-btn:hover {
  background: #1a1a1a;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .admin-form-page {
    padding: 16px 16px 60px;
  }

  .admin-form-header {
    padding: 36px 24px;
  }

  .admin-form-header-title {
    font-size: 32px;
  }

  .admin-form-body {
    padding: 32px 24px;
    gap: 32px;
  }

  .admin-form-close {
    width: 48px;
    height: 48px;
  }

  .af-section-title {
    font-size: 24px;
  }

  .af-field input,
  .af-field textarea,
  .af-field select,
  .af-field label {
    font-size: 16px;
  }

  .af-checkbox-row {
    font-size: 16px;
  }

  .af-members-grid {
    grid-template-columns: 1fr;
  }
}
/* ═══════════════════════════════════════════
   Admin Profile — two-column layout
   ═══════════════════════════════════════════ */

.admin-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(420px, 514px) minmax(0, 1fr);
  gap: 1px;
  min-height: 730px;
}

/* ── Left column: edit form ── */
.admin-left {
  background: var(--white);
  border-radius: 100px 0 0 100px;
  padding: 48px 42px 38px;
  display: flex;
  flex-direction: column;
}

.admin-left-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.admin-left .edit-profile-title-block {
  margin-bottom: 18px;
}

.admin-left .edit-profile-bracket {
  font-family: "Buda", Georgia, serif;
  font-size: 76px;
  top: 12px;
}

.admin-left .edit-profile-title-line1,
.admin-left .edit-profile-title-line2 {
  font-size: 36px;
  line-height: 0.95;
  letter-spacing: 0;
}

.admin-left .edit-profile-form {
  width: 100%;
}

.admin-left .edit-profile-avatar-wrap {
  margin-bottom: 36px;
}

.admin-left .edit-profile-avatar {
  width: 96px;
  height: 96px;
}

.admin-left .auth-fields {
  margin-bottom: 16px;
}

.admin-left .edit-profile-password-row {
  margin-bottom: 16px;
}

.admin-left .edit-profile-submit-wrap {
  margin-top: 4px;
}

/* ── Right column: admin panels ── */
.admin-right {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.admin-card {
  background: var(--white);
  padding: 40px 42px;
}

.admin-card:first-child {
  border-radius: 0 100px 0 0;
}

.admin-card:last-child {
  border-radius: 0 0 100px 0;
}

.admin-card-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 24px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0;
}

.admin-card-header .profile-card-link {
  flex: 0 0 auto;
  margin-left: auto;
}

.admin-card-header .admin-card-title {
  margin-bottom: 0;
}

/* ── Applications grid ── */
.admin-applications-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-app-card {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s, transform 0.3s;
}

.admin-app-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

.admin-app-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.admin-app-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-app-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.admin-app-club {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
}

.admin-app-type {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-light);
}

.admin-app-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.admin-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  flex: 1;
  padding: 5px 10px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-app-btn--reject {
  background: none;
  border: 1px solid rgba(204, 0, 0, 0.45);
  color: #c44;
}

.admin-app-btn--reject:hover {
  border-color: #cc0000;
  color: #cc0000;
}

.admin-app-btn--approve {
  background: none;
  border: 1px solid rgba(45, 170, 45, 0.55);
  color: #2aaa2a;
}

.admin-app-btn--approve:hover {
  border-color: #2d8a2d;
  color: #2d8a2d;
}

.admin-empty-small {
  font-family: var(--sans);
  font-size: 15px;
  opacity: 0.35;
  padding: 20px 0;
}

/* ── Manage row: 3 cards ── */
.admin-manage-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  flex: 1;
}

.admin-card--manage {
  display: flex;
  flex-direction: column;
  padding: 36px 38px 42px;
  border-radius: 0 !important;
}

.admin-manage-row .admin-card--manage:last-child {
  border-radius: 0 0 100px 0 !important;
}

.admin-card--manage .admin-card-title {
  font-size: 32px;
  margin-bottom: 0;
}

.admin-manage-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.admin-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 252px;
  height: 178px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.admin-add-btn:hover {
  border-color: var(--text);
  background: #fafafa;
}

.admin-add-icon {
  font-size: 40px;
  font-weight: 200;
  line-height: 1;
  color: var(--text);
  opacity: 0.3;
  transition: opacity 0.2s;
}

.admin-add-btn:hover .admin-add-icon {
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-left {
    border-radius: 40px 40px 0 0;
    padding: 40px 24px;
  }

  .admin-card:first-child {
    border-radius: 0;
  }

  .admin-manage-row {
    grid-template-columns: 1fr;
  }

  .admin-manage-row .admin-card--manage:last-child {
    border-radius: 0 0 40px 40px !important;
  }
}

@media (max-width: 1250px) and (min-width: 1025px) {
  .admin-layout { grid-template-columns: 390px minmax(0, 1fr); }
  .admin-applications-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-left { padding-inline: 28px; }
}

@media (max-width: 1400px) and (min-width: 1025px) {
  .admin-card--manage { padding-inline: 28px; }
  .admin-card--manage .admin-card-title { font-size: 27px; }
  .admin-card-header .profile-card-link { font-size: 13px; }
}

@media (max-width: 768px) {
  .admin-applications-grid {
    grid-template-columns: 1fr;
  }

  .admin-add-btn {
    height: 120px;
  }
}
/* Login/Register forms */

.auth-page {
  background: var(--white);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.auth-form-wrap {
  width: 351px;
}

.auth-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-field {
  position: relative;
  width: 100%;
  height: 49px;
}

.auth-field input {
  width: 100%;
  height: 100%;
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 14px 16px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  border-color: #000;
}

.auth-field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.2s ease;
}

.auth-field input:focus ~ label,
.auth-field input.has-value ~ label {
  top: 10px;
  transform: translateY(0);
  font-size: 11px;
  opacity: 0.4;
}

.auth-button {
  width: 100%;
  height: 43px;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.auth-button:hover {
  background: #333;
}

.auth-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.auth-links a {
  color: var(--text-light);
  transition: color 0.2s;
}

.auth-links a:hover {
  color: var(--text);
}

.login-links-register {
  font-size: 13px;
  color: var(--text-light);
}

.login-links-register a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.login-links-register a:hover {
  color: var(--text);
}

.auth-links-forgot {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.auth-hint {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 5px;
}

.auth-error {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: #cc0000;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  border-radius: 4px;
}
/* Base styles */

body {
  background-color: var(--bg);
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  background: var(--white);
  margin-bottom: 1px;
}

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--content-padding);
}

.section-title {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 300;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  margin-bottom: 30px;
}

.section-title .bracket {
  position: relative;
  top: 14px;
  font-weight: 300;
}

.page-title {
  font-family: var(--serif);
  font-size: 186px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  line-height: 0.95;
}

.page-description {
  font-family: var(--sans);
  font-size: 16px;
  text-align: center;
  max-width: 490px;
  margin: 40px auto 0;
  color: var(--text-light);
  line-height: 1.5;
}
/* Calendar section — matches Figma node 1:771 */

.cal {
  background: var(--white);
  border-radius: 100px;
  padding: 80px 0 100px;
  margin-bottom: 1px;
  text-align: center;
}

.cal-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--content-padding);
}

/* Big date display */
.cal-date {
  margin-bottom: 24px;
}

.cal-date-day {
  font-family: var(--serif);
  font-size: 160px;
  font-weight: 400;
  line-height: 0.85;
  font-style: italic;
  color: var(--text);
}

.cal-date-month-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  margin-top: -10px;
}

.cal-month-name {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
}

.cal-bracket {
  font-family: var(--serif);
  font-size: 150px;
  font-weight: 300;
  line-height: 0.85;
  position: relative;
  top: 14px;
  color: var(--text);
}

/* All events link */
.cal-all-events {
  margin-bottom: 40px;
}

.cal-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.cal-all-link:hover {
  opacity: 0.5;
}

.cal-arrow-right {
  transition: transform 0.2s;
}

.cal-all-link:hover .cal-arrow-right {
  transform: translateX(3px);
}

/* Week nav */
.cal-week-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}

.cal-nav-arrow {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px 16px;
  transition: color 0.2s;
  user-select: none;
  line-height: 1;
  text-decoration: none;
}

.cal-nav-arrow:hover {
  color: var(--text);
}

.cal-days {
  display: flex;
  gap: 0;
  align-items: center;
}

.cal-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
  text-decoration: none;
  color: var(--text-light);
}

.cal-day-col:hover {
  opacity: 0.6;
}

.cal-day-col.active {
  color: var(--text);
}

.cal-weekday {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cal-day-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  position: relative;
}

/* Active day brackets */
.cal-day-col.active .cal-day-num::before {
  content: '(';
  position: absolute;
  left: -14px;
  top: 2px;
  font-weight: 300;
  font-size: 36px;
  color: var(--text);
}

.cal-day-col.active .cal-day-num::after {
  content: ')';
  position: absolute;
  right: -14px;
  top: 2px;
  font-weight: 300;
  font-size: 36px;
  color: var(--text);
}

/* Filter tabs */
.cal-filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  padding: 0;
}

.cal-filter-tab {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px 2px;
  border: none;
  background: none;
  border-bottom: 1.5px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.cal-filter-tab:hover {
  color: #555;
}

.cal-filter-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Event cards — 3-column, center elevated */
.cal-events-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 0 80px;
  align-items: flex-start;
}

.cal-event-card {
  text-align: left;
  flex: 1;
  max-width: 320px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.cal-event-card:hover {
  transform: translateY(-4px);
}

.cal-event-card.featured {
  margin-top: -20px;
}

.cal-event-card.side {
  margin-top: 40px;
}

/* Event image */
.cal-event-image {
  width: 100%;
  aspect-ratio: 0.85;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
  background: #e8e4dd;
}

.cal-event-card.featured .cal-event-image {
  aspect-ratio: 0.78;
}

.cal-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.cal-event-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7a7060, #a09278);
  border-radius: 12px;
}

.cal-event-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
}

.cal-event-card:hover .cal-event-image::after {
  background: rgba(0,0,0,0.08);
}

/* Event meta */
.cal-event-category {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.cal-event-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text);
}

.cal-event-details {
  display: flex;
  gap: 24px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

.cal-detail-col {
  display: flex;
  flex-direction: column;
}

/* No events state */
.cal-no-events {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-light);
  padding: 60px 0;
}
/* Стили для корзины */

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.cart-counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-minus, .cart-plus, .cart-remove {
  background-color: #ccc;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}
/* ═══════════════════════════════════════════
   Club Show Page — pixel-perfect per Figma 401:5800
   ═══════════════════════════════════════════ */

.cs-page {
  background: var(--bg, #d9d9d9);
  color: var(--text, #1a1a1a);
}

.cs-admin-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 16px;
}

/* ═══════════ HERO ═══════════ */
.cs-hero {
  background: var(--white);
  border-radius: 0 0 100px 100px;
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.cs-hero-inner {
  position: relative;
  padding-bottom: 60px;
}

/* Title with brackets */
.cs-title-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.cs-title-bracket {
  font-family: "Buda", Georgia, serif;
  font-size: 193px;
  font-weight: 300;
  line-height: 0.7;
  color: var(--text);
  position: relative;
  top: 18px;
}

.cs-title {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  text-transform: none;
  text-align: center;
  line-height: 1;
  margin: 0;
  letter-spacing: 0.005em;
  max-width: 1100px;
  text-wrap: balance;
}

/* CTA "Записаться →" */
.cs-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  margin: 0 auto 60px;
  text-align: center;
  width: 100%;
  justify-content: center;
}

.cs-cta-link--pending,
.cs-cta-link--member {
  cursor: default;
  opacity: 0.6;
}

.cs-arrow {
  font-size: 22px;
  display: inline-block;
  transform: translateY(-1px);
}

/* Info row: ДЛЯ КОГО / КОГДА / МЕСТО */
.cs-info-row {
  display: flex;
  justify-content: center;
  gap: 140px;
  flex-wrap: wrap;
}

.cs-info-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  min-width: 180px;
}

.cs-info-label {
  font-family: var(--sans);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
}

.cs-info-value {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.2;
  max-width: 220px;
}

/* Photo strip — full-width, varying widths */
.cs-photo-strip {
  display: grid;
  grid-template-columns: 1fr 1.5fr 2fr 1fr 1fr;
  gap: 8px;
  height: 233px;
  margin-top: 60px;
  padding: 0 0;
  width: 100%;
}

.cs-photo {
  border-radius: 12px;
  overflow: hidden;
  background: #e8e4dd;
  height: 100%;
}

.cs-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d4cfc4 0%, #e8e4dd 50%, #c8c2b6 100%);
}

.cs-share-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════ КТО МЫ + МЫ ДЕЛИМСЯ ═══════════ */
.cs-about {
  background: var(--white);
  border-radius: 100px;
  margin-top: 1px;
  padding: 80px 0;
}

.cs-about-inner {
  max-width: 1200px;
}

.cs-about-text {
  text-align: center;
  margin-bottom: 80px;
  max-width: 803px;
  margin-left: auto;
  margin-right: auto;
}

.cs-about-title {
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 40px;
}

.cs-about-desc {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* "Мы делимся…" */
.cs-share {
  position: relative;
}

.cs-share-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  text-align: center;
  margin: 0 0 60px;
}

.cs-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.cs-share-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 12px;
}

/* Stagger cards 2 and 4 lower (zigzag like Figma) */
.cs-share-card--2,
.cs-share-card--4 {
  margin-top: 100px;
}

.cs-share-num {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
}

.cs-share-label {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  min-height: 40px;
}

.cs-share-img {
  width: 130px;
  height: 130px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d4cfc4 0%, #e8e4dd 50%, #c8c2b6 100%);
  margin-top: 20px;
}

/* ═══════════ ПРОШЕДШИЕ СОБЫТИЯ ═══════════ */
.cs-past {
  background: var(--white);
  border-radius: 100px;
  margin-top: 1px;
  padding: 90px 0;
  overflow: hidden;
}

.cs-section-title {
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  margin: 0 0 60px;
}

/* Past events — zigzag layout per Figma */
.cs-past-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  width: 100%;
  align-items: start;
}

.cs-past-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

/* Zigzag effect: cards 1, 3, 5 lower; 2, 4 higher */
.cs-past-card--1 { margin-top: 65px; }
.cs-past-card--2 { margin-top: 0; }
.cs-past-card--3 { margin-top: 65px; }
.cs-past-card--4 { margin-top: 142px; }
.cs-past-card--5 { margin-top: 142px; }

.cs-past-img {
  width: 284px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #e8e4dd;
  margin-bottom: 24px;
}

.cs-past-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-past-img--placeholder {
  background: linear-gradient(135deg, #d4cfc4 0%, #e8e4dd 50%, #c8c2b6 100%);
}

.cs-past-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-past-date {
  font-family: var(--sans);
  font-size: 14px;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.cs-past-title {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.2;
  max-width: 220px;
  margin: 0 auto;
}

/* ═══════════ ПОСЕЩЕНИЕ ═══════════ */
.cs-visit,
.cs-schedule {
  background: var(--white);
  border-radius: 100px;
  margin-top: 1px;
  padding: 80px 0;
}

.cs-visit-inner,
.cs-schedule-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Section title with brackets */
.cs-section-title-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.cs-section-bracket {
  font-family: var(--serif);
  font-size: 147px;
  font-weight: 300;
  line-height: 0.7;
  color: var(--text);
  position: relative;
  top: 14px;
}

.cs-section-title--inline {
  font-size: 96px;
  margin: 0;
  text-align: center;
}

.cs-visit-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 32px;
}

.cs-visit-desc {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 613px;
  opacity: 0.8;
}

/* ═══════════ РАСПИСАНИЕ ═══════════ */
.cs-schedule-rows {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1352px;
  margin: 0 auto;
}

.cs-schedule-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  padding: 24px 0;
  border-top: 1px solid #e0dcd5;
  align-items: flex-start;
}

.cs-schedule-row:last-child {
  border-bottom: 1px solid #e0dcd5;
}

.cs-schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-decoration: none;
  color: var(--text);
  text-align: left;
}

.cs-schedule-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 90px;
  flex-shrink: 0;
}

.cs-schedule-day {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  font-weight: 400;
}

.cs-schedule-month {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  opacity: 0.6;
  text-transform: uppercase;
}

.cs-schedule-title {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.3;
  flex: 1;
  padding-top: 4px;
}

/* ═══════════ QUOTE ═══════════ */
.cs-quote-section {
  background: var(--white);
  border-radius: 100px;
  margin-top: 1px;
  padding: 100px 0 80px;
}

.cs-quote-inner {
  max-width: 1240px;
  text-align: center;
}

.cs-quote {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 40px;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.cs-quote-author {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

/* ═══════════ ПОХОЖИЕ КЛУБЫ ═══════════ */
.cs-similar {
  background: var(--white);
  border-radius: 100px 100px 0 0;
  margin-top: 1px;
  padding: 80px 0 100px;
}

.cs-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cs-similar-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cs-similar-img {
  width: 188px;
  height: 188px;
  border-radius: 16px;
  overflow: hidden;
  background: #e8e4dd;
  flex-shrink: 0;
}

.cs-similar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-similar-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d4cfc4 0%, #e8e4dd 50%, #c8c2b6 100%);
}

.cs-similar-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.cs-similar-cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 88px;
}

.cs-similar-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.1;
}

.cs-similar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-similar-when {
  font-family: var(--sans);
  font-size: 16px;
}

.cs-similar-who {
  font-family: var(--sans);
  font-size: 14px;
  opacity: 0.6;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1200px) {
  .cs-title { font-size: 90px; }
  .cs-title-bracket { font-size: 150px; }
  .cs-section-title { font-size: 72px; }
  .cs-section-title--inline { font-size: 72px; }
  .cs-section-bracket { font-size: 110px; }
  .cs-about-title { font-size: 72px; }
  .cs-quote { font-size: 48px; }
}

@media (max-width: 900px) {
  .cs-hero { border-radius: 0 0 60px 60px; padding: 40px 0 0; }
  .cs-about,
  .cs-past,
  .cs-visit,
  .cs-schedule,
  .cs-quote-section,
  .cs-similar { border-radius: 60px; padding: 50px 0; }

  .cs-title { font-size: 56px; }
  .cs-title-bracket { font-size: 100px; top: 8px; }
  .cs-section-title { font-size: 48px; }
  .cs-section-title--inline { font-size: 48px; }
  .cs-section-bracket { font-size: 80px; top: 8px; }
  .cs-about-title { font-size: 48px; }

  .cs-info-row { gap: 32px; }
  .cs-photo-strip { grid-template-columns: repeat(3, 1fr); height: 180px; }
  .cs-photo:nth-child(n+4) { display: none; }

  .cs-share-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-share-card--2 { margin-top: 0; }
  .cs-share-card--4 { margin-top: 0; }

  .cs-past-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cs-past-card { margin-top: 0 !important; }
  .cs-past-card--5 { display: none; }
  .cs-past-img { width: 100%; }

  .cs-schedule-row { grid-template-columns: 1fr; gap: 16px; }

  .cs-quote { font-size: 28px; }

  .cs-similar-grid { grid-template-columns: 1fr; }
  .cs-similar-cta { margin-bottom: 24px; }
}
.clubs-section{
  margin-top:120px;
  display:flex;
  flex-direction:column;
  gap:160px;
}

.club-card{
  max-width:900px;
}

.club-title{
  font-size:150px;
  line-height:0.9;
  margin-bottom:40px;
}

.club-images{
  display:flex;
  gap:20px;
  margin-bottom:30px;
}

.club-image{
  width:300px;
  height:300px;
  object-fit:cover;
}

.club-description{
  max-width:600px;
  font-size:20px;
  margin-bottom:20px;
}

.club-link{
  font-size:18px;
}
/* Edit Profile page */

.edit-profile-page {
  background: var(--white);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  border-radius: 100px;
  margin: 0 auto;
}

.edit-profile-wrap {
  width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title block with brackets */
.edit-profile-title-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 40px;
}

.edit-profile-bracket {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 300;
  line-height: 0.85;
  position: relative;
  top: 14px;
  color: var(--text);
}

.edit-profile-title-text {
  text-align: center;
}

.edit-profile-title-line1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.edit-profile-title-line2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* Avatar */
.edit-profile-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.edit-profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
}

.edit-profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.edit-profile-avatar-placeholder {
  width: 100%;
  height: 100%;
}

.edit-profile-avatar-placeholder svg {
  width: 100%;
  height: 100%;
}

.edit-profile-avatar-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border, #d9d9d9);
  cursor: pointer;
  margin-top: -18px;
  position: relative;
  z-index: 2;
  transition: opacity 0.2s;
}

.edit-profile-avatar-edit:hover {
  opacity: 0.6;
}

.edit-profile-avatar-input {
  display: none;
}

/* Form fields — reuse auth-fields from auth.css */
.edit-profile-form {
  width: 100%;
}

.edit-profile-form .auth-fields {
  margin-bottom: 20px;
}

/* Notice */
.edit-profile-notice {
  font-family: var(--sans);
  font-size: 13px;
  color: #b58900;
  margin-bottom: 16px;
  text-align: center;
}

/* Password row */
.edit-profile-password-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  border-top: 1px solid var(--border, #e8e4dd);
  border-bottom: 1px solid var(--border, #e8e4dd);
  margin-bottom: 20px;
}

.edit-profile-password-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.edit-profile-password-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.edit-profile-password-link:hover {
  opacity: 0.5;
}

.edit-profile-password-link .arrow {
  transition: transform 0.2s;
}

.edit-profile-password-link:hover .arrow {
  transform: translateX(3px);
}

/* Submit */
.edit-profile-submit-wrap {
  width: 100%;
  margin-top: 8px;
}

/* Error messages */
.edit-profile-form .auth-error {
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   PASSWORD CHANGE POPUP (two-step modal)
   ═══════════════════════════════════════════ */

.pw-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pw-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pw-modal {
  position: relative;
  background: var(--white);
  border-radius: 32px;
  width: 480px;
  max-width: 92vw;
  padding: 48px 40px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.pw-modal-overlay.active .pw-modal {
  transform: translateY(0);
}

/* Close X */
.pw-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.pw-modal-close:hover {
  background: #f0f0f0;
}

/* Title */
.pw-modal-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

/* Fields container */
.pw-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.pw-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Larger input fields for modal */
.pw-field-large {
  height: 70px;
}

.pw-field-large input {
  font-size: 16px;
  padding: 28px 48px 8px 20px;
  letter-spacing: 2px;
}

.pw-field-large label {
  left: 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pw-field-large input:focus ~ label,
.pw-field-large input.has-value ~ label {
  top: 14px;
  font-size: 11px;
}

/* Eye toggle button */
.pw-eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.pw-eye-btn:hover {
  opacity: 1;
}

/* Forgot password link */
.pw-forgot-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  margin-left: 4px;
}

.pw-forgot-link:hover {
  opacity: 1;
}

/* Modal button */
.pw-modal-btn {
  width: 100%;
  height: 52px;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
}

.pw-modal-btn .arrow {
  margin-left: 8px;
}

/* Error message */
.pw-modal-error {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: #cc0000;
  text-align: center;
}

/* Success text */
.pw-modal-success-text {
  font-family: var(--sans);
  font-size: 16px;
  text-align: center;
  margin-bottom: 28px;
  color: var(--text);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .edit-profile-page {
    padding: 40px 20px;
    border-radius: 40px;
  }

  .edit-profile-wrap {
    width: 100%;
    max-width: 380px;
  }

  .edit-profile-bracket {
    font-size: 60px;
    top: 10px;
  }

  .edit-profile-title-line1,
  .edit-profile-title-line2 {
    font-size: 28px;
  }

  .pw-modal {
    padding: 36px 24px 28px;
    border-radius: 24px;
  }

  .pw-modal-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .pw-field-large {
    height: 60px;
  }

  .pw-field-large input {
    font-size: 14px;
    padding: 24px 44px 6px 16px;
  }
}
/* Education center page */

.edu-page {
  background: var(--bg);
  color: #030303;
  overflow: hidden;
}

.edu-hero,
.edu-section {
  background: var(--white);
  box-sizing: border-box;
  margin: 1px 0 0;
  max-width: none;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.edu-hero {
  border-radius: 100px 100px 0 0;
  min-height: 922px;
}

.edu-hero-title-wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
  left: 50%;
  max-width: 1212px;
  position: absolute;
  text-align: center;
  top: 287px;
  transform: translateX(-50%);
  width: calc(100% - 300px);
  z-index: 2;
}

.edu-hero-title {
  color: #222;
  font-family: var(--serif);
  font-size: 190px;
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
  text-transform: none;
}

.edu-hero-subtitle {
  color: #222;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  max-width: 490px;
}

.edu-program-label {
  color: #030303;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 18px;
  gap: 16px;
  line-height: 1.16;
  opacity: 0.5;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  z-index: 1;
}

.edu-program-label span,
.edu-program-label strong {
  display: block;
  font-weight: 400;
}

.label-1 { left: calc(50% - 288px); top: 110px; width: 145px; }
.label-2 { left: calc(50% + 148px); top: 110px; width: 160px; }
.label-3 { left: calc(50% - 536px); top: 231px; width: 170px; }
.label-4 { right: calc(50% - 536px); top: 231px; width: 120px; }
.label-5 { left: 0; top: 351px; width: 200px; }
.label-6 { right: 0; top: 351px; width: 200px; }

.edu-sections {
  background: var(--bg);
}

.edu-section {
  min-height: 1079px;
}

.edu-section--1 {
  border-radius: 0 0 100px 100px;
  min-height: 1376px;
}

.edu-section--2,
.edu-section--4,
.edu-section--6 {
  border-radius: 100px 100px 0 0;
}

.edu-section--3,
.edu-section--5 {
  border-radius: 0 0 100px 100px;
}

.edu-section-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: inherit;
  padding: 102px 0 84px;
  position: relative;
}

.edu-section-heading {
  align-items: center;
  display: grid;
  grid-template-columns: 86px minmax(0, auto) 86px;
  justify-content: center;
  max-width: 1430px;
  position: relative;
  text-align: center;
  width: 100%;
}

.edu-section-title {
  font-family: var(--serif);
  font-size: 150px;
  font-weight: 400;
  line-height: 0.8;
  margin: 0;
  max-width: 1276px;
  text-align: center;
}

.edu-title-bracket {
  font-family: "Buda", Georgia, serif;
  font-size: 240px;
  font-weight: 400;
  line-height: 0.8;
}

.edu-cta {
  color: #030303;
  display: inline-flex;
  font-family: var(--sans);
  font-size: 18px;
  gap: 13px;
  line-height: 1;
  margin-top: 52px;
  text-decoration: none;
}

.edu-cta:hover {
  opacity: 0.6;
}

.edu-section-description {
  color: #222;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.2;
  margin: 42px 0 0;
  max-width: 660px;
  text-align: center;
}

.edu-info-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 96px;
  text-align: center;
}

.edu-info-row--1 {
  margin-top: 74px;
}

.edu-info-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 160px;
}

.edu-info-label {
  color: #222;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
  opacity: 0.5;
  text-transform: uppercase;
}

.edu-info-value {
  color: #222;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.2;
}

.edu-card-rail {
  align-items: flex-start;
  box-sizing: border-box;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 6px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 80px max(360px, calc((100vw - 1512px) / 2 + 360px)) 96px;
  position: relative;
  scroll-behavior: smooth;
  scroll-padding-inline: max(360px, calc((100vw - 1512px) / 2 + 360px));
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.edu-card-rail::-webkit-scrollbar {
  display: none;
}

.edu-card-rail::before,
.edu-card-rail::after {
  display: none;
}

.edu-event-card {
  align-items: center;
  display: flex;
  flex: 0 0 284px;
  flex-direction: column;
  gap: 24px;
  scroll-snap-align: center;
  text-align: center;
}

.edu-event-card--main {
  transform: translateY(-65px);
}

.edu-event-card--soft {
  opacity: 0.6;
}

.edu-event-card--ghost {
  opacity: 0.2;
  transform: translateY(77px);
}

.edu-event-card--wide {
  flex-basis: 467px;
}

.edu-card-rail.is-carousel .edu-event-card {
  opacity: 0.22;
  transform: translateY(77px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.edu-card-rail.is-carousel .edu-event-card.is-adjacent {
  opacity: 0.6;
  transform: translateY(0);
}

.edu-card-rail.is-carousel .edu-event-card.is-active {
  opacity: 1;
  transform: translateY(-65px);
}

.edu-card-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.edu-card-rail.is-dragging .edu-event-card {
  pointer-events: none;
}

.edu-card-image {
  border-radius: 16px;
  height: 286px;
  overflow: hidden;
  width: 284px;
}

.edu-event-card--wide .edu-card-image {
  width: 467px;
}

.edu-card-image img,
.edu-subcard-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.edu-card-copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 180px;
}

.edu-card-date {
  color: #000;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
  opacity: 0.5;
}

.edu-card-title {
  color: #000;
  font-family: "Onest", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.edu-subcards {
  display: flex;
  gap: 150px;
  justify-content: center;
  margin-top: 82px;
  position: relative;
  z-index: 2;
}

.edu-subcards--3 {
  gap: 160px;
}

.edu-subcard {
  align-items: center;
  display: flex;
  flex: 0 0 277px;
  flex-direction: column;
  gap: 44px;
  text-align: center;
}

.edu-subcard-image {
  border-radius: 16px;
  height: 230px;
  overflow: hidden;
  width: 230px;
}

.edu-subcards--3 .edu-subcard-image {
  height: 225px;
  width: 225px;
}

.edu-subcard-copy {
  align-items: center;
  color: #030303;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-subcard-copy h3 {
  font-family: "Onest", Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

.edu-subcard-copy p {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.05;
  margin: 0;
}

@media (max-width: 1200px) {
  .edu-hero {
    min-height: 760px;
  }

  .edu-hero-title-wrap {
    top: 245px;
    width: calc(100% - 120px);
  }

  .edu-hero-title {
    font-size: 136px;
  }

  .edu-program-label {
    font-size: 14px;
  }

  .label-1 { left: calc(50% - 246px); }
  .label-2 { left: calc(50% + 110px); }
  .label-3 { left: calc(50% - 430px); }
  .label-4 { right: calc(50% - 430px); }

  .edu-section-title {
    font-size: 112px;
  }

  .edu-title-bracket {
    font-size: 170px;
  }

  .edu-subcards,
  .edu-subcards--3 {
    gap: 64px;
  }
}

@media (max-width: 768px) {
  .edu-hero {
    border-radius: 44px 44px 0 0;
    min-height: 590px;
  }

  .edu-hero-title-wrap {
    gap: 24px;
    top: 168px;
    width: calc(100% - 40px);
  }

  .edu-hero-title {
    font-size: 48px;
    line-height: 1;
  }

  .edu-hero-subtitle {
    font-size: 15px;
    max-width: 320px;
  }

  .edu-hero-programs {
    display: none;
  }

  .edu-section,
  .edu-section--1 {
    border-radius: 44px;
    min-height: auto;
  }

  .edu-section-inner {
    padding: 58px 20px 64px;
  }

  .edu-section-heading {
    grid-template-columns: 26px minmax(0, auto) 26px;
  }

  .edu-section-title {
    font-size: 43px;
    line-height: 0.95;
    max-width: 320px;
  }

  .edu-title-bracket {
    font-size: 72px;
  }

  .edu-cta {
    font-size: 16px;
    margin-top: 28px;
  }

  .edu-section-description {
    font-size: 16px;
    margin-top: 28px;
    max-width: 330px;
  }

  .edu-info-row,
  .edu-info-row--1 {
    flex-direction: column;
    gap: 24px;
    margin-top: 42px;
  }

  .edu-info-value {
    font-size: 18px;
  }

  .edu-card-rail {
    gap: 14px;
    justify-content: flex-start;
    margin-top: 26px;
    padding: 20px calc((100% - 220px) / 2) 8px;
    scroll-padding-inline: calc((100% - 220px) / 2);
    scroll-snap-type: x proximity;
    width: calc(100% + 40px);
  }

  .edu-card-rail.is-carousel .edu-event-card {
    opacity: 0.32;
    transform: translateY(24px);
  }

  .edu-card-rail.is-carousel .edu-event-card.is-adjacent {
    opacity: 0.72;
    transform: translateY(8px);
  }

  .edu-card-rail.is-carousel .edu-event-card.is-active {
    opacity: 1;
    transform: translateY(0);
  }

  .edu-card-rail::before,
  .edu-card-rail::after {
    display: none;
  }

  .edu-event-card,
  .edu-event-card--wide {
    flex-basis: 220px;
    opacity: 1;
    scroll-snap-align: center;
    transform: none;
  }

  .edu-card-image,
  .edu-event-card--wide .edu-card-image {
    height: 220px;
    width: 220px;
  }

  .edu-subcards,
  .edu-subcards--3 {
    flex-direction: column;
    gap: 42px;
    margin-top: 52px;
  }

  .edu-subcard {
    flex-basis: auto;
    gap: 24px;
  }

  .edu-subcard-image,
  .edu-subcards--3 .edu-subcard-image {
    height: 220px;
    width: 220px;
  }

  .edu-subcard-copy h3 {
    font-size: 26px;
  }
}
.error-page{
  height:80vh;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  text-align:center;
}

.error-code{
  font-size:220px;
}

.error-description{
  width:420px;
  font-size: 20px;
}

.error-button{
  background:black;
  color:white;

  padding:12px 24px;

  text-decoration:none;
}
/* ═══════════════════════════════════════════
   Event Popup — opens from calendar cards
   ═══════════════════════════════════════════ */

/* Overlay */
.ev-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Popup container */
.ev-popup {
  position: relative;
  background: var(--white, #fff);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: evPopupIn 0.25s ease-out;
}

@keyframes evPopupIn {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Close button */
.ev-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--text, #1a1a1a);
  background: var(--white, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text, #1a1a1a);
}

.ev-popup-close:hover {
  background: #f0f0f0;
}

/* Header */
.ev-popup-header {
  padding: 40px 32px 28px;
  text-align: center;
}

.ev-popup-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  color: var(--text, #1a1a1a);
}

.ev-popup-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ev-popup-date {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text, #1a1a1a);
  opacity: 0.5;
}

.ev-popup-club {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text, #1a1a1a);
  opacity: 0.5;
}

/* Body — image + details */
.ev-popup-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white, #fff);
  border-radius: 20px;
  margin: 0 24px;
  padding: 28px;
  border: 1px solid #eee;
}

.ev-popup-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #e8e8e8;
}

.ev-popup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-popup-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-left: 28px;
}

.ev-popup-detail-label {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  margin-bottom: 6px;
}

.ev-popup-detail-value {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--text, #1a1a1a);
}

/* CTA button */
.ev-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px;
  padding: 18px 32px;
  background: var(--text, #1a1a1a);
  color: var(--white, #fff);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s;
}

.ev-popup-btn:hover {
  background: #333;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ev-popup-overlay {
    padding: 20px;
  }

  .ev-popup {
    border-radius: 20px;
  }

  .ev-popup-header {
    padding: 32px 24px 20px;
  }

  .ev-popup-title {
    font-size: 24px;
  }

  .ev-popup-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
  }

  .ev-popup-body {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 16px;
    padding: 20px;
  }

  .ev-popup-details {
    padding-left: 0;
    gap: 20px;
  }

  .ev-popup-btn {
    margin: 16px;
    padding: 16px 24px;
  }
}
/* Events Index Page — /events */

.events-page {
  width: 100%;
  min-height: 1092px;
  margin: 1px 0 0;
  padding: 76px clamp(18px, 1.6vw, 24px) 170px;
  overflow: hidden;
  background: var(--white);
  border-radius: 100px 100px 0 0;
}

.events-shell {
  width: 100%;
  margin: 0 auto;
}

.events-title-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 134px;
  margin: 0 0 43px;
}

.events-bracket {
  font-family: "Buda", Georgia, serif;
  font-size: 240px;
  font-weight: 400;
  line-height: 0.55;
  color: var(--text);
}

.events-title {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: none;
}

.events-time-tabs,
.events-category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.events-time-tabs {
  margin: 0 0 28px;
}

.events-category-tabs {
  margin: 0 0 44px;
}

.events-time-tab,
.events-category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 22px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.events-category-tab:first-child:not(.active) {
  opacity: 0.6;
}

.events-time-tab:hover,
.events-category-tab:hover {
  opacity: 0.72;
}

.events-time-tab.active,
.events-category-tab.active {
  opacity: 1;
}

.events-time-tab svg {
  flex: 0 0 auto;
}

.events-date-input {
  position: absolute;
  top: 100%;
  right: 50%;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.events-page .events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 480px));
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1464px;
  margin: 0 auto;
  padding: 0;
  gap: 12px;
}

.ev-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.ev-card:hover {
  background: #fbfbfb;
}

.ev-card-link,
.ev-card--placeholder {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  min-height: 198px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.ev-card-image {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  overflow: hidden;
  background: #d9d9d9;
  border-radius: 8px;
}

.ev-card-img,
.ev-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.ev-card-img {
  object-fit: cover;
}

.ev-card-placeholder {
  background: #d9d9d9;
}

.ev-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 150px;
}

.ev-card-date-row,
.ev-card-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ev-card-date,
.ev-card-time,
.ev-card-title,
.ev-card-club {
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.ev-card-date,
.ev-card-time {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.ev-card-title {
  margin: 0 0 8px;
  font-family: "Onest", var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.ev-card-club {
  color: rgba(26, 26, 26, 0.4);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.ev-card--add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 198px;
  text-decoration: none;
}

.ev-card-add-icon {
  font-family: var(--sans);
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.28;
}

.ev-card--deleted {
  opacity: 0.42;
}

.ev-card--deleted .ev-card-link {
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.24);
}

@media (max-width: 1180px) {
  .events-page .events-grid {
    grid-template-columns: repeat(2, minmax(0, 480px));
  }
}

@media (max-width: 900px) {
  .events-page {
    min-height: auto;
    padding: 54px 18px 96px;
    border-radius: 64px 64px 0 0;
  }

  .events-title-block {
    gap: 18px;
    min-height: 88px;
    margin-bottom: 34px;
  }

  .events-bracket {
    font-size: 150px;
  }

  .events-title {
    font-size: 78px;
  }

  .events-time-tabs,
  .events-category-tabs {
    gap: 14px 18px;
  }

  .events-page .events-grid {
    grid-template-columns: minmax(0, 640px);
  }
}

@media (max-width: 560px) {
  .events-page {
    padding: 42px 14px 72px;
    border-radius: 42px 42px 0 0;
  }

  .events-title-block {
    gap: 8px;
    min-height: 62px;
    margin-bottom: 26px;
  }

  .events-bracket {
    font-size: 88px;
  }

  .events-title {
    font-size: 52px;
  }

  .events-time-tabs {
    margin-bottom: 22px;
  }

  .events-category-tabs {
    margin-bottom: 30px;
  }

  .events-time-tab,
  .events-category-tab {
    font-size: 13px;
  }

  .ev-card-link,
  .ev-card--placeholder {
    gap: 14px;
    min-height: 150px;
    padding: 16px;
  }

  .ev-card-image {
    flex-basis: 112px;
    width: 112px;
    height: 112px;
  }

  .ev-card-body {
    min-height: 112px;
    gap: 12px;
  }

  .ev-card-date,
  .ev-card-time,
  .ev-card-club {
    font-size: 13px;
  }

  .ev-card-title {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .events-title {
    font-size: 46px;
  }

  .events-bracket {
    font-size: 78px;
  }

  .ev-card-image {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
  }

  .ev-card-body {
    min-height: 92px;
  }
}
/* Footer */

.site-footer {
  border-radius: 100px 100px 0 0;
  border-top: 1px solid var(--border);
  background: var(--white);
  margin-top: 1px;
  padding: 60px 0 80px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--content-padding);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 70px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-social {
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: opacity 0.2s;
}

.footer-social:hover {
  opacity: 0.5;
}

.footer-social svg {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 0.5;
}

.footer-info {
  display: flex;
  gap: 48px;
  margin-top: 44px;
}

.footer-info-block {
  width: 254px;
}

.footer-info-block h4 {
  font-size: 24px;
  font-family: var(--serif);
  font-weight: 400;
  margin-bottom: 12px;
}

.footer-info-block p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}
/* Home page styles */

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 922px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border-radius: 100px 100px 0 0;
  background: var(--white);
  margin-top: 1px;
}

.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 1s ease;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-title-block {
  position: absolute;
  top: 195px;
  left: 50%;
  transform: translateX(-50%);
  width: 496px;
  text-align: center;
  z-index: 2;
}

.hero-title {
  font-family: var(--serif);
  font-size: 160px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  max-width: 473px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Features layout */
.hero-features {
  position: absolute;
  top: 350px;
  left: 41px;
  width: 1430px;
  z-index: 2;
}

.hero-features-row {
  display: flex;
  justify-content: space-between;
  padding: 0 28px;
}

.hero-features-row-1 {
  margin-bottom: 34px;
}

.hero-features-row-2 {
  padding: 0 28px;
}

.hero-features-row-2 .feature:first-child {
  margin-left: 150px;
}

.hero-features-row-2 .feature:last-child {
  margin-right: 140px;
}

.feature {
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  color: var(--text);
}

.feature:hover { opacity: 0.6; }
.feature.right { text-align: right; }

.feature-number {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1;
}

.feature-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 2;
}

/* Image strip */
.image-strip {
  position: absolute;
  bottom: 0;
  left: -28px;
  display: flex;
  gap: 12px;
  height: 233px;
  z-index: 2;
}

.img-card-photo {
  flex-shrink: 0;
  height: 233px;
  object-fit: cover;
}

.img-card-photo:nth-child(1) { width: 233px; }
.img-card-photo:nth-child(2) { width: 349px; }
.img-card-photo:nth-child(3) { width: 471px; }
.img-card-photo:nth-child(4) { width: 233px; }
.img-card-photo:nth-child(5) { width: 233px; }

/* Decorative circles */
.hero-circles {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 758px;
  pointer-events: none;
  z-index: 1;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.05);
}

.hero-circle.r1 { width: 758px; height: 758px; right: -368px; bottom: -386px; }
.hero-circle.r2 { width: 758px; height: 758px; right: -338px; bottom: -386px; border-color: rgba(0,0,0,0.03); }
.hero-circle.l1 { width: 758px; height: 758px; left: -367px; bottom: -386px; }
.hero-circle.l2 { width: 758px; height: 758px; left: -291px; bottom: -386px; border-color: rgba(0,0,0,0.03); }

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CALENDAR SECTION ===== */
.calendar-section {
  text-align: center;
  padding: 80px 0 100px;
  border-radius: 100px;
  background: var(--white);
}

.cal-date-num {
  font-family: var(--serif);
  font-size: 160px;
  font-weight: 400;
  line-height: 0.85;
  font-style: italic;
}

.cal-date-month {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-top: -10px;
}

.cal-date-month .bracket {
  font-weight: 300;
  font-size: 140px;
  line-height: 1;
  position: relative;
  top: 12px;
}

.calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text);
  text-decoration: none;
  margin-top: 24px;
  margin-bottom: 40px;
  transition: opacity 0.2s;
}

.calendar-link:hover { opacity: 0.5; }

/* Day picker */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}

.calendar-nav .nav-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px 12px;
  transition: color 0.2s;
  user-select: none;
  line-height: 1;
}

.calendar-nav .nav-btn:hover { color: var(--text); }

.calendar-days {
  display: flex;
  gap: 0;
  align-items: center;
}

.calendar-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}

.calendar-day-col:hover { opacity: 0.6; }

.calendar-weekday {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.calendar-day-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1;
  position: relative;
}

.calendar-day-col.active .calendar-day-num {
  color: var(--text);
}

.calendar-day-col.active .calendar-day-num::before {
  content: '(';
  position: absolute;
  left: -14px;
  top: 2px;
  color: var(--text);
  font-weight: 300;
  font-size: 36px;
}

.calendar-day-col.active .calendar-day-num::after {
  content: ')';
  position: absolute;
  right: -14px;
  top: 2px;
  color: var(--text);
  font-weight: 300;
  font-size: 36px;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  padding: 0;
}

.filter-tab {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px 2px;
  border: none;
  background: none;
  border-bottom: 1.5px solid transparent;
  transition: all 0.2s;
}

.filter-tab:hover { color: #555; }
.filter-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Event cards */
.events-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 0 80px;
  align-items: flex-start;
}

.event-card {
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: left;
  flex: 1;
  max-width: 320px;
}

.event-card:hover { transform: translateY(-4px); }
.event-card.featured { margin-top: -20px; }
.event-card.side { margin-top: 40px; }

.event-image {
  width: 100%;
  aspect-ratio: 0.85;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
}

.event-card.featured .event-image {
  aspect-ratio: 0.78;
}

.event-image .img-placeholder {
  border-radius: 12px;
}

.event-category {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.event-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 14px;
}

.event-details {
  display: flex;
  gap: 24px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

.event-details .detail-col {
  display: flex;
  flex-direction: column;
}

/* ===== SECTION SHARED ===== */
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.section-more:hover { color: var(--text); }
.section-more .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.section-more:hover .arrow { transform: translateX(3px); }

.section-description {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  max-width: 615px;
  margin: 24px auto 0;
  text-align: center;
  line-height: 1.7;
}

/* ===== CULTURAL SPACE ===== */
.cultural-space {
  border-radius: 0 0 100px 100px;
  background: var(--white);
  padding: 110px 0 60px;
  margin-bottom: 1px;
}

.cs-title {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.cs-title-row2 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}

.cs-bracket {
  font-family: var(--serif);
  font-size: 150px;
  font-weight: 300;
  line-height: 0.85;
  position: relative;
  top: 14px;
}

.cs-more {
  text-align: center;
  margin-top: 24px;
}

.cs-tags {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 18px;
  margin-top: 60px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-light);
}

.cs-tags .tag-item {
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.cs-tags .tag-item:first-child {
  font-weight: 600;
  color: var(--text);
  font-size: 18px;
}

.cs-tags .tag-item:hover { color: var(--text); }
.cs-tags .tag-sep { color: var(--border); user-select: none; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  padding: 0 18px;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  border: 1.5px solid #e8e4dd;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:first-child { border: none; }

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.gallery-item .img-placeholder { border-radius: 10px; }

/* ===== NEWS ===== */
.news-section {
  border-radius: 100px;
  background: var(--white);
  padding: 106px 0 80px;
  margin-bottom: 1px;
}

.ns-title {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.ns-title-row2 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}

.ns-bracket {
  font-family: var(--serif);
  font-size: 150px;
  font-weight: 300;
  line-height: 0.85;
  position: relative;
  top: 14px;
}

.ns-more {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 50px;
}

.news-grid {
  padding: 0;
  margin: 0 1px;
}

.news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e8e4dd;
  padding: 24px 0;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  color: var(--text);
}

.news-item:hover { opacity: 0.6; }

.news-date {
  flex-shrink: 0;
  width: 90px;
}

.news-day {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.news-month {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-top: 6px;
  text-transform: uppercase;
}

.news-text {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  padding-top: 6px;
  text-align: left;
  max-width: 322px;
}

/* ===== VALUES ===== */
.values-section {
  text-align: center;
  padding: 112px 0 100px;
  border-radius: 0 0 100px 100px;
  background: var(--white);
  margin-bottom: 1px;
}

.vs-title {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.values-carousel {
  position: relative;
  height: 480px;
  margin-top: 40px;
  overflow: hidden;
}

.vc-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.vc-slide {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  transition: all 500ms ease-in-out;
  cursor: pointer;
  user-select: none;
}

.vc-slide .vc-img {
  width: 225px;
  height: 225px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 500ms ease-in-out;
}

.vc-slide .vc-img .img-placeholder {
  border-radius: 12px;
  width: 100%;
  height: 100%;
}

.vc-slide .vc-label {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
  transition: all 500ms ease-in-out;
}

.vc-slide .vc-num {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-light);
  transition: all 500ms ease-in-out;
}

.vc-brackets {
  position: absolute;
  top: 240px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 280px;
  pointer-events: none;
  transition: opacity 500ms ease-in-out;
}

.vc-br {
  font-family: var(--serif);
  font-size: 90px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  position: relative;
  top: 8px;
}

/* Carousel positions */
.vc-slide[data-pos="center"] {
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 1;
  filter: blur(0);
}

.vc-slide[data-pos="center"] .vc-img { transform: scale(1); }

.vc-slide[data-pos="left"] {
  left: 8%;
  transform: translateX(0);
  z-index: 1;
  opacity: 0.4;
  filter: blur(1.5px);
}

.vc-slide[data-pos="left"] .vc-img { transform: scale(0.88); }
.vc-slide[data-pos="left"] .vc-label { color: var(--text-light); }

.vc-slide[data-pos="right"] {
  left: 72%;
  transform: translateX(0);
  z-index: 1;
  opacity: 0.4;
  filter: blur(1.5px);
}

.vc-slide[data-pos="right"] .vc-img { transform: scale(0.88); }
.vc-slide[data-pos="right"] .vc-label { color: var(--text-light); }

/* ===== HELP SECTION ===== */
.help-section {
  text-align: center;
  padding: 136px 0 100px;
  background: var(--white);
}

.hs-title {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.help-description {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  max-width: 904px;
  margin: 50px auto 0;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.help-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  margin-top: 80px;
  border-top: 1px solid #e8e4dd;
}

.help-option {
  text-align: center;
  padding: 28px 20px 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.help-option:hover { opacity: 0.6; }

.help-option-number {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 16px;
}

.help-option-text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 50;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover { background: #555; }

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--bg);
  fill: none;
  stroke-width: 2;
}
/* Shared admin/public index pages: clubs and news */
.idx-page {
  width: 100%;
  min-height: 1092px;
  margin: 1px 0 0;
  padding: 76px 20px 110px;
  overflow: hidden;
  background: var(--white);
  border-radius: 100px 100px 0 0;
}

.idx-page > .content-wrap {
  width: 100%;
  max-width: 1472px;
  padding: 0;
}

.idx-title-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 134px;
  margin-bottom: 56px;
}

.idx-bracket {
  font-family: "Buda", Georgia, serif;
  font-size: 240px;
  font-weight: 400;
  line-height: 0.55;
}

.idx-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: none;
}

.idx-date-row,
.idx-sort-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.idx-date-row { margin: -14px 0 32px; position: relative; }
.idx-sort-tabs { margin-bottom: 38px; }

.idx-date-tab,
.idx-sort-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  padding: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.4;
}

.idx-date-tab:hover,
.idx-sort-tab:hover { opacity: 0.72; }
.idx-sort-tab.active { opacity: 1; }

.idx-date-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.idx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 480px));
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.idx-grid--news {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.idx-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.idx-card:hover { background: #fbfbfb; }

.idx-card--add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 198px;
}

.idx-grid--news .idx-card--add { min-height: 300px; }
.idx-card-add-icon { font-family: var(--sans); font-size: 52px; opacity: 0.3; }

.idx-card-actions {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.idx-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  opacity: 1;
}

.idx-card-btn:hover { color: var(--white); background: var(--text); }
.idx-card-btn:hover svg { stroke: currentColor; }
.idx-card-link { display: block; height: 100%; color: inherit; }

.idx-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-height: 198px;
  padding: 24px;
}

.idx-card-image {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  margin: 0;
  overflow: hidden;
  background: #d9d9d9;
  border-radius: 8px;
}

.idx-card-img,
.idx-card-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.idx-card-placeholder { background: #d9d9d9; }

.idx-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 150px;
}

.idx-card-meta { font-family: var(--sans); font-size: 12px; text-transform: uppercase; opacity: 0.55; }
.idx-card-name { margin-top: 6px; font-family: "Onest", var(--sans); font-size: 20px; line-height: 1.1; }
.idx-card-avatars { display: flex; align-items: center; margin-top: auto; }
.idx-card-avatar-circle { width: 38px; height: 38px; margin-left: -8px; overflow: hidden; background: #ddd; border: 2px solid #fff; border-radius: 50%; }
.idx-card-avatar-circle:first-child { margin-left: 0; }
.idx-card-avatar-circle img,
.idx-card-avatar-circle svg { width: 100%; height: 100%; object-fit: cover; }
.idx-card-avatar-extra { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -6px; background: #ddd; border-radius: 50%; font-size: 12px; }

.idx-card-inner--news {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  padding: 22px 20px 18px;
}

.news-card-date { display: flex; flex-direction: column; gap: 2px; }
.news-card-day { font-family: var(--sans); font-size: 20px; text-transform: uppercase; }
.news-card-year { font-family: var(--sans); font-size: 16px; opacity: 0.55; }
.news-card-title { margin-top: auto; font-family: "Onest", var(--sans); font-size: 20px; line-height: 1.1; }
.news-card-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.news-card-thumb { width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: 8px; }

@media (max-width: 1180px) {
  .idx-grid { grid-template-columns: repeat(2, minmax(0, 480px)); }
  .idx-grid--news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .idx-page { min-height: auto; padding: 44px 14px 72px; border-radius: 42px 42px 0 0; }
  .idx-title-block { gap: 8px; min-height: 62px; margin-bottom: 34px; }
  .idx-title { font-size: 52px; }
  .idx-bracket { font-size: 88px; }
  .idx-date-tab, .idx-sort-tab { font-size: 13px; }
  .idx-grid, .idx-grid--news { grid-template-columns: 1fr; }
  .idx-card-inner { gap: 14px; min-height: 150px; padding: 16px; }
  .idx-card-image { flex-basis: 112px; width: 112px; height: 112px; }
  .idx-card-body { min-height: 112px; }
  .idx-card-actions { top: 12px; right: 12px; }
  .idx-card-btn { width: 32px; height: 32px; }
}
/* Header/navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 48px;
  position: sticky;
  top: 12px;
  max-width: var(--max-width);
  margin: 12px auto 0;
  border-radius: 1000px;
  background: var(--white);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-logo {
  height: 40px;
  width: auto;
}

.avatar-icon {
  height: 22px;
  width: 22px;
}

.burger-icon, #burger-button {
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  text-decoration: none;
  color: var(--text);
}

.burger-icon:hover { opacity: 0.5; }

.burger-icon svg {
  width: 100%;
  height: 100%;
}

.cart-icon {
  position: relative;
  font-size: 18px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--text);
  color: var(--white);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menu overlay */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}

#menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
}

.menu-close-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.menu-close-icon:hover { opacity: 0.5; }

.menu-close-icon svg {
  width: 100%;
  height: 100%;
}

.menu-logo {
  cursor: pointer;
  transition: opacity 0.2s;
}

.menu-logo:hover { opacity: 0.5; }

.menu-logo svg {
  width: 30px;
  height: 31px;
}

.menu-profile-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.menu-profile-icon:hover { opacity: 0.5; }

.menu-profile-icon svg {
  width: 100%;
  height: 100%;
}

.menu-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.menu-nav a {
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.menu-nav a:hover {
  opacity: 0.5;
}

.menu-bottom {
  padding: 0 80px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.menu-bottom-block h4 {
  font-size: 24px;
  font-family: var(--serif);
  font-weight: 400;
  margin-bottom: 12px;
}

.menu-bottom-block p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.6;
}

.menu-socials {
  display: flex;
  gap: 24px;
  align-items: center;
}

.menu-social {
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: opacity 0.2s;
  text-decoration: none;
}

.menu-social:hover { opacity: 0.5; }
.menu-social svg { width: 28px; height: 28px; }
/* Profile / Dashboard page */

.profile-page {
  padding: 1px 0 0;
}

.profile-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1px;
  min-height: 600px;
}

/* LEFT SIDEBAR */
.profile-sidebar {
  background: var(--white);
  border-radius: 100px 0 0 100px;
  padding: 60px 40px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-name-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.profile-bracket {
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 300;
  line-height: 0.85;
  position: relative;
  top: 8px;
  color: var(--text);
}

.profile-name-text {
  text-align: center;
}

.profile-first-name {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.profile-last-name {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.profile-role {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Avatar */
.profile-avatar {
  width: 200px;
  height: 200px;
  margin-bottom: 40px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
}

.profile-avatar-placeholder svg {
  width: 100%;
  height: 100%;
}

/* Action links */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  width: 100%;
}

.profile-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
  padding: 8px 0;
}

.profile-action:hover {
  opacity: 0.5;
}

/* RIGHT CONTENT */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.profile-card {
  background: var(--white);
  padding: 40px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-card:first-child {
  border-radius: 0 100px 0 0;
}

.profile-card:last-child {
  border-radius: 0 0 100px 0;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}

.profile-card-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.profile-card-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.profile-card-link:hover {
  opacity: 0.5;
}

.profile-card-link .arrow {
  transition: transform 0.2s;
}

.profile-card-link:hover .arrow {
  transform: translateX(3px);
}

/* Empty states */
.profile-empty {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
  flex: 1;
  display: flex;
  align-items: center;
}

/* Orders list */
.profile-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-order-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #e8e4dd;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
}

/* Clubs list */
.profile-clubs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-club-item {
  padding: 16px 0;
  border-bottom: 1px solid #e8e4dd;
}

.profile-club-item a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.profile-club-item a:hover {
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    border-radius: 40px 40px 0 0;
    padding: 40px 24px 30px;
  }

  .profile-card:first-child {
    border-radius: 0;
  }

  .profile-card:last-child {
    border-radius: 0 0 40px 40px;
  }
}
/* ═══════════════════════════════════════════
   Shop Page (Лавка) — per Figma 399:4663
   ═══════════════════════════════════════════ */

.shop-page {
  background: var(--bg, #d9d9d9);
  color: var(--text, #1a1a1a);
}

/* ═══════════ HERO ═══════════ */
.shop-hero {
  background: var(--white);
  border-radius: 0 0 100px 100px;
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}

.shop-hero-inner {
  position: relative;
  min-height: 560px;
}

/* Category labels positioned around the title */
.shop-hero-cat {
  position: absolute;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-hero-cat-num {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.04em;
  opacity: 0.6;
  text-align: center;
}

.shop-hero-cat-label {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.3;
  min-height: 24px;
}

.shop-hero-cat--tl { top: 0;    left: 35px;  }
.shop-hero-cat--tr { top: 0;    right: 35px; }
.shop-hero-cat--ml { top: 172px; left: 0; }
.shop-hero-cat--mr { top: 172px; right: 0; }
.shop-hero-cat--bl { top: 340px; left: 0; }
.shop-hero-cat--br { top: 340px; right: 0; }
.shop-hero-cat--xl { bottom: 0; left: 35px;  }
.shop-hero-cat--xr { bottom: 0; right: 35px; }

.shop-hero-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 510px;
  max-width: 100%;
  text-align: center;
}

.shop-hero-title {
  font-family: var(--serif);
  font-size: 200px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 24px;
  letter-spacing: 0.005em;
}

.shop-hero-desc {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0 auto;
  max-width: 510px;
}

/* ═══════════ SEARCH ═══════════ */
.shop-search {
  background: var(--white);
  margin-top: 1px;
  padding: 60px 0 40px;
}

.shop-search-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.shop-search-title {
  font-family: var(--serif);
  font-size: 140px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  margin: 0 0 48px;
}

.shop-search-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.shop-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.shop-cat-tab {
  color: var(--text);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.shop-cat-tab:hover { opacity: 0.7; }

.shop-cat-tab.active {
  opacity: 1;
  font-weight: 500;
}

.shop-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 57px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  padding: 0 25px;
  background: var(--white);
}

.shop-search-icon {
  flex-shrink: 0;
  opacity: 0.5;
  color: var(--text);
}

.shop-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 20px;
  font-family: var(--sans);
  font-size: 16px;
  background: transparent;
  color: var(--text);
}

.shop-search-input::placeholder { opacity: 0.5; }

.shop-search-submit {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-search-submit:hover { opacity: 1; }

/* ═══════════ CATALOG (masonry) ═══════════ */
.shop-catalog {
  background: var(--white);
  margin-top: 1px;
  padding: 80px 0 120px;
}

.shop-admin-bar {
  margin-bottom: 32px;
}

.shop-masonry {
  column-count: 3;
  column-gap: 70px;
  width: 100%;
}

.shop-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 70px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
}

.shop-card-img {
  background: #f3f3f3;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  aspect-ratio: 1;
}

.shop-card--sm .shop-card-img {
  width: 262px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.shop-card--lg .shop-card-img {
  width: 100%;
  padding: 30px;
}

.shop-card-img-el {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.shop-card-img-placeholder {
  width: 50%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #d4cfc4 0%, #e8e4dd 50%, #c8c2b6 100%);
  border-radius: 8px;
}

.shop-card-body {
  text-align: center;
  padding: 0 24px;
}

.shop-card-name {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
  max-width: 213px;
  margin-left: auto;
  margin-right: auto;
}

.shop-card-price {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
}

.shop-empty {
  text-align: center;
  font-family: var(--serif);
  font-size: 32px;
  opacity: 0.3;
  padding: 80px 0;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1200px) {
  .shop-hero-title { font-size: 140px; }
  .shop-search-title { font-size: 96px; }

  .shop-hero-cat { width: 160px; }
  .shop-hero-cat--tl { left: 0; }
  .shop-hero-cat--tr { right: 0; }
  .shop-hero-cat--xl { left: 0; }
  .shop-hero-cat--xr { right: 0; }

  .shop-masonry { column-count: 2; column-gap: 40px; }
  .shop-card { margin-bottom: 40px; }
}

@media (max-width: 900px) {
  .shop-hero { border-radius: 0 0 60px 60px; padding: 60px 0 80px; }
  .shop-hero-inner { min-height: auto; }

  .shop-hero-center {
    position: static;
    transform: none;
    width: 100%;
    margin-bottom: 48px;
  }

  .shop-hero-title { font-size: 80px; }
  .shop-hero-desc { font-size: 14px; }

  .shop-hero-cat {
    position: static;
    width: auto;
    flex-direction: row;
    gap: 12px;
    align-items: baseline;
    justify-content: flex-start;
    padding: 8px 16px;
  }

  .shop-hero-cat-num { display: none; }
  .shop-hero-cat-label { text-align: left; font-size: 13px; }

  .shop-search-title { font-size: 56px; }
  .shop-search { padding: 40px 0 24px; }
  .shop-search-input-wrap { height: 48px; padding: 0 16px; }
  .shop-search-input { font-size: 14px; padding: 0 12px; }

  .shop-catalog { padding: 40px 0 60px; }
  .shop-masonry { column-count: 1; column-gap: 0; }
}
/* ═══════════════════════════════════════════
   Show pages — events, clubs, news
   ═══════════════════════════════════════════ */

.show-page {
  background: var(--white);
  border-radius: 100px;
  padding: 60px 0 100px;
  min-height: 60vh;
}

/* Admin bar */
.show-admin-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e4dd;
}

.show-admin-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--text);
  color: var(--white);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}

.show-admin-edit-btn svg {
  stroke: var(--white);
}

.show-admin-edit-btn:hover {
  background: #333;
}

.show-admin-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.show-admin-delete-btn:hover {
  border-color: #cc0000;
  color: #cc0000;
}

.show-admin-delete-btn:hover svg {
  stroke: #cc0000;
}

/* Hero image */
.show-hero {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
}

.show-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-hero-placeholder {
  width: 100%;
  height: 100%;
  background: #e8e4dd;
}

/* Content area */
.show-content {
  max-width: 800px;
}

/* Meta info */
.show-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.show-tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 4px 12px;
  border: 1px solid #e8e4dd;
  border-radius: 100px;
}

.show-date {
  font-family: var(--sans);
  font-size: 14px;
  opacity: 0.5;
}

.show-time {
  font-family: var(--sans);
  font-size: 14px;
  opacity: 0.5;
}

.show-draft-badge {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff3cd;
  color: #856404;
  padding: 3px 10px;
  border-radius: 100px;
}

/* Title */
.show-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 32px;
}

/* Details grid */
.show-details-grid {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid #e8e4dd;
  border-bottom: 1px solid #e8e4dd;
}

.show-detail-label {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.4;
  margin-bottom: 4px;
}

.show-detail-value {
  font-family: var(--sans);
  font-size: 15px;
}

/* Body text */
.show-body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 32px;
}

.show-body p {
  margin-bottom: 16px;
}

/* CTA */
.show-cta {
  margin-top: 24px;
}

.show-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--text);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
}

.show-cta-btn:hover {
  background: #333;
}

.show-cta-pending {
  font-family: var(--sans);
  font-size: 14px;
  opacity: 0.5;
  font-style: italic;
}

.show-cta-member {
  font-family: var(--sans);
  font-size: 14px;
  color: #2d8a2d;
}

/* Members info */
.show-members-info {
  margin: 16px 0;
}

.show-members-count {
  font-family: var(--sans);
  font-size: 14px;
  opacity: 0.5;
}

/* Section title inside show */
.show-section-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 40px 0 20px;
}

/* Events list inside club show */
.show-events-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #e8e4dd;
  border-radius: 12px;
  overflow: hidden;
}

.show-event-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--white);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}

.show-event-item:hover {
  background: #fafafa;
}

.show-event-date {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  min-width: 50px;
}

.show-event-title {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
}

.show-event-time {
  font-family: var(--sans);
  font-size: 13px;
  opacity: 0.4;
}

/* Photo gallery */
.show-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 32px;
}

.show-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.show-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .show-page {
    padding: 30px 0 60px;
    border-radius: 40px;
  }

  .show-hero {
    height: 240px;
    border-radius: 12px;
  }

  .show-title {
    font-size: 32px;
  }

  .show-details-grid {
    flex-direction: column;
    gap: 16px;
  }

  .show-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .show-admin-bar {
    flex-wrap: wrap;
  }
}
/* Design tokens */

:root {
  --bg: #D9D9D9;
  --text: #1a1a1a;
  --text-light: #888;
  --serif: 'TT-Ricordi-Greto', Georgia, serif;
  --sans: 'Zapus-Sans', 'Inter', -apple-system, sans-serif;
  --white: #FFF;
  --border: #E4E4E4;
  --max-width: 1512px;
  --content-padding: 0 80px;
}

@media (max-width: 1024px) {
  :root { --content-padding: 0 40px; }
}

@media (max-width: 640px) {
  :root { --content-padding: 0 16px; }
}
/* ═══════════════════════════════════════════════════════
   zz_mobile.css — Global responsive overrides
   Loaded last via require_tree to override per-file rules.

   Breakpoints used across the project:
   - 1200px: tablet landscape / small desktop
   - 1024px: tablet portrait
   - 768px:  large mobile
   - 640px:  mobile
   - 400px:  small mobile
   ═══════════════════════════════════════════════════════ */

/* ── Global text overflow ── */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; }

/* ═══════════ TABLET (≤1200px) ═══════════ */
@media (max-width: 1200px) {
  .page-title { font-size: 120px; }
  .section-title { font-size: 80px; }
}

/* ═══════════ TABLET PORTRAIT (≤1024px) ═══════════ */
@media (max-width: 1024px) {
  .page-title { font-size: 96px; }
  .section-title { font-size: 64px; }

  /* Navbar */
  .navbar { padding: 24px 28px; }

  /* Footer */
  .footer-top { margin-bottom: 40px; flex-wrap: wrap; gap: 24px; }
  .footer-brand { font-size: 28px; }
  .footer-bottom { flex-direction: column; gap: 40px; }
  .footer-info { flex-wrap: wrap; margin-top: 20px; gap: 32px; }
  .footer-info-block { width: auto; min-width: 200px; }

  /* Menu overlay */
  .menu-nav a { font-size: 36px; }
  .menu-bottom { padding: 0 40px 24px; flex-direction: column; gap: 24px; align-items: flex-start; }

  /* Home calendar */
  .cal-events-grid { grid-template-columns: 1fr 1fr !important; }
  .cal-event-card.side:nth-child(n+4) { display: none; }

  /* Profile */
  .profile-page .profile-layout,
  .admin-layout { grid-template-columns: 1fr !important; gap: 32px; }
  .admin-right { order: 2; }
  .admin-manage-row { grid-template-columns: 1fr !important; }

  /* Admin forms */
  .admin-form-layout { flex-direction: column-reverse; align-items: center; gap: 16px; }
  .admin-form-close { align-self: flex-end; }

  /* Event popup body */
  .ev-popup-body { grid-template-columns: 1fr !important; gap: 24px; }
  .ev-popup-details { padding-left: 0 !important; }

  /* Club show */
  .cs-info-row { gap: 40px; }
  .cs-share-grid,
  .cs-past-grid,
  .cs-similar-grid { gap: 24px; }

  /* Shop hero */
  .shop-hero-title { font-size: 120px; }
  .shop-search-title { font-size: 80px; }
}

/* ═══════════ MOBILE (≤768px) ═══════════ */
@media (max-width: 768px) {
  body { -webkit-text-size-adjust: 100%; }

  /* Content wrapping */
  .page-title { font-size: 64px; }
  .section-title { font-size: 48px; }
  .section-title .bracket { top: 8px; }
  .page-description { font-size: 14px; padding: 0 16px; margin-top: 24px; }

  /* Navbar */
  .navbar {
    padding: 16px 20px;
    top: 8px;
    margin-top: 8px;
  }
  .nav-logo { height: 32px; }
  .nav-left, .nav-right { gap: 14px; }

  /* Menu overlay */
  .menu-header { padding: 20px 24px; }
  .menu-nav { gap: 16px; }
  .menu-nav a { font-size: 28px; }
  .menu-bottom { padding: 0 24px 24px; }
  .menu-bottom-block h4 { font-size: 20px; }
  .menu-socials { gap: 16px; }
  .menu-social { width: 32px; height: 32px; }
  .menu-social svg { width: 24px; height: 24px; }

  /* Footer */
  .site-footer { border-radius: 40px 40px 0 0; padding: 40px 0 48px; }
  .footer-brand { font-size: 22px; }
  .footer-nav { gap: 8px; }
  .footer-nav a { font-size: 13px; }
  .footer-info-block h4 { font-size: 18px; }
  .footer-info-block p { font-size: 13px; }
  .footer-social { width: 32px; height: 32px; }
  .footer-social svg { width: 22px; height: 22px; }

  /* ───── Home hero ───── */
  .hero { height: auto !important; min-height: 560px; padding-bottom: 48px; border-radius: 60px 60px 0 0; }
  .hero-title-block {
    position: static !important;
    transform: none !important;
    width: auto !important;
    padding: 64px 24px 32px;
    margin: 0 auto;
  }
  .hero-title { font-size: 56px !important; }
  .hero-subtitle { font-size: 14px !important; }

  /* Home calendar — stack */
  .cal-inner { padding: 32px 20px !important; }
  .cal-date-day { font-size: 90px !important; }
  .cal-date-month-row { font-size: 24px !important; }
  .cal-week-nav { gap: 8px; }
  .cal-day-col { padding: 8px 4px !important; min-width: 36px !important; }
  .cal-day-num { font-size: 16px !important; }
  .cal-weekday { font-size: 10px !important; }
  .cal-filters { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .cal-filter-tab { font-size: 11px !important; }
  .cal-events-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .cal-event-card { min-height: auto !important; }
  .cal-event-card.side:nth-child(n+3) { display: none; }

  /* Event popup */
  .ev-popup-overlay { padding: 16px; }
  .ev-popup-title { font-size: 22px !important; }
  .ev-popup-meta { gap: 8px; font-size: 12px; }
  .ev-popup-header { padding: 28px 20px 16px !important; }
  .ev-popup-body { margin: 0 12px !important; padding: 16px !important; }

  /* Auth pages */
  .auth-page, .auth-container, .auth-form {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .auth-title { font-size: 36px !important; }
  .auth-button { font-size: 14px; }

  /* Edit profile */
  .edit-profile-bracket { font-size: 56px !important; }
  .edit-profile-title-line1,
  .edit-profile-title-line2 { font-size: 28px !important; }
  .edit-profile-avatar { width: 90px !important; height: 90px !important; }

  /* Admin profile */
  .admin-card { padding: 24px !important; }
  .admin-card-title { font-size: 22px !important; }
  .admin-applications-grid { grid-template-columns: 1fr !important; }
  .admin-app-card { flex-wrap: wrap; }
  .admin-app-actions { width: 100%; justify-content: flex-end; margin-top: 8px; }

  /* Admin forms modal */
  .admin-form-modal-overlay { padding: 16px; align-items: flex-start; }
  .admin-form-page { padding: 12px !important; }
  .admin-form-header { padding: 32px 20px !important; }
  .admin-form-header-title { font-size: 28px !important; }
  .admin-form-body { padding: 24px 20px !important; gap: 24px !important; }
  .admin-form-close { width: 44px !important; height: 44px !important; }
  .admin-form-close svg { width: 22px; height: 22px; }

  .af-section-title { font-size: 22px !important; }
  .af-field { padding: 16px !important; }
  .af-field input, .af-field textarea, .af-field select { font-size: 14px !important; }
  .af-field label { font-size: 14px !important; left: 16px !important; }
  .af-field input:focus ~ label,
  .af-field input.has-value ~ label,
  .af-field select ~ label,
  .af-field select.has-value ~ label { font-size: 10px !important; }
  .af-checkbox-row { font-size: 14px !important; gap: 16px !important; }
  .af-schedule-entry { width: 100% !important; }
  .af-day-picker-row { gap: 6px !important; }
  .af-day-btn { min-width: 36px !important; padding: 6px !important; font-size: 14px !important; }
  .af-files-list { flex-direction: column; gap: 8px; }
  .af-file-item { flex: 0 0 100% !important; min-width: 0 !important; }
  .af-submit-btn { padding: 14px 20px !important; font-size: 14px !important; }

  /* Events index */
  .events-page { border-radius: 42px 42px 0 0; padding: 42px 14px 72px; }
  .events-title-block { gap: 8px; min-height: 62px; margin-bottom: 26px; }
  .events-title { font-size: 52px !important; }
  .events-bracket { font-size: 88px !important; top: auto !important; }
  .events-time-tabs,
  .events-category-tabs { gap: 14px 18px; flex-wrap: wrap; justify-content: center; }
  .events-page .events-grid { grid-template-columns: 1fr !important; }

  /* Index pages (clubs/news/events) */
  .idx-title { font-size: 52px !important; }
  .idx-bracket { font-size: 88px !important; top: 2px !important; }
  .idx-grid,
  .idx-grid--news { grid-template-columns: 1fr !important; }

  /* Show pages (events/clubs/news) */
  .show-page { padding: 32px 0 60px; border-radius: 40px; }
  .show-hero { height: 220px; border-radius: 12px; }
  .show-title { font-size: 28px !important; }
  .show-details-grid { flex-direction: column; gap: 16px; }
  .show-gallery { grid-template-columns: 1fr 1fr !important; }
  .show-admin-bar { flex-wrap: wrap; gap: 8px; }

  /* Club show */
  .cs-hero { padding: 36px 0 0 !important; border-radius: 0 0 40px 40px !important; }
  .cs-title { font-size: 44px !important; }
  .cs-title-bracket { font-size: 80px !important; top: 8px !important; }
  .cs-title-block { gap: 12px; margin-bottom: 24px; padding: 0 16px; }
  .cs-info-row { flex-direction: column; gap: 24px; }
  .cs-info-col { min-width: 0 !important; width: 100%; }
  .cs-photo-strip { height: 180px !important; grid-template-columns: 1fr 1.5fr 1fr !important; }
  .cs-photo:nth-child(n+4) { display: none; }

  .cs-about, .cs-past, .cs-visit, .cs-schedule,
  .cs-quote-section, .cs-similar {
    border-radius: 40px !important;
    padding: 48px 0 !important;
  }
  .cs-about-title, .cs-section-title, .cs-section-title--inline { font-size: 40px !important; }
  .cs-section-bracket { font-size: 64px !important; top: 8px !important; }
  .cs-share-title { font-size: 24px !important; }
  .cs-share-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }
  .cs-share-card { margin-top: 0 !important; }
  .cs-share-img { width: 100px; height: 100px; }

  .cs-past-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }
  .cs-past-card { margin-top: 0 !important; }
  .cs-past-card--5 { display: none; }
  .cs-past-img { width: 100% !important; }
  .cs-past-title { font-size: 14px; }

  .cs-schedule-row { grid-template-columns: 1fr !important; gap: 16px; }
  .cs-quote { font-size: 24px !important; }

  .cs-similar-grid { grid-template-columns: 1fr !important; }
  .cs-similar-cta { margin-bottom: 16px !important; }
  .cs-similar-img { width: 120px; height: 120px; }

  /* Shop */
  .shop-hero { border-radius: 0 0 40px 40px !important; padding: 32px 0 48px !important; }
  .shop-hero-inner { min-height: auto !important; }
  .shop-hero-center {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    margin-bottom: 40px;
  }
  .shop-hero-title { font-size: 64px !important; }
  .shop-hero-desc { font-size: 13px; }
  .shop-hero-cat {
    position: static !important;
    width: auto !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: baseline;
    padding: 6px 4px;
  }
  .shop-hero-cat-num { display: none; }
  .shop-hero-cat-label { text-align: left !important; font-size: 12px !important; }

  .shop-search-title { font-size: 48px !important; }
  .shop-cat-tabs { gap: 12px 24px; font-size: 12px; }
  .shop-search-input-wrap { height: 48px; padding: 0 16px; }
  .shop-search-input { font-size: 14px; padding: 0 10px; }
  .shop-masonry { column-count: 1 !important; column-gap: 0 !important; }
  .shop-card { margin-bottom: 32px !important; }
  .shop-card-img { padding: 16px !important; }

  /* Cart */
  .cart-grid,
  .cart-layout { grid-template-columns: 1fr !important; gap: 24px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-image { width: 80px !important; height: 80px !important; }

  /* Password modal */
  .pw-modal-overlay { padding: 16px; }
  .pw-modal { padding: 32px 20px !important; }
  .pw-modal-title { font-size: 22px !important; }

  /* Generic grids to 1 col */
  .grid-3, .grid-2 { grid-template-columns: 1fr !important; }

  /* Forms: make inputs 16px to prevent iOS zoom */
  input, textarea, select { font-size: 16px !important; }
}

/* ═══════════ SMALL MOBILE (≤400px) ═══════════ */
@media (max-width: 400px) {
  .page-title { font-size: 48px; }
  .section-title { font-size: 36px; }

  .hero-title { font-size: 40px !important; }
  .cal-date-day { font-size: 64px !important; }

  .navbar { padding: 12px 16px; border-radius: 100px; }
  .nav-logo { height: 28px; }
  .nav-left, .nav-right { gap: 10px; }

  .cs-title { font-size: 32px !important; }
  .cs-title-bracket { font-size: 56px !important; }
  .cs-about-title, .cs-section-title, .cs-section-title--inline { font-size: 32px !important; }
  .cs-section-bracket { font-size: 48px !important; }
  .cs-share-grid, .cs-past-grid { grid-template-columns: 1fr !important; }

  .shop-hero-title { font-size: 48px !important; }
  .shop-search-title { font-size: 36px !important; }

  .admin-form-header-title { font-size: 22px !important; }
  .af-section-title { font-size: 18px !important; }

  .menu-nav a { font-size: 22px; }
}

/* ═══════════ TOUCH DEVICES ═══════════ */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets */
  button, .af-day-btn, .cal-filter-tab, .shop-cat-tab,
  .idx-card-btn, .admin-app-btn, .af-file-remove {
    min-height: 32px;
  }

  /* Remove hover-only effects */
  .af-section-title:hover,
  a:hover,
  button:hover {
    opacity: 1;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
@font-face {
  font-family: "Onest";
  src: url(/assets/Onest-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "TT-Ricordi-Greto";
  src: url(/assets/TTRicordiGreto-Regular.woff2) format('woff2');
  font-weight: 200;
  font-style: normal;
}

 @font-face {
  font-family: "Zapus-Sans";
  src: url(/assets/ZapusSans-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
}

 @font-face {
  font-family: "Buda";
  src: url(/assets/Buda.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
}


h1 {
  font-family: "TT-Ricordi-Greto";
}

h2 {
  font-family: "TT-Ricordi-Greto";
}

h3 {
  font-family: "Onest";
}

p {
  font-family: "Zapus-Sans";
}

body{
  margin: 0;
}
