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;
}

/* Загруженное фото, отмеченное «×», удалится при сохранении */
.af-file-item:has(input[name="remove_image_ids[]"]:checked) { opacity: 0.35; }
.af-file-item:has(input[name="remove_image_ids[]"]:checked) .af-file-name { text-decoration: line-through; }

/* 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;
}

/* ── Редактор описания (Trix) ── */
.af-rich-text {
  margin-top: 14px;
}

.af-rich-text trix-toolbar {
  margin-bottom: 8px;
}

.af-rich-text trix-toolbar .trix-button-group {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 6px;
  margin-right: 6px;
}

.af-rich-text trix-toolbar .trix-button {
  border: none;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text);
}

.af-rich-text trix-toolbar .trix-button:last-child {
  border-right: none;
}

.af-rich-text trix-toolbar .trix-button.trix-active {
  background: rgba(0, 0, 0, 0.08);
}

/* Растёт вниз по мере набора: фиксируем только минимум, максимум не задаём. */
.af-rich-text trix-editor {
  min-height: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
  outline: none;
}

.af-rich-text trix-editor:focus {
  border-color: var(--text);
}

.af-rich-text trix-editor h1 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.af-rich-text trix-editor a {
  color: inherit;
  text-decoration: underline;
}

.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;
  }
}

/* ─── Карточки направления (вложенные поля ClubHighlight) ─── */
.af-highlight-row {
  align-items: flex-start;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 24px;
  padding: 24px 0 4px;
}

.af-highlight-row:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.af-highlight-media {
  display: flex;
  flex-direction: column;
  flex: 0 0 132px;
  gap: 10px;
}

.af-highlight-media .af-file-thumb {
  border-radius: 12px;
  height: 132px;
  object-fit: cover;
  width: 132px;
}

.af-highlight-upload {
  /* Контейнер для .af-upload-input (position: absolute; inset: 0): без
     relative невидимый input растягивался на всю страницу и перехватывал
     клики по ссылкам и заголовку формы. */
  overflow: hidden;
  position: relative;
  border: 1px dashed rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  padding: 12px 10px;
  text-align: center;
}

.af-highlight-upload:hover {
  border-color: rgba(0, 0, 0, 0.5);
}

.af-highlight-fields {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.af-highlight-meta {
  display: flex;
  gap: 14px;
}

.af-highlight-meta .af-field {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 768px) {
  .af-highlight-row {
    flex-direction: column;
    gap: 14px;
  }

  .af-highlight-media {
    flex-direction: row;
    flex-basis: auto;
  }

  .af-highlight-meta {
    flex-direction: column;
  }
}

/* ─── Подсказка под полем формы ─── */
.af-field-hint {
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  margin: -8px 0 0;
  opacity: 0.55;
}

/* ─── Фокус-точка обложки события (как focalPoint на hramtrigory) ─── */
.af-focal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.af-focal[hidden] { display: none; }

.af-focal-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.af-focal-pick {
  border-radius: 12px;
  cursor: crosshair;
  line-height: 0;
  overflow: hidden;
  position: relative;
  user-select: none;
}

.af-focal-pick img {
  display: block;
  height: auto;
  width: 100%;
}

.af-focal-dot {
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6), 0 0 0 9999px rgba(0, 0, 0, 0.18);
  height: 22px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
}

