@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #1030A8; color: #fff; }

:focus-visible {
  outline: 2px solid #1030A8;
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

.wrap {
  width: min(75rem, calc(100% - 2rem));
  margin-inline: auto;
}

.prose p { margin: 0 0 1rem; }

.prose p:last-child { margin-bottom: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.topbar__brand {
  display: block;
  line-height: 0;
}

.topbar__brand img {
  display: block;
  height: 3rem;
  width: auto;
  max-width: min(100%, 12rem);
}

.topbar__nav {
  display: none;
  gap: 1.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.topbar__nav a {
  color: #000;
  text-decoration: none;
}

.topbar__nav a:hover { color: #1030A8; }

@media (min-width: 768px) {
  .topbar__nav { display: flex; }
}

.hero {
  padding: 0;
  background: #fff;
}

.hero__banner {
  width: 100%;
  height: clamp(11rem, 38vw, 22rem);
  background: #1030A8 url("../img/hero.jpg") center center / cover no-repeat;
}

.hero__bar {
  padding: 1.35rem 0 0.25rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  text-decoration: none;
}

.btn--fill {
  color: #fff;
  background: #1030A8;
}

.btn--fill:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.btn--text {
  padding-inline: 0;
  min-height: auto;
  color: #1030A8;
  background: transparent;
  border-radius: 0;
}

.btn--text:hover {
  color: #000;
  text-decoration: underline;
}

.block {
  padding: 0 0 3.5rem;
  scroll-margin-top: 5rem;
}

.hero + .block {
  padding-top: 3.5rem;
}

.block--news {
  background: #fff;
}

.block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.block__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.block__lead {
  margin: -0.5rem 0 1.75rem;
  max-width: 32rem;
}

.block__empty { margin: 0; }

.news-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.news-carousel__arrow {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  color: #fff;
  background: #1030A8;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.news-carousel__arrow svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.news-carousel__arrow:hover:not(:disabled) {
  background: #000;
  color: #fff;
}

.news-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.news-carousel__arrow:focus-visible {
  outline: 2px solid #1030A8;
  outline-offset: 3px;
}

.news-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.news-track::-webkit-scrollbar {
  display: none;
}

.news-card {
  flex: 0 0 min(16rem, calc(100% - 0.5rem));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #000;
  background: #fff;
  text-decoration: none;
}

.news-card:hover {
  color: #1030A8;
  text-decoration: none;
}

.news-card__photo {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}

.news-card__photo:empty { min-height: 12rem; }

.news-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem 1.2rem;
}

.news-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.news-card time {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1030A8;
}

.about__text {
  margin: 0 0 2rem;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: none;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-card {
  padding: 0 0 1rem;
  background: #fff;
}

.team-card__role {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1030A8;
}

.team-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.team-card__name p { margin: 0; }

.block--contacts {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: #000;
  background: #fff;
}

.contact-card:hover {
  color: #1030A8;
  text-decoration: none;
}

.contact-card--static:hover {
  color: #000;
}

.contact-card__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1030A8;
}

.contact-card:hover .contact-card__label { color: #1030A8; }

.contact-card__value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1.75rem 0 0;
}

.socials a {
  color: #1030A8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.socials a:hover { color: #000; }

.bottom {
  padding: 1.25rem 0 2rem;
}

.bottom p { margin: 0; font-size: 0.875rem; }

.modal[hidden] { display: none; }

.modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: 1.5rem;
}

.modal__shade {
  position: fixed;
  inset: 0;
  background: #fff;
}

.modal__box {
  position: relative;
  width: min(40rem, 100%);
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  background: #fff;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal__brand {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.modal__brand img {
  display: block;
  height: 3rem;
  width: auto;
  max-width: min(100%, 12rem);
}

.modal__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.modal__head time {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1030A8;
}

.modal__close {
  font-weight: 600;
  color: #1030A8;
  text-decoration: none;
}

.modal__close:hover { text-decoration: underline; }

#modal-image {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

#modal-image[hidden] {
  display: none;
}

.modal__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.modal-open { overflow: hidden; }

.page-home .topbar__nav a.is-active { color: #1030A8; }

@media (max-width: 767px) {
  .topbar__inner { flex-wrap: wrap; }
  .topbar__brand { flex: 1; }
}

.admin .header,
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #000;
}

.admin .header__inner,
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.admin .logo img,
.header .logo img {
  height: 3rem;
  width: auto;
  max-width: 12rem;
}

.admin .nav,
.header .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-weight: 600;
}

.admin .nav a,
.header .nav a { color: #000; text-decoration: none; }

.admin .nav a:hover,
.admin .nav a.is-active,
.header .nav a:hover,
.header .nav a.is-active { color: #1030A8; }

.admin main { padding: 2rem 0 4rem; }

.admin h1 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
}

fieldset {
  margin: 0 0 2.5rem;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1030A8;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
textarea {
  width: min(36rem, 100%);
  padding: 0.55rem 0;
  font: inherit;
  border: 0;
  border-bottom: 1px solid #000;
  background: transparent;
}

textarea { min-height: 8rem; resize: vertical; }

textarea.short { min-height: 4.5rem; }

input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: #1030A8;
}

button,
.button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #1030A8;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.row-actions .button,
.row-actions button {
  padding: 0;
  background: transparent;
  color: #1030A8;
  border-radius: 0;
}

.row-actions .button:hover,
.row-actions button:hover {
  background: transparent;
  color: #000;
}

.form-actions { margin-top: 1.25rem; }

.hint { margin: 0.35rem 0 0; max-width: 36rem; font-size: 0.95rem; }

.note { margin-bottom: 1.25rem; color: #1030A8; font-weight: 600; }

.errors p { margin: 0; color: #1030A8; font-weight: 600; }

.errors p + p { margin-top: 0.35rem; }

table { width: 100%; margin-top: 2rem; border-collapse: collapse; }

th,
td {
  padding: 0.85rem 1rem 0.85rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #000;
}

th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1030A8;
}

td form { display: inline; margin: 0; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.thumb {
  display: block;
  width: 11rem;
  margin: 0.65rem 0;
  border-radius: 0.5rem;
}

.admin-date-input {
  width: min(16rem, 100%);
  padding: 0.65rem 0.85rem;
  border: 1px solid #000;
  border-radius: 0.5rem;
  background: #fff;
}

.admin .air-datepicker {
  --adp-accent-color: #1030A8;
  --adp-color-current-date: #1030A8;
  --adp-background-color-hover: rgba(16, 48, 168, 0.08);
  --adp-background-color-active: #1030A8;
  --adp-color: #000;
  --adp-color-secondary: #000;
  --adp-border-color-inline: #000;
  --adp-border-radius: 0.5rem;
  --adp-font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.photo-upload {
  margin: 0.35rem 0 1rem;
  max-width: 36rem;
}

.photo-upload-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 16rem;
  max-height: 16rem;
  margin-bottom: 0.65rem;
  padding: 0.5rem;
  border: 1px solid #000;
  border-radius: 0.5rem;
  background: #fff;
}

.photo-upload-current[hidden] {
  display: none !important;
}

.photo-upload-current img {
  max-width: 15rem;
  max-height: 15rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.photo-upload-drop {
  display: block;
  cursor: pointer;
  margin: 0;
  color: inherit;
}

.photo-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.photo-upload-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8.25rem;
  padding: 1rem;
  border: 1.5px dashed #000;
  border-radius: 0.5rem;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.photo-upload-drop:hover .photo-upload-preview,
.photo-upload.is-dragover .photo-upload-preview {
  border-color: #1030A8;
  background: rgba(16, 48, 168, 0.06);
}

.photo-upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  pointer-events: none;
}

.photo-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.25rem;
  border-radius: 0.75rem;
  background: rgba(16, 48, 168, 0.08);
  color: #1030A8;
}

.photo-upload-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.photo-upload-sub {
  font-size: 0.82rem;
  opacity: 0.75;
}

.photo-upload-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #000;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.photo-upload-drop:hover .photo-upload-btn {
  border-color: #1030A8;
  color: #1030A8;
}

.photo-upload-filename {
  font-size: 0.82rem;
  min-width: 0;
}

.print-panel__lead {
  margin: 0 0 1rem;
  max-width: 36rem;
}

.print-panel__form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: center;
  max-width: 24rem;
}

.print-panel__form label {
  margin: 0;
}

.print-panel__form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.print-panel__form select,
.print-panel__form input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid #000;
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
}