.af-focal-preview {
  aspect-ratio: 16 / 7;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.af-focal-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.af-focal-preview-label {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  bottom: 8px;
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  left: 8px;
  padding: 4px 8px;
  position: absolute;
}

@media (max-width: 768px) {
  .af-focal-row { 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 60px 100px;
  padding: 48px 42px 38px;
  display: flex;
  flex-direction: column;
}

.admin-left-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  /* В именном режиме (page-41) ссылки прижаты к низу через margin-top: auto */
  flex: 1;
}

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

.admin-left .edit-profile-bracket {
  font-family: "Buda", Georgia, serif;
}

/* Аватар в админ-сайдбаре 96px — карандаш ближе к центру */
.admin-left .edit-profile-avatar-edit {
  left: calc(50% + 24px);
}

.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 ──
   По макету (page-40): карточки разделены зазорами ~8px,
   углы на стыках скруглены ~36px, внешние — 100px */
.admin-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.admin-card-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  /* По макету смешанный регистр (капитель TT Ricordi) */
  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 ──
   По макету (page-40) отдельные скруглённые карточки с зазорами */
.admin-manage-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

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

.admin-manage-row .admin-card--manage:last-child {
  border-radius: 36px 36px 100px 36px !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-manage-body--list {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
}

.admin-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-mini-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-mini-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.admin-mini-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.admin-mini-title {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.3;
  /* Длинный заголовок не должен ломать карточку — обрезаем в две строки. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-mini-link:hover .admin-mini-title {
  text-decoration: underline;
}

.admin-mini-meta {
  font-family: var(--sans);
  font-size: 12px;
  opacity: 0.5;
}

.admin-mini-draft {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 11px;
}

.admin-mini-edit {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text);
  opacity: 0.55;
  text-decoration: none;
  white-space: nowrap;
}

.admin-mini-edit:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Рядом со списком «+» уже не должен занимать всю карточку. */
.admin-add-btn--compact {
  max-width: 100%;
  height: 64px;
  border-radius: 16px;
}

.admin-add-btn--compact .admin-add-icon {
  font-size: 28px;
}

.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;
  }
}

/* Подсказка под заголовком управляющей карточки в ЛК администратора */
.admin-card-hint {
  color: rgba(0, 0, 0, 0.45);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.35;
  margin: 0 0 10px;
}
/* ─── Афиша: фильтры, полоска дней, лента по датам ─── */
.ag-filters { display: flex; flex-direction: column; gap: 12px; margin: 8px auto 28px; max-width: 980px; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ag-filters-row { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; }

.ag-chip {
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 99px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  padding: 7px 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ag-chip:hover { border-color: rgba(0, 0, 0, 0.5); }
.ag-chip.is-active { background: #141414; border-color: #141414; color: #fff; }

.ag-select {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 13px;
  padding: 7px 14px;
}

.ag-reset { color: var(--text-light); font-family: var(--sans); font-size: 13px; text-underline-offset: 3px; }

.ag-strip {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  margin: 0 auto 32px;
  max-width: 980px;
}

.ag-strip-day {
  align-items: center;
  border-radius: 12px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  gap: 2px;
  opacity: 0.3;
  padding: 6px 0;
  pointer-events: none;
  text-decoration: none;
}

.ag-strip-day.has-items { opacity: 1; pointer-events: auto; }
.ag-strip-day.has-items:hover { background: #f4f3ef; }
.ag-strip-wd { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.ag-strip-num { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.ag-strip-day.is-today .ag-strip-num { text-decoration: underline; text-underline-offset: 4px; }
.ag-strip-dot { background: transparent; border-radius: 50%; height: 5px; width: 5px; }
.ag-strip-day.has-items .ag-strip-dot { background: #141414; }

.ag-list { margin: 0 auto; max-width: 980px; }
.ag-day { margin-bottom: 28px; scroll-margin-top: 110px; }

.ag-day-title {
  border-bottom: 1px solid #141414;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 4px;
  padding-bottom: 8px;
}

.ag-item {
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text);
  display: grid;
  gap: 18px;
  grid-template-columns: 96px 88px minmax(0, 1fr);
  padding: 14px 4px;
  text-decoration: none;
}

.ag-item:hover { background: #fafaf8; }
.ag-time { font-family: var(--sans); font-size: 15px; font-variant-numeric: tabular-nums; }

.ag-thumb { aspect-ratio: 1; background: #ecece9; border-radius: 10px; overflow: hidden; }
.ag-thumb-img { display: block; height: 100%; object-fit: cover; width: 100%; }
.ag-thumb--regular { align-items: center; background: #f4f3ef; color: rgba(0, 0, 0, 0.35); display: flex; font-size: 30px; justify-content: center; }

.ag-meta { align-items: center; display: flex; flex-wrap: wrap; font-family: var(--sans); font-size: 12px; gap: 4px 10px; opacity: 0.75; }
.ag-format { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ag-pill { border: 1px solid currentColor; border-radius: 99px; font-size: 10px; letter-spacing: 0.05em; padding: 2px 7px; text-transform: uppercase; }
.ag-pill--warn { color: #8a2a1c; }
.ag-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin: 4px 0 2px; }
.ag-sub { color: var(--text-light); font-family: var(--sans); font-size: 13px; }

.ag-item--regular .ag-title { font-size: 19px; }
.ag-item--draft { opacity: 0.6; }
.ag-item.is-cancelled .ag-title, .ag-item.is-cancelled .ag-time { opacity: 0.45; text-decoration: line-through; }

.ag-more { margin: 24px 0 8px; text-align: center; }
.ag-more-btn { border: 1px solid #141414; border-radius: 99px; color: #141414; display: inline-block; font-family: var(--sans); font-size: 14px; padding: 10px 20px; text-decoration: none; }

.ag-empty { color: var(--text-light); font-family: var(--sans); font-size: 16px; margin: 40px auto; max-width: 640px; text-align: center; }
.ag-empty a { color: var(--text); }

.ag-subscribe { margin: 48px auto 0; max-width: 640px; }

@media (max-width: 768px) {
  .ag-strip { gap: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .ag-strip-day:nth-child(n+8) { display: none; }
  .ag-day-title { font-size: 22px; }
  .ag-item { gap: 6px 12px; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; padding: 12px 0; }
  .ag-thumb { grid-column: 1; grid-row: 1 / span 2; }
  .ag-time { font-size: 13px; grid-column: 2; grid-row: 1; }
  .ag-body { grid-column: 2; grid-row: 2; }
  .ag-title { font-size: 18px; }
  .ag-chips { flex-wrap: nowrap; justify-content: flex-start; margin: 0 -14px; overflow-x: auto; padding: 0 14px 4px; scrollbar-width: none; }
  .ag-chip { flex: 0 0 auto; }
}

/* Длинные названия клубов не должны растягивать список шире экрана */
.ag-clubform { max-width: 100%; min-width: 0; }
.ag-select { max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 768px) {
  .ag-filters-row { justify-content: flex-start; }
  .ag-clubform, .ag-select { width: 100%; }
}
/* 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);
  /* По макету (page-43, заголовок формы): смешанный регистр, ~42px */
  font-size: 42px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 24px;
}

.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;
}

.auth-lead {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  margin: -8px 0 24px;
  opacity: 0.7;
}

.auth-notice {
  background: #f1f7f1;
  border: 1px solid #cfe3cf;
  border-radius: 4px;
  color: #1c5b2e;
  font-size: 13px;
  margin-bottom: 16px;
  padding: 12px 16px;
}

/* Согласие на обработку данных под полями регистрации */
.auth-consent {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  gap: 10px;
  line-height: 1.45;
  margin: 4px 0 20px;
}

.auth-consent input { flex: 0 0 auto; margin-top: 2px; }
.auth-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* 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-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: 140px;
  font-weight: 400;
  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;
}

/* ─── Системные сообщения (layouts/_flash) ─── */
.site-flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  left: 50%;
  max-width: calc(100% - 32px);
  position: fixed;
  top: 120px;
  transform: translateX(-50%);
  width: 560px;
  z-index: 900;
}

.site-flash {
  align-items: flex-start;
  animation: site-flash-in 0.25s ease-out;
  background: #141414;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #fff;
  display: flex;
  font-family: var(--sans);
  font-size: 14px;
  gap: 12px;
  justify-content: space-between;
  line-height: 1.45;
  padding: 14px 16px 14px 18px;
}

.site-flash--alert { background: #8a1c1c; }

.site-flash-close {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: 0.7;
  padding: 0 2px;
}

@keyframes site-flash-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Уход: то же движение в обратную сторону — плавное затухание вверх */
.site-flash { transition: opacity .35s ease, transform .35s ease; }
.site-flash.is-leaving { opacity: 0; transform: translateY(-6px); }

@media (max-width: 768px) {
  .site-flash-stack { top: 88px; }
}
/* 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);
  /* По макету: «12» прямой, ~118px */
  font-size: 118px;
  font-weight: 400;
  line-height: 0.85;
  color: var(--text);
}

.cal-date-month-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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);
}

/* По макету: гигантские тонкие скобки (Buda, как у заголовков education),
   вытянутые сильно выше и ниже названия месяца. line-height:0 — глифы
   не раздувают ряд, свисают поверх соседних блоков */
.cal-bracket {
  font-family: "Buda", Georgia, serif;
  font-size: 260px;
  font-weight: 400;
  line-height: 0;
  position: relative;
  top: 0.06em;
  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;
}

/* Неделя на главной: день с событиями — точка под числом, пустые приглушены */
.cal-day-col { text-decoration: none; color: inherit; }
.cal-day-col.is-empty { opacity: 0.35; }
.cal-day-dot { background: transparent; border-radius: 50%; display: block; height: 5px; margin: 6px auto 0; width: 5px; }
.cal-day-col.has-items .cal-day-dot { background: currentColor; }
.cal-filter-tab { text-decoration: none; }

/* «Регулярно:» под карточками */
.cal-regular {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 13px;
  gap: 6px 18px;
  justify-content: center;
  margin: 36px auto 0;
  max-width: 980px;
}
.cal-regular-label { opacity: 0.55; }
.cal-regular-item { color: inherit; text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 3px; }
/* Стили для корзины */

.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;
}

/* Запас перед закруглением низа шапки — иначе прямоугольная лента фото
   упирается прямо в срез border-radius и «слипается» со следующей секцией. */
.cs-hero:has(.cs-photo-strip) {
  padding-bottom: 70px;
}

.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 */
/* Лента фото клуба: картинки целиком, в своих пропорциях, одной высоты.
   Раньше это была сетка высотой 233px на всю ширину — почти квадратные фото
   растягивались до ~1000px и резались до узкой полосы (мыло и «середина»).
   Не помещаются в ширину — лента листается вбок. */
.cs-photo-strip {
  display: flex;
  gap: 8px;
  height: 360px;
  justify-content: safe center;
  margin-top: 60px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
  width: 100%;
  /* Как в макете «Мутабора»: крайние фото растворяются в белом — видно,
     что лента продолжается. Затухание привязано к краям экрана, поэтому
     при прокрутке уходит в белое то фото, что сейчас у края. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
}

.cs-photo-strip::-webkit-scrollbar { display: none; }

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

.cs-photo-img {
  display: block;
  height: 100%;
  max-width: none;
  object-fit: contain;
  width: auto;
}

.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-hero:has(.cs-photo-strip) { padding-bottom: 48px; }
  .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 { height: 260px; }

  .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;
}
/* ─── «Культурное пространство» (/culture): шапка → ближайшие события →
   форматы → прошедшие. Белые панели на фоне, как у остальных разделов;
   карточки событий — общие .ev-card из events.css. ─── */
.cu-page {
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.cu-panel {
  background: var(--white);
  margin-top: 1px;
  padding: 80px 0;
}

.cu-hero {
  border-radius: 100px 100px 0 0;
  padding: 120px 0 90px;
  text-align: center;
}

.cu-events--past {
  border-radius: 0 0 100px 100px;
  margin-bottom: 1px;
}

/* Заголовок «Культурное (пространство)» — как cs-title на главной */
.cu-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.cu-title-line--brackets {
  display: inline-flex;
  align-items: baseline;
}

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

.cu-subtitle {
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  margin: 32px auto 0;
  max-width: 640px;
}

.cu-title--section {
  font-size: 96px;
  margin-bottom: 56px;
}

.cu-title--section .cu-bracket {
  font-size: 120px;
  top: 10px;
}

/* Блоки событий */
.cu-section-head {
  align-items: baseline;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 36px;
}

.cu-section-title {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

.cu-events .events-grid {
  /* базовый .events-grid из home.css — flex с padding 0 80px; здесь сетка на всю ширину */
  align-items: stretch;
  display: grid;
  gap: 16px;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.cu-empty {
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Форматы: пять плиток в ряд, на узких экранах переносятся */
.cu-format-grid {
  display: grid;
  gap: 32px 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.cu-format-photo {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
}

.cu-format-img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  width: 100%;
}

.cu-format:hover .cu-format-img {
  transform: scale(1.03);
}

.cu-format-head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.cu-format-icon {
  height: 36px;
  width: 36px;
}

.cu-format-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.cu-format-text {
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 0;
}

@media (max-width: 1100px) {
  .cu-events .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .cu-panel { padding: 48px 0; }
  .cu-hero { border-radius: 36px 36px 0 0; padding: 64px 0 48px; }
  .cu-events--past { border-radius: 0 0 36px 36px; }
  .cu-title { font-size: 44px; }
  .cu-bracket { font-size: 60px; top: 6px; }
  .cu-title--section { font-size: 40px; margin-bottom: 32px; }
  .cu-title--section .cu-bracket { font-size: 54px; top: 5px; }
  .cu-subtitle { font-size: 14px; margin-top: 20px; }
  .cu-section-head { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 24px; }
  .cu-section-title { font-size: 32px; }
  .cu-events .events-grid { grid-template-columns: minmax(0, 1fr); }
  .cu-format-grid { gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cu-format-title { font-size: 24px; }
  .cu-format-icon { height: 28px; width: 28px; }
}

a.cu-format { color: inherit; display: block; text-decoration: none; }
.cu-format-more { color: var(--text-light); display: inline-block; font-family: var(--sans); font-size: 13px; margin-top: 10px; }
a.cu-format:hover .cu-format-more { color: var(--text); }
/* 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.
   По макету (page-43): смешанный регистр ~42px, скобки обнимают
   только нижнюю строку «профиля» — как в имени на странице профиля */
.edit-profile-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.edit-profile-title-line2-row {
  display: flex;
  align-items: last baseline;
  justify-content: center;
  gap: 16px;
}

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

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

.edit-profile-title-line2 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  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;
  position: absolute;
  bottom: -4px;
  left: calc(50% + 40px);
  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 — по макету page-43 без разделительных линий */
.edit-profile-password-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 4px;
  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 — по макету page-43 текстовая ссылка со стрелкой по центру */
.edit-profile-submit-wrap {
  width: 100%;
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.edit-profile-submit {
  background: none;
  border: none;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s;
}

.edit-profile-submit:hover {
  opacity: 0.5;
}

/* 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: 36px;
  }

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

  .edit-profile-bracket {
    font-size: 44px;
  }

  .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;
  /* Боковые поля — это дорожка, по которой лента доезжает до центра.
     Прежние 360px не давали центрировать ПЕРВУЮ и ПОСЛЕДНЮЮ карточки
     (им не хватало 218px прокрутки), поэтому они никогда не становились
     активными и клик по ним не открывал ссылку. Поле должно быть не меньше
     половины ширины ленты минус половина карточки. */
  --edu-card-w: 284px;
  --edu-rail-pad: max(360px, calc(50% - var(--edu-card-w) / 2));
  padding: 80px var(--edu-rail-pad) 96px;
  position: relative;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--edu-rail-pad);
  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%;
  -webkit-user-drag: none;
}

.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: 36px 36px 0 0;
    /* Высота по контенту — десктопный min-height:922 оставлял пустоту снизу */
    min-height: auto;
    padding: 88px 0 72px;
  }

  .edu-hero-title-wrap {
    /* Десктопный абсолют (top:168) оставлял провал — переводим в поток */
    position: static;
    transform: none;
    top: auto;
    left: auto;
    gap: 24px;
    width: auto;
    margin: 0 auto;
    padding: 0 20px;
  }

  .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: 36px;
    min-height: auto;
  }

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

  .edu-section-heading {
    /* Скобки прижаты к низу заголовка: дальше сдвигаем их так, чтобы верх
       скобки совпал с верхом ПОСЛЕДНЕЙ строки (на 2-3 строках центрирование
       оставляло скобку висеть посреди заголовка). */
    align-items: end;
    grid-template-columns: 26px minmax(0, auto) 26px;
    /* Фиксированные 43px не давали влезть длинному слову: «Подростковый»
       вылезало из колонки на 32px и налезало на скобку. Кегль тянется за
       шириной экрана, скобка следует за ним через --edu-title-fs. */
    --edu-title-fs: clamp(32px, 9.5vw, 43px);
    --edu-title-lh: 0.95;
  }

  .edu-section-title {
    font-size: var(--edu-title-fs);
    line-height: var(--edu-title-lh);
    max-width: 320px;
  }

  .edu-title-bracket {
    font-size: 72px;
    /* 0.785em — расстояние от низа строчного бокса до верхней кромки глифа «(»
       в Buda. Вычитаем высоту одной строки заголовка: верх скобки садится
       ровно на верх нижней строки. */
    transform: translateY(calc(0.785em - var(--edu-title-fs) * var(--edu-title-lh)));
  }

  .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;
    /* width:100%+40px компенсирует padding:20px у .edu-section-inner, но без
       отрицательного margin лента вылезала только вправо и центральная
       карточка вставала на 20px правее центра экрана. */
    margin: 26px -20px 0;
    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;
  }
}

/* Номера направлений в шапке — ссылки к разделам на этой же странице */
a.edu-program-label { color: inherit; cursor: pointer; text-decoration: none; transition: opacity .2s; }
/* Наведение: остальные направления приглушаются, выбранное остаётся ярким
   и чуть приподнимается — без подчёркиваний. */
a.edu-program-label { transition: opacity .25s, transform .25s; }
.edu-hero-programs:hover a.edu-program-label { opacity: .3; }
.edu-hero-programs a.edu-program-label:hover,
.edu-hero-programs a.edu-program-label:focus-visible { opacity: 1; transform: translateY(-3px); }
a.edu-program-label:focus-visible { outline: none; }
.edu-section[id] { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }

/* Ссылка на общий список клубов внизу «Центра образования» */
.edu-all-clubs {
  padding: 72px 16px 96px;
  text-align: center;
}
.edu-all-clubs-link {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.1;
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
.edu-all-clubs-link:hover { opacity: .7; }
.edu-all-clubs-link:hover .edu-all-clubs-arrow { transform: translateX(6px); }
.edu-all-clubs-arrow { display: inline-block; margin-left: 12px; transition: transform .2s ease; }
.edu-all-clubs-note { margin-top: 12px; opacity: .6; font-size: 16px; }
.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 */

/* Низ панели как в макете page-49: скругление и футер сразу за ней.
   Без min-height — при коротком списке не остаётся пустой «дыры» */
.events-page {
  width: 100%;
  margin: 1px 0 0;
  padding: 76px clamp(18px, 1.6vw, 24px) 110px;
  overflow: hidden;
  background: var(--white);
  border-radius: 100px;
}

.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 50px;
}

.events-bracket {
  font-family: "Buda", Georgia, serif;
  font-size: 240px;
  font-weight: 400;
  line-height: 0.55;
  color: var(--text);
  /* По макету (page-49): скобки на ~41px ниже оси заголовка,
     верх скобки вровень с верхом «С», хвост уходит под ряд фильтров */
  position: relative;
  top: 41px;
}

.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 40px;
}

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

.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;
  /* По макету: иконка календаря ~20px при капсе 11–12px */
  width: 20px;
  height: 20px;
}

.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: 22px;
  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-row {
  gap: 4px;
}

.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;
}

/* По макету (page-49): время мельче даты и серое (~#666) */
.ev-card-time {
  font-size: 12px;
  color: #666;
}

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

.ev-card-club {
  color: #666;
  font-family: var(--sans);
  font-size: 12px;
  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;
    top: 26px;
  }

  .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: 36px 36px 0 0;
  }

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

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

  .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 {
    font-size: 13px;
  }

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

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

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

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

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

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

/* ─── Метка «Билеты» у события со ссылкой на регистрацию ─── */
.ev-card-tickets {
  align-self: flex-start;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-top: 4px;
  padding: 4px 8px;
  text-transform: uppercase;
}
/* Footer */

.site-footer {
  border-radius: 100px 100px 0 0;
  border-top: 1px solid var(--border);
  background: var(--white);
  margin-top: 1px;
  /* По макету: футер компактный, меньше пустого пространства */
  padding: 52px 0 56px;
}

.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: 32px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.01em;
  /* По макету: «Пространство «Руфъ»» смешанным регистром */
}

.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: 0;
}

.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;
}

/* Строка с политикой данных внизу подвала */
.footer-legal {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 12px;
  gap: 8px 24px;
  justify-content: space-between;
  margin-top: 32px;
  opacity: 0.6;
  padding-top: 16px;
}

.footer-legal a { color: inherit; text-underline-offset: 3px; }

/* Уведомление о cookie */
.cookie-notice {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  bottom: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  display: flex;
  font-family: var(--sans);
  font-size: 13px;
  gap: 16px;
  left: 16px;
  line-height: 1.45;
  max-width: 520px;
  padding: 14px 16px 14px 18px;
  position: fixed;
  z-index: 950;
}

.cookie-notice[hidden] { display: none; }
.cookie-notice a { color: inherit; text-underline-offset: 3px; }

.cookie-notice-btn {
  background: #141414;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 13px;
  padding: 9px 14px;
}

@media (max-width: 560px) {
  .cookie-notice { left: 12px; right: 12px; }
}

.footer-legal-links { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }
.cookie-notice { flex-wrap: wrap; max-width: 600px; }
.cookie-notice-actions { display: inline-flex; flex: 0 0 auto; gap: 8px; }
.cookie-notice-btn--ghost { background: transparent; border: 1px solid #141414; color: #141414; }

/* Подвал всегда внизу окна: на коротких страницах раньше под ним была серая дыра */
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-footer { margin-top: auto; }
/* 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: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  text-align: center;
  z-index: 2;
}

.hero-title {
  font-family: var(--serif);
  /* Крупный заголовок в масштабе страницы «Центр образования» */
  font-size: 200px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.92;
  margin-bottom: 18px;
}