.print-batch {
  margin-top: 2rem;
}

.print-sheet {
  padding: 1rem 0;
}

.print-sheet__frame {
  max-width: 40rem;
  margin: 0 auto;
}

.print-sheet__box {
  width: 100%;
  margin: 0 auto;
}

.print-sheet__image {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.admin-print-sheet .header,
.admin-print-sheet h1 {
  display: block;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  .no-print,
  .admin .header,
  .admin h1,
  .print-panel {
    display: none !important;
  }

  .admin-print-sheet main,
  .admin-print-sheet .wrap {
    padding: 0;
    margin: 0;
    max-width: none;
  }

  .print-batch {
    margin: 0;
  }

  .print-sheet {
    break-after: page;
    page-break-after: always;
    page-break-inside: avoid;
    break-inside: avoid;
    height: 277mm;
    max-height: 277mm;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
  }

  .print-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .print-sheet__frame {
    height: 277mm;
    max-height: 277mm;
    overflow: hidden;
    display: flex;
    justify-content: center;
    max-width: none;
    margin: 0;
  }

  .print-sheet__box {
    width: 186mm;
    max-width: 186mm;
    transform-origin: top center;
  }

  .print-sheet__image {
    max-height: 85mm;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
  }

  .print-sheet__brand img {
    height: 2.5rem;
  }

  body.page-home.modal-open .topbar,
  body.page-home.modal-open .hero,
  body.page-home.modal-open .block,
  body.page-home.modal-open .bottom {
    display: none !important;
  }

  body.page-home.modal-open {
    overflow: visible !important;
  }

  body.page-home.modal-open .modal {
    position: static !important;
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body.page-home.modal-open .modal__shade,
  body.page-home.modal-open .modal__close {
    display: none !important;
  }

  body.page-home.modal-open .modal__box {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  body.page-home .topbar {
    position: static !important;
  }

  body.page-home .news-carousel__arrow,
  body.page-home .modal[hidden] {
    display: none !important;
  }

  body.page-home .news-track {
    overflow: visible !important;
    display: block !important;
  }

  body.page-home .news-card {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}