.hero-subtitle {
  /* Стиль описания как на /education (.edu-hero-subtitle) */
  font-family: var(--sans);
  font-size: 20px;
  color: #222;
  max-width: 490px;
  margin: 0 auto;
  line-height: 1.2;
}

/* Features layout */
.hero-features {
  position: absolute;
  /* По макету: пункты 1 и 4 опоясывают «Руфъ» — попадают по вертикали
     между заголовком и подзаголовком; 2 и 3 ниже. Пропорции 4 пунктов
     относительно друг друга сохранены (сдвиг всей группы целиком). */
  top: 360px;
  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;
  /* Шрифт и цвет как на /education: Zapus-Sans, единый #030303 при opacity 0.5 */
  color: #030303;
  opacity: 0.5;
  /* номер и обе строки выровнены по центру блока */
  text-align: center;
}

.feature:hover { opacity: 0.85; }

.feature-number {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.16;
}

.feature-label {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.16;
}

/* Image strip */
.image-strip {
  position: absolute;
  bottom: 0;
  left: -28px;
  display: flex;
  gap: 12px;
  height: 233px;
  z-index: 2;
  /* По макету (page-28): крайние фото осветляются (затухают в белый фон)
     к боковым краям полосы */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.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);
  /* По макету: «12» ≈ 118px, без курсива */
  font-size: 118px;
  font-weight: 400;
  line-height: 0.85;
}

.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;
}

/* Селектор со скоупом .cultural-space: класс .cs-title есть и в club_show.css
   (max-width:1100px без авто-центрирования) — без скоупа тот блок съезжал влево */
.cultural-space .cs-title {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  /* По макету: «Культурное (пространство)» смешанным регистром */
  letter-spacing: 0.01em;
  /* только сброс max-width из club_show.css: блок растягивается на всю ширину,
     text-align:center выравнивает обе строки по одной оси; margin auto нельзя —
     в flex-строке row2 он растаскивает скобки от слова */
  max-width: none;
}

.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;
  justify-content: center; /* по макету чипы по центру */
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 18px;
  margin-top: 60px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-light);
}

/* Категории — кнопки: сброс дефолтного вида button, вид как у текста */
.cs-tags .tag-item {
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.cs-tags .tag-item.active {
  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; }

/* Линейные иконки категорий (вырезаны из макета page-28, прозрачные PNG).
   Активная/наведённая — тёмная и приподнята, остальные полупрозрачные */
.cs-icons {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 44px;
  padding: 0 18px;
}

.cs-icon {
  flex: 0 1 228px;
  max-width: 228px;
  cursor: pointer;
}

/* Покой — все иконки чёрные. Приглушаются только когда пользователь
   наводится на категорию: тогда выбранная остаётся чёрной, остальные гаснут.
   Все шесть PNG полноценно чёрные (пять из шести были вырезаны из макета
   уже приглушёнными на 80% — из-за этого выбранная оставалась бледной),
   поэтому приглушение целиком живёт в CSS. */
.cs-icon img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* 0.036 — прежний фактический вид невыбранной иконки:
   20% альфы файла × 0.18 непрозрачности. */
.cs-icons.is-focused .cs-icon img {
  opacity: 0.036;
}

.cs-icons.is-focused .cs-icon.active img,
.cs-icon:hover img {
  opacity: 1;
  transform: translateY(-6px);
}

.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;
  /* По макету: «Новости (Сообщества)» смешанным регистром */
  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: 150px;
  font-weight: 400;
  line-height: 0.92;
  /* По макету: «Наши ценности» смешанным регистром */
  letter-spacing: 0.01em;
}

.values-carousel {
  position: relative;
  height: 520px;
  margin-top: 48px;
  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-img .vc-photo {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.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; /* уточняется скриптом по высоте подписи (placeValueBrackets) */
  transition: top 500ms ease-in-out;
  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%;
  /* По макету: боковые карточки опущены ниже центральной */
  top: 76px;
  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%;
  top: 76px;
  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;
  /* По макету: «Хотите помочь?» смешанным регистром */
  letter-spacing: 0.01em;
}

.help-description {
  /* По макету: серифом ~34px, смешанным регистром */
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--text);
  max-width: 904px;
  margin: 50px auto 0;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.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;
  /* Способ может быть ссылкой (<a>) — без подчёркивания и синего цвета */
  color: inherit;
  display: block;
  text-decoration: none;
}

.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 */
/* Как events-page: скруглённый низ, футер сразу за панелью, без min-height */
.idx-page {
  width: 100%;
  margin: 1px 0 0;
  padding: 76px 20px 110px;
  overflow: hidden;
  background: var(--white);
  border-radius: 100px;
}

.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: 50px;
}

.idx-bracket {
  font-family: "Buda", Georgia, serif;
  font-size: 240px;
  font-weight: 400;
  line-height: 0.55;
  /* По макетам (page-46/47/49): скобки на ~41px ниже оси заголовка,
     верх скобки вровень с верхом первой буквы, хвост уходит под ряд фильтров */
  position: relative;
  top: 41px;
}

.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: 0 0 40px; position: relative; }
.idx-sort-tabs { margin-bottom: 40px; }

/* На странице клубов нет ряда «Ваша дата» — сортировки стоят на той же
   высоте, что и второй ряд фильтров на событиях/новостях (page-46).
   padding, а не margin: margin-top схлопывается с margin-bottom титульного блока */
.idx-page--clubs .idx-sort-tabs { padding-top: 62px; }

.idx-date-tab svg {
  flex: 0 0 auto;
  /* По макету: иконка календаря ~20px при капсе 11–12px */
  width: 20px;
  height: 20px;
}

.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-desc {
  margin: 10px 0 0; font-size: 14px; line-height: 1.35; opacity: 0.7;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.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; top: 15px; }
  .idx-date-tab, .idx-sort-tab { font-size: 13px; }
  .idx-page--clubs .idx-sort-tabs { padding-top: 0; }
  .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; }
}

/* ─── /site_texts — тот же полноширинный белый лист, что у клубов/событий
   (.idx-page), но без декоративных скобок в заголовке: названия страниц тут
   не одно слово («Меню, подвал и контакты»), а гигантский idx-title со
   скобками рассчитан именно на однословные «Клубы»/«События» — на двух
   строках скобка не успевает вырасти под высоту текста и наезжает на текст
   под ней. Плюс контент уже колонкой на 720px, а не на всю ширину 1472px,
   так что размашистый заголовок был бы к тому же непропорционален. ─── */
.texts-index,
.texts-form-wrap {
  margin: 0 auto;
  max-width: 720px;
}

.texts-page-title {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 40px;
  text-align: center;
}

.texts-index-hint {
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 36px;
  text-align: center;
}

.admin-mini-list--texts .admin-mini-item {
  padding: 4px 0;
}

.texts-back-link {
  display: inline-block;
  margin-top: 32px;
}

.texts-edit-header {
  margin: 0 auto 8px;
  max-width: 720px;
  text-align: center;
}

.texts-edit-header .profile-card-link {
  display: inline-block;
  margin-bottom: 20px;
}

.texts-edit-header .texts-page-title {
  margin-bottom: 40px;
}

@media (max-width: 760px) {
  .texts-page-title {
    font-size: 34px;
  }
}

/* ─── Фото на форме «Тексты сайта»: плитки в ряд внутри раздела страницы,
   сразу под текстом, к которому фото относится (превью, подпись,
   кнопка загрузки). Четыре фото шапки помещаются в один ряд на 720px. ─── */
.texts-section + .texts-section {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 32px;
}

.texts-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 20px;
  padding: 4px 0 8px;
}

.texts-image-tile {
  display: flex;
  flex: 0 0 148px;
  flex-direction: column;
  gap: 10px;
}

.texts-image-tile .af-file-thumb {
  border-radius: 12px;
  height: 148px;
  object-fit: cover;
  width: 148px;
}

.texts-image-label {
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .texts-image-tile {
    flex-basis: calc(50% - 10px);
  }

  .texts-image-tile .af-file-thumb {
    aspect-ratio: 1;
    height: auto;
    width: 100%;
  }
}

/* ─── Черновики в редакторе «Тексты сайта» ─── */
.texts-draft-note {
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  margin: -16px auto 32px;
  max-width: 620px;
  opacity: 0.8;
}

.texts-draft-badge,
.texts-draft-mark {
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 3px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.texts-draft-badge {
  margin-right: 8px;
}

.texts-draft-mark {
  margin-left: 6px;
  opacity: 0.7;
}

.texts-actions {
  display: flex;
  gap: 12px;
}

.texts-actions .af-submit-btn {
  flex: 1 1 0;
}

.af-submit-btn--ghost {
  background: transparent;
  color: var(--text);
}

.af-submit-btn--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

.texts-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin-top: 20px;
}

.texts-inline-form {
  display: inline;
}

.texts-link-btn {
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.texts-link-btn--danger {
  opacity: 0.6;
}

.texts-link-btn:hover {
  opacity: 1;
}

@media (max-width: 760px) {
  .texts-actions {
    flex-direction: column;
  }
}

/* ─── Плашка предпросмотра черновиков (только для админа) ─── */
.site-preview-bar {
  align-items: center;
  background: #030303;
  bottom: 0;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 14px;
  gap: 8px 20px;
  justify-content: space-between;
  left: 0;
  padding: 12px 20px;
  position: fixed;
  right: 0;
  z-index: 1000;
}

.site-preview-bar__actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.site-preview-bar__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-preview-bar__btn {
  background: #fff;
  border: 0;
  border-radius: 8px;
  color: #030303;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 14px;
}

/* ─── Уведомление в редакторе «Тексты сайта» (layout флэши не показывает) ─── */
.texts-flash {
  background: #030303;
  border-radius: 10px;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  margin: 0 auto 28px;
  max-width: 720px;
  padding: 14px 18px;
  text-align: center;
}

.texts-flash--alert {
  background: #8a1c1c;
}

/* Админские кнопки «удалить/изменить» в правом верхнем углу карточки
   не должны наезжать на название */
.idx-card:has(.idx-card-actions) .idx-card-name { padding-right: 84px; }

/* Пояснения в редакторе текстов: подстановки {…}, разделы без предпросмотра */
.texts-hint { margin: 12px 0 0; font-family: var(--sans); font-size: 14px; line-height: 1.45; opacity: 0.7; max-width: 720px; }
.texts-hint code { font-size: 13px; background: #f1efe9; padding: 1px 5px; border-radius: 4px; }
/* ─── Заявка в клуб, мини-подписка, ближайшие занятия ─── */
.hp-field { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }

.cs-join {
  background: var(--white);
  margin-top: 1px;
  padding: 90px 0;
}

.cs-join-inner { max-width: 820px; }

.cs-join-lead {
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  margin: 18px 0 32px;
}

.cs-join-form.af-form { gap: 18px; }

.cs-join-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs-join-grid .af-field { margin: 0; }
.cs-join-wide { grid-column: 1 / -1; }

.cs-join-check {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  font-family: var(--sans);
  font-size: 13px;
  gap: 10px;
  line-height: 1.45;
}

.cs-join-check input { flex: 0 0 auto; margin-top: 2px; }
.cs-join-check a, .sub-form a { color: inherit; text-underline-offset: 2px; }

.cs-join-errors {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: 8px;
  color: #a31b1b;
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 16px;
}

.cs-join-sub { margin-top: 48px; }

/* Мини-форма подписки */
.sub-form {
  background: #f4f3ef;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  gap: 12px;
  padding: 20px 22px;
}

.sub-form-title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.sub-form-hint { color: var(--text-light); font-size: 13px; margin-top: 4px; }

.sub-form-row { display: flex; gap: 10px; }

.sub-form-input {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  flex: 1 1 auto;
  font-family: var(--sans);
  font-size: 15px;
  min-width: 0;
  padding: 12px 14px;
}

.sub-form-btn {
  background: #141414;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 18px;
}

.sub-form-consent {
  align-items: flex-start;
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.45;
}

.sub-form-consent input { flex: 0 0 auto; margin-top: 2px; }

/* Ближайшие занятия клуба */
.cs-occ { margin: 8px 0 36px; }

.cs-occ-title {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 0.6;
  text-transform: uppercase;
}

.cs-occ-list { list-style: none; margin: 0; padding: 0; }

.cs-occ-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 15px;
  gap: 6px 18px;
  padding: 10px 0;
}

.cs-occ-date { min-width: 170px; }
.cs-occ-time { color: var(--text-light); }
.cs-occ-item.is-cancelled .cs-occ-date,
.cs-occ-item.is-cancelled .cs-occ-time { opacity: 0.5; text-decoration: line-through; }

.cs-occ-flag {
  border: 1px solid currentColor;
  border-radius: 99px;
  color: #8a2a1c;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .cs-join { padding: 48px 0; }
  .cs-join-grid { grid-template-columns: 1fr; }
  .sub-form-row { flex-direction: column; }
  .cs-occ-date { min-width: 0; width: 100%; }
}

/* Страница «Мои подписки» */
.subs-grid { display: grid; gap: 8px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subs-check { align-items: flex-start; cursor: pointer; display: flex; gap: 10px; }
.subs-check input { margin-top: 5px; }
.subs-radio { margin-bottom: 8px; }
.subs-note { color: var(--text-light); font-size: 13px; }
.subs-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; }
.subs-actions form { display: inline; }
.subs-link { color: inherit; font-size: 14px; text-underline-offset: 3px; }
@media (max-width: 768px) { .subs-grid { grid-template-columns: 1fr; } }

/* Лёгкие админ-страницы: рассылки, заявки */
.admin-lite-wide { max-width: 960px; }
.admin-lite-stats { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); margin: 0 0 12px; }
.admin-lite-stats div { background: #f4f3ef; border-radius: 12px; font-size: 13px; padding: 12px 14px; }
.admin-lite-stats b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.admin-lite-group { font-size: 12px; letter-spacing: .06em; margin: 16px 0 4px; opacity: .6; text-transform: uppercase; }
.sub-form-btn--ghost { background: transparent; border: 1px solid #141414; color: #141414; }
.admin-lite-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.admin-lite-filters a { border: 1px solid rgba(0,0,0,.2); border-radius: 99px; color: inherit; font-size: 13px; padding: 6px 12px; text-decoration: none; }
.admin-lite-filters a.is-active { background: #141414; border-color: #141414; color: #fff; }
.admin-lite-clubform select { border: 1px solid rgba(0,0,0,.25); border-radius: 8px; font-family: var(--sans); font-size: 14px; margin-bottom: 20px; padding: 8px 10px; }
.app-card { border: 1px solid rgba(0,0,0,.15); border-left-width: 4px; border-radius: 12px; margin-bottom: 12px; padding: 14px 16px; }
.app-card--new { border-left-color: #8a2a1c; }
.app-card--contacted { border-left-color: #b8860b; }
.app-card--accepted { border-left-color: #1c6b46; }
.app-card--rejected { border-left-color: #999; opacity: .75; }
.app-card-head { display: flex; flex-wrap: wrap; font-size: 12px; gap: 6px 14px; opacity: .8; }
.app-card-status { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.app-card-head a { color: inherit; }
.app-card-name { font-family: var(--serif); font-size: 22px; margin: 6px 0 2px; }
.app-card-contacts { font-size: 14px; }
.app-card-contacts a { color: inherit; }
.app-card-comment { background: #f4f3ef; border-radius: 8px; font-size: 14px; margin-top: 8px; padding: 8px 10px; }
.app-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.app-card-actions form { display: inline; }
.app-card-btn { background: none; border: 1px solid rgba(0,0,0,.3); border-radius: 8px; cursor: pointer; font-family: var(--sans); font-size: 13px; padding: 6px 12px; }
@media (max-width: 768px) { .admin-lite-stats { grid-template-columns: repeat(2, 1fr); } }

/* Отмены/переносы занятий в форме клуба */
.sched-ex { border-top: 1px solid rgba(0,0,0,.1); margin-top: 48px; padding-top: 40px; }
.sched-ex-form { display: flex; flex-direction: column; gap: 14px; }
.sched-ex-list { list-style: none; margin: 0; padding: 0; }
.sched-ex-list li { align-items: center; border-bottom: 1px solid rgba(0,0,0,.08); display: flex; font-family: var(--sans); font-size: 14px; gap: 12px; justify-content: space-between; padding: 8px 0; }
.sched-ex-list form { display: inline; }

/* Ссылки на согласия внутри подписей к галочкам должны выглядеть ссылками */
.cs-join-check a, .sub-form-consent a, .auth-consent a { text-decoration: underline; text-decoration-color: rgba(0,0,0,.35); }

/* Страница клуба: весь текст по центру, как заголовки секций */
.cs-about-desc, .cs-join-lead { text-align: center; }
.cs-occ { margin-left: auto; margin-right: auto; max-width: 520px; text-align: center; }
.cs-occ-item { justify-content: center; }
.cs-occ-date { min-width: 0; }
.cs-join-check { justify-content: center; text-align: left; }

/* Отступ от заголовка «(Подписаться)» — скобки свисают ниже строки и слипались с текстом */
.cs-join-lead { margin: 56px auto 32px; max-width: 640px; }
@media (max-width: 768px) { .cs-join-lead { margin-top: 36px; } }

/* «На связи:» — Telegram клуба в строке «Для кого / Когда» */
.cs-contact-link { align-items: center; color: inherit; display: inline-flex; gap: 8px; text-decoration: underline; text-decoration-color: rgba(0,0,0,.3); text-underline-offset: 4px; }
.cs-contact-link:hover { text-decoration-color: currentColor; }
.cs-contact-icon { flex: 0 0 auto; height: 20px; width: 20px; }

/* Ссылка «Удалить клуб» в форме — отдельно, приглушённо, без соседства с сохранением */
.af-danger-zone { border-top: 1px solid rgba(0,0,0,.1); margin-top: 32px; padding-top: 20px; text-align: right; }
.af-danger-link { color: #8a2a1c; font-family: var(--sans); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
/* ─── Политика и согласия (/privacy, /consent/…) ─── */
.legal-page {
  background: var(--white);
  border-radius: 100px;
  margin: 1px 0;
  padding: 90px 0 110px;
}

.legal-wrap {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  max-width: 820px;
}

.legal-kicker { color: var(--text-light); font-size: 13px; margin: 0 0 12px; }

.legal-title {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 32px;
}

.legal-wrap h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin: 36px 0 12px;
}

.legal-wrap p { margin: 0 0 14px; }
.legal-wrap a { color: inherit; text-underline-offset: 3px; }

.legal-operator {
  background: #f4f3ef;
  border-radius: 12px;
  padding: 14px 18px;
}

.legal-table { border-collapse: collapse; font-size: 13px; margin: 8px 0 16px; width: 100%; }
.legal-table th { border-bottom: 1px solid #141414; font-weight: 600; padding: 6px 8px; text-align: left; }
.legal-table td { border-bottom: 1px solid #e3e3de; padding: 8px; vertical-align: top; }

@media (max-width: 768px) {
  .legal-page { border-radius: 36px; padding: 48px 0 64px; }
  .legal-title { font-size: 34px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { border-bottom: 1px solid #e3e3de; padding: 8px 0; }
  .legal-table td { border: 0; padding: 2px 0; }
  .legal-table td:first-child { font-weight: 600; }
}

/* Короткие служебные страницы (подписка не найдена, отписка): текст по центру,
   карточка растягивается, чтобы подвал стоял внизу экрана без серой дыры. */
.legal-page--center { align-items: center; display: flex; flex: 1 0 auto; justify-content: center; text-align: center; }
.legal-page--center .subs-actions { justify-content: center; }
/* Header/navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 48px;
  position: sticky;
  top: 12px;
  /* По макету (page-28): хедер во всю ширину контента, как блоки ниже
     (раньше был ограничен 1512px и казался уже на широких экранах) */
  margin: 12px 0 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-img {
  width: auto;
  height: 31px;
  display: block;
}

.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 оставлял серые поля по бокам). */
  max-width: none;
  margin: 0;
  display: grid;
  /* По макету (page-38): сайдбар 514px, зазор 1px, карточки от края до края */
  grid-template-columns: 514px 1fr;
  gap: 1px;
  min-height: 728px;
}

/* LEFT SIDEBAR */
.profile-sidebar {
  background: var(--white);
  /* нижний правый угол сайдбара тоже скруглён в макете */
  border-radius: 100px 0 60px 100px;
  padding: 48px 40px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-name-block {
  display: flex;
  align-items: baseline;
  /* По макету (page-38) скобки обнимают нижнюю строку имени */
  align-items: last baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.profile-bracket {
  font-family: var(--serif);
  /* По макету: высота скобки ~62px => кегль ~66px (глифа «(» = 0.93em) */
  font-size: 66px;
  font-weight: 300;
  line-height: 0.85;
  position: relative;
  top: 0.1em;
  color: var(--text);
}

.profile-name-text {
  text-align: center;
}

.profile-first-name {
  font-family: var(--serif);
  /* По макету: смешанный регистр (капитель TT Ricordi), ~42px */
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.profile-last-name {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  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);
  /* По макету: ~90px от роли до аватара */
  margin-bottom: 80px;
}

/* Avatar */
.profile-avatar {
  /* По макету: диаметр ~254px */
  width: 250px;
  height: 250px;
  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: 32px;
  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;
}

/* По макету «Выйти из аккаунта» приглушённая (серая) */
.profile-action--muted {
  color: var(--text-light);
}

/* RIGHT CONTENT */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0; /* иначе лента клубов растягивает колонку сетки шире экрана */
}

.profile-card {
  background: var(--white);
  padding: 40px 50px 50px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* По макету (page-38) нижние углы карточек скруглены «раструбами»:
   на стыках ~60px, внешний нижний правый — 100px */
.profile-card:first-child {
  border-radius: 0 100px 60px 60px;
}

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

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}

.profile-card-title {
  font-family: var(--serif);
  /* По макету (page-38): смешанный регистр, ~32px */
  font-size: 32px;
  font-weight: 400;
  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);
  /* По макету (page-38): смешанный регистр, ~40px, интерлиньяж 48px */
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
  flex: 1;
  display: flex;
  /* По макету пустое состояние прижато к низу карточки */
  align-items: flex-end;
}

/* 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);
}

/* Мои клубы — горизонтальная лента карточек (макет page-39):
   квадратное фото, название, дата подписки; край ленты растворяется */
.profile-clubs-rail {
  display: flex;
  gap: 44px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 60px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 60px), transparent);
}
.profile-clubs-rail::-webkit-scrollbar { display: none; }

.profile-club-card {
  flex: 0 0 126px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}
.profile-club-card:hover { opacity: 0.7; }
.profile-club-card:last-child { margin-right: 40px; }

.profile-club-photo {
  width: 126px;
  height: 126px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8e4dd;
}
.profile-club-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.profile-club-name {
  margin: 14px 0 0;
  font-family: "Onest", var(--sans);
  font-size: 17px;
  line-height: 1.1;
}
.profile-club-since {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  opacity: 0.55;
}
.profile-club-manage {
  align-self: flex-start;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text);
  opacity: 0.55;
}
.profile-club-manage:hover { opacity: 1; }

/* Responsive */
@media (max-width: 1100px) {
  .profile-layout {
    grid-template-columns: 400px 1fr;
  }

  .profile-empty {
    font-size: 32px;
  }
}

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

  .profile-sidebar {
    border-radius: 36px 36px 0 0;
    padding: 40px 24px 30px;
  }

  .profile-card {
    padding: 32px 24px 40px;
  }

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

  .profile-card:last-child {
    border-radius: 0 0 36px 36px;
  }

  .profile-first-name,
  .profile-last-name {
    font-size: 34px;
  }

  .profile-bracket {
    font-size: 54px;
  }

  .profile-card-title {
    font-size: 26px;
  }

  .profile-empty {
    font-size: 24px;
  }

  .profile-role {
    margin-bottom: 48px;
  }

  .profile-avatar {
    width: 200px;
    height: 200px;
  }
}

.profile-club-note { margin: 0 0 16px; font-size: 14px; line-height: 1.4; opacity: .7; }
/* ═══════════════════════════════════════════
   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;
  /* Шрифт и цвет как на «Руфъ»/education: единый #030303 при opacity 0.5 */
  color: #030303;
  opacity: 0.5;
}

.shop-hero-cat-num {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.16;
  text-align: center;
}

.shop-hero-cat-label {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.16;
  text-align: center;
  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;
  /* Тянем блок на всю ширину, чтобы крупный заголовок «Лавка» (шире 510px)
     центрировался по странице, а не прижимался влево из-за overflow */
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  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 {
  /* Стиль описания как на /education (.edu-hero-subtitle) */
  font-family: var(--sans);
  font-size: 20px;
  color: #222;
  max-width: 490px;
  margin: 0 auto;
  line-height: 1.2;
}

/* ═══════════ 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 36px 36px; padding: 48px 0 64px; }

  /* Абсолютная десктопная раскладка → сетка: заголовок с описанием сверху,
     категории под ними в 2 колонки — с номерами, как в макете */
  .shop-hero-inner {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .shop-hero-center {
    position: static;
    transform: none;
    width: 100%;
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 24px;
  }

  .shop-hero-title { font-size: 72px; }
  .shop-hero-desc { font-size: 14px; padding: 0 8px; }

  .shop-hero-cat {
    position: static;
    width: auto;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }

  .shop-hero-cat-num { font-size: 14px; }
  .shop-hero-cat-label { font-size: 13px; min-height: 0; }

  .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;
}

/* Форматирование, приходящее из редактора: ссылки, заголовки, списки, цитаты. */
.show-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.show-body a:hover {
  opacity: 0.65;
}

.show-body h1 {
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.25;
  margin: 28px 0 12px;
}

.show-body ul,
.show-body ol {
  margin: 0 0 16px 20px;
  padding-left: 4px;
}

.show-body li {
  margin-bottom: 6px;
}

.show-body blockquote {
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 2px solid rgba(0, 0, 0, 0.2);
  opacity: 0.85;
}

.show-body img,
.show-body action-text-attachment img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 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;
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.show-gallery-item:hover {
  transform: scale(1.02);
}

.show-gallery-item:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.show-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Переходы между новостями ── */
.show-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.show-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 34%;
  text-decoration: none;
  color: var(--text);
}

.show-nav-link--next {
  text-align: right;
  align-items: flex-end;
}

.show-nav-dir {
  font-family: var(--sans);
  font-size: 13px;
  opacity: 0.5;
}

.show-nav-title {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.35;
}

.show-nav-link:hover .show-nav-title {
  text-decoration: underline;
}

.show-nav-all {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  opacity: 0.6;
  text-decoration: none;
  white-space: nowrap;
  align-self: center;
}

.show-nav-all:hover {
  opacity: 1;
}

/* Пустая колонка, когда соседа с этой стороны нет — чтобы «Все новости»
   не уезжали из центра. */
.show-nav-spacer {
  max-width: 34%;
  flex: 1;
}

/* ── Фото во весь экран ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox.is-open {
  display: flex;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-img {
  max-width: min(1200px, 90vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-counter {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-close,
.lightbox-arrow {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 26px;
}

.lightbox-arrow {
  width: 52px;
  height: 52px;
  font-size: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .show-page {
    padding: 30px 0 60px;
    border-radius: 36px;
  }

  .show-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .show-nav-link,
  .show-nav-spacer {
    max-width: 100%;
  }

  .show-nav-link--next {
    text-align: left;
    align-items: flex-start;
  }

  .show-nav-spacer {
    display: none;
  }

  .show-nav-all {
    align-self: flex-start;
  }

  .lightbox {
    padding: 12px;
    gap: 4px;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 72vh;
  }

  .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;
  }
}

/* ─── Заметная кнопка «Билеты и регистрация» над описанием события ─── */
.show-cta--top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 32px;
}

.show-cta-hint {
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  opacity: 0.5;
}

a.show-tag { color: inherit; text-decoration: none; }
.show-meta { flex-wrap: wrap; row-gap: 8px; }
.show-subscribe { margin-top: 48px; max-width: 640px; }
/* ════════════════════════════════════════════════════════════
   Красивые заглушки для разделов в разработке
   (кафе, культурное пространство, товар, заказы).
   Дизайн-система сайта: серое полотно, белая скруглённая панель,
   серифные заголовки со скобками, Zapus Sans в тексте.
   ════════════════════════════════════════════════════════════ */

/* Без min-height/padding-bottom: панель заканчивается — сразу идёт футер,
   серой «дыры» между ними нет (как в макете page-49) */
.stub-page {
  background: var(--bg);
}

.stub-panel {
  background: var(--white);
  border-radius: 0 0 100px 100px;
  padding: 150px 0 170px;
  text-align: center;
}

.stub-kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 36px;
}

.stub-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 130px);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 auto;
  max-width: 1200px;
}

.stub-title-bracket {
  color: var(--text-light);
  font-weight: 200;
}

/* Слово со скобками — неразрывный блок, чтобы скобка не уезжала на свою строку */
.stub-title-word {
  white-space: nowrap;
}

.stub-text {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  max-width: 480px;
  margin: 44px auto 0;
}

.stub-meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 28px auto 0;
  line-height: 2;
}

.stub-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
}

.stub-btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 34px;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.stub-btn--primary {
  background: var(--text);
  color: var(--white);
}

.stub-btn--primary:hover { opacity: 0.82; }

.stub-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.stub-btn--ghost:hover { background: rgba(26, 26, 26, 0.06); }

@media (max-width: 640px) {
  .stub-panel {
    border-radius: 0 0 36px 36px;
    padding: 90px 0 110px;
  }
  /* clamp с минимумом 56px не давал «ПРОСТРАНСТВО» влезть в экран —
     на мобиле кегль от ширины вьюпорта, чтобы слово со скобками помещалось
     (9.2vw: «(пространство)» ≈ 0.86 ширины вьюпорта в TT Ricordi) */
  .stub-title {
    font-size: clamp(24px, 9.2vw, 48px);
    padding: 0 12px;
  }
  .stub-text { padding: 0 24px; }
  .stub-actions { padding: 0 16px; }
}
/* 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: 36px 36px 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 ───── */
  /* Радиусы секций на мобиле: единые 36px — ближе к пропорции десктопных 100px,
     логика скруглений (верх/низ по чередованию) сохранена */
  .hero { height: auto !important; min-height: 560px; padding-bottom: 48px; border-radius: 36px 36px 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; }

  /* Hero features: десктопный абсолютный «пояс» 1–4 → статичная сетка 2×2 */
  .hero-features {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    margin-top: 8px;
    padding: 0 20px;
  }
  .hero-features-row { padding: 0 !important; justify-content: center; gap: 40px; }
  .hero-features-row-1 { margin-bottom: 20px !important; }
  .hero-features-row-2 .feature:first-child { margin-left: 0 !important; }
  .hero-features-row-2 .feature:last-child { margin-right: 0 !important; }
  .feature { opacity: 0.7; flex: 1; max-width: 150px; }
  .feature-number { font-size: 15px !important; margin-bottom: 6px; }
  .feature-label { font-size: 14px !important; }

  /* Hero photo strip: десктопный абсолют → статичная центрованная лента (края клипятся) */
  .image-strip {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 140px !important;
    justify-content: center;
    overflow: hidden;
    margin-top: 28px;
  }
  .img-card-photo { height: 140px !important; }

  /* Декоративные круги прячем на мобиле */
  .hero-circles { display: none !important; }

  /* Home calendar — stack */
  .cal { border-radius: 36px !important; }
  .cal-inner { padding: 32px 20px !important; }
  /* Цифра дня: десктопный line-height 0.85 + margin-top -10px у строки месяца
     рассчитаны на месяц в 120px — при мобильных 32–40px цифра ложилась прямо
     на «( СЕНТЯБРЯ )». Даём цифре полный бокс и небольшой зазор до месяца. */
  .cal-date-day { font-size: 90px !important; line-height: 1 !important; }
  .cal-date-month-row { font-size: 24px !important; margin-top: 4px !important; }
  .cal-month-name { font-size: 40px !important; }
  /* Гигантские Buda-скобки из calendar.css — на мобиле пропорционально месяцу */
  .cal-bracket { font-size: 88px !important; }
  .cal-week-nav { gap: 8px; }
  .cal-nav-arrow { padding: 4px 6px !important; font-size: 20px !important; }
  /* width:56px из calendar.css не давал колонкам сжаться — переопределяем width, не min-width */
  .cal-day-col { width: 42px !important; min-width: 0 !important; padding: 8px 2px !important; }
  .cal-day-num { font-size: 16px !important; }
  .cal-weekday { font-size: 10px !important; }
  /* Скобки активного дня: десктопные 36px при цифре 16px свисали под число —
     масштабируем в размер цифры, «(15)» в одну строку */
  .cal-day-col.active .cal-day-num::before,
  .cal-day-col.active .cal-day-num::after { font-size: 20px !important; top: -2px !important; }
  .cal-day-col.active .cal-day-num::before { left: -11px !important; }
  .cal-day-col.active .cal-day-num::after { right: -11px !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; }

  /* Cultural space (главная): скобки не были переопределены — десктопные 150px
     давали гигантские «( )» вокруг «пространство» */
  .cultural-space { border-radius: 0 0 36px 36px !important; }
  .cs-bracket { font-size: 56px !important; top: 4px !important; }
  .cs-tags { margin-top: 36px !important; }

  /* News section — заголовок «Новости (Сообщества)» и сетка в 1 колонку */
  .news-section { border-radius: 36px !important; }
  .ns-title { font-size: 44px !important; }
  .ns-bracket { font-size: 56px !important; top: 4px !important; }
  .ns-more { margin-bottom: 32px !important; }
  .news-row { grid-template-columns: 1fr !important; padding: 8px 0 !important; }
  .news-item { gap: 16px; padding: 12px 0; }
  .news-date { width: 64px !important; }
  .news-day { font-size: 32px !important; }
  .news-text { font-size: 14px !important; max-width: none !important; }

  /* Values carousel — десктопный абсолют разъезжается; на мобиле показываем
     только центральную карточку (JS-карусель всё равно крутит), боковые и скобки прячем */
  .vs-title { font-size: 52px !important; }
  .values-section { padding: 64px 0 56px !important; border-radius: 0 0 36px 36px !important; }
  .values-carousel { height: 340px !important; margin-top: 32px !important; }
  .vc-slide { width: 280px !important; }
  .vc-slide[data-pos="left"],
  .vc-slide[data-pos="right"] { display: none !important; }
  .vc-brackets { display: none !important; }
  .vc-slide .vc-img { width: 200px !important; height: 200px !important; }
  .vc-slide .vc-label { font-size: 22px !important; }

  /* Help section «Хотите помочь?» — заголовок + опции в 1 колонку */
  .hs-title { font-size: 40px !important; }
  .help-description { font-size: 20px !important; margin-top: 28px !important; }
  .help-options { grid-template-columns: 1fr !important; margin-top: 40px !important; }
  .help-option { padding: 20px 16px !important; }

  /* 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: 36px; padding: 42px 14px 56px; }
  .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-page { border-radius: 36px; padding: 42px 14px 56px; }
  .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: 36px; }
  .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 36px 36px !important; }
  .cs-hero:has(.cs-photo-strip) { padding-bottom: 32px !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: 220px !important;
    justify-content: flex-start;
    padding: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  }

  .cs-about, .cs-past, .cs-visit, .cs-schedule,
  .cs-quote-section, .cs-similar {
    border-radius: 36px !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: сетка категорий 2×4 с номерами задана в shop.css (≤900px) —
     здесь только уменьшаем кегли и радиус */
  .shop-hero { border-radius: 0 0 36px 36px !important; padding: 32px 0 48px !important; }
  .shop-hero-center { margin-bottom: 16px; }
  .shop-hero-title { font-size: 56px !important; }
  .shop-hero-desc { font-size: 13px; }
  .shop-hero-cat-label { 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; }
  .cal-month-name { font-size: 32px !important; }
  .cal-bracket { font-size: 70px !important; }
  .hero-features-row { gap: 28px; }
  .feature-number, .feature-label { font-size: 13px !important; }
  .ns-title { font-size: 36px !important; }
  .ns-bracket { font-size: 46px !important; }
  .vs-title { font-size: 40px !important; }
  .hs-title { font-size: 32px !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(/fonts/Onest-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* TT Ricordi Greto: Regular покрывает 100–400, Medium 500, DemiBold 600+.
   Реальные начертания вместо браузерного faux-bold. */
@font-face {
  font-family: "TT-Ricordi-Greto";
  src: url(/fonts/TTRicordiGreto-Regular.woff2) format('woff2');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT-Ricordi-Greto";
  src: url(/fonts/TTRicordiGreto-Medium.woff2) format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT-Ricordi-Greto";
  src: url(/fonts/TTRicordiGreto-DemiBold.woff2) format('woff2');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* Zapus Sans: Light 100–300, Regular 400, Medium 500, SemiBold 600+ */
@font-face {
  font-family: "Zapus-Sans";
  src: url(/fonts/ZapusSans-Light.woff2) format("woff2");
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zapus-Sans";
  src: url(/fonts/ZapusSans-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zapus-Sans";
  src: url(/fonts/ZapusSans-Medium.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zapus-Sans";
  src: url(/fonts/ZapusSans-SemiBold.woff2) format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

 @font-face {
  font-family: "Buda";
  src: url(/fonts/Buda.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


h1 {
  font-family: "TT-Ricordi-Greto";
}

h2 {
  font-family: "TT-Ricordi-Greto";
}

h3 {
  font-family: "Onest";
}

p {
  font-family: "Zapus-Sans";
}

body{
  margin: 0;
}
