:root {
  --color-primary: #2A5199;
  --color-primary-light: #405769;
  --color-primary-lighter: #EAE9EF;
  --color-primary-invert: white;
  --color-secondary: #6c757d;
  --color-highlight: #FFEEBA;

  --color-info: #055160;
  --color-info-light: #b6effb;
  --color-info-lighter: #cff4fc;
  --color-danger: #842029;
  --color-danger-light: #f5c2c7;
  --color-danger-lighter: #f8d7da;
  --color-success: #0f5132;
  --color-success-light: #badbcc;
  --color-success-lighter: #d1e7dd;
  --color-warn: #664d03;
  --color-warn-light: #ffecb5;
  --color-warn-lighter: #fff3cd;
  --color-smooth-black: #4d4d4d;

  --color-cta: #E02620;

  --color-black: #2E3135;
  --color-disabled: #6c757d;

  /* color contrasts */
  --color-bg: white;
  --color-contrast-lower: hsl(0, 0%, 95%);
  --color-contrast-low: hsl(240, 1%, 83%);
  --color-contrast-medium: hsl(240, 1%, 48%);
  --color-contrast-high: hsl(240, 4%, 20%);
  --color-contrast-higher: black;
  --color-gray-light: rgb(229 231 235 / 1);
  --color-muted: #8b8b8b;

  --color-gray: var(--color-contrast-medium);

  /* text */
  --color-text: var(--color-smooth-black);
  --color-text-mute: #ababab;
  --color-text-invert: white;
  --text-body-size-medium: 0.875rem;
  --text-body-size-small: 0.75rem;
  --base-text-weight-medium: 500;

  --tracking-wide: 0.025em;

  --spacing: 0.25rem;

  /* misc */
  --shadow: 0 0 .5em rgba(0, 0, 0, .5);
  --shadow-sm: 0px 0px 5px rgba(0,0,0,.175), 0px 0px 0px rgba(0,0,0,.2);
}

:root {
  interpolate-size: allow-keywords;

  /* Firefox <146 */
  @supports (width: -moz-available) {
    --stretch: -moz-available;
  }

  /* Safari & Firefox 146+ */
  @supports (width: -webkit-fill-available) {
    --stretch: -webkit-fill-available;
  }

  /* Chromium */
  @supports (width: stretch) {
    --stretch: stretch;
  }

  --w-section: 768px;
}

@font-face {
  font-family: 'Rockit';
  src: url("/static/Rockit.ttf");
}

@font-face {
  font-family: "Roboto";
  src: url("/static/Roboto-Regular.ttf");
}

@font-face {
  font-family: "Roboto Thin";
  src: url("/static/Roboto-Thin.ttf");
}

Roboto-Thin.ttf

@font-face {
  font-family: 'Agrandir';
  src: url("/static/Agrandir-Bold.otf");
}

@font-face {
  font-family: 'Open Sans';
  src: url("/static/opensans.ttf");
}

html {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: "Roboto", "Open Sans", serif;
  /* background: url('/static/white_bg.webp'); */
  color: var(--color-text);
  margin: 0;
  font-size: 16px;
  overflow-y: auto;
  height: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.section-title {
  font-size: 1.5rem;
  font-family: "Roboto Thin", "Roboto", "Open Sans", serif;
  margin: 0;
}

.section-subtitle {
  margin: 10px 0 0 0;
  font-size: 0.85rem;
  color: #666;
}

.debug {
  border: 1px solid blue;
}

.supress {
  color: #888;
  font-size: 14px;
}

.body {
  width: 100%;
  height: 100%;
  background: #efefef;
}

.main {
  /* background: yellow; */
}

.phshadow {
  box-shadow: 0 20px 30px 0 rgba(28,9,80,.05);
}

.flex {
  display: flex;
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.flex-col {
  flex-direction: column;
}

.gap {
  gap: 4px;
}

.gap-sm {
  gap: 2px;
}

.no-gap {
  gap: 0;
}

.justify-between {
  justify-content: space-between;
}

.p {
  padding: 4px;
}

.m {
  margin: 4px;
}

.rounded {
  border-radius: 4px;
}

.text-right {
  text-align: right;
}

.border {
  border: 1px solid #ccc;
}

.relative {
  position: relative;
}

.rb {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px;
}

.bg-white {
  background-color: white;
}

.w-full {
  width: 100%;
}

.error {
  color: var(--color-danger) !important;
  border: 1px solid var(--color-danger-light) !important;
  background-color: var(--color-danger-lighter);
  border-radius: 4px;
  padding: 4px;
}

.error-msg {
  color: var(--color-danger) !important;
}

.error-input {
  border: 1px solid var(--color-danger) !important;
}

.container {
  background-color: white;
  width: 100%;
  /* border: 1px solid #ccc; */
  border-radius: 4px;
  padding: 4px;
  margin-top: 40px;
  margin-right: auto;
  margin-left: auto;
}

@media(min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media(min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media(min-height: 640px) {
  .container {

  }
}

.margin-none {
  margin: 0;
}

.mb-1 {
  margin-bottom: 4px;
}

.list {
  list-style: none;
  padding-left: 0;
}

.center-text {
  height: 38px;
  line-height: 38px;
  white-space: nowrap;
}

.hint {
  font-size: 0.85rem;
  color: var(--color-muted);
}

table {
  width: 100%;
}

/*th,
td {
  border-bottom: 1px solid #cecece;
  padding: 8px 10px;
}*/

/*tr > th:nth-child(1) {
  width: 40px;
}*/

tr > td:nth-child(2) {
  text-align: right;
}

tfoot {
  td {
    border: 0;
  }
}

.visible {
  visibility: visible;
}

.invisible {
  visibility: collapse;
}

.hide-el {
  visibility: hidden;
  transition-property: visibility;
  transition-timing-function: linear;
  transition-delay: 2s;
}

/*
.shown {
  visibility: visible;
  transition-property: visibility;
  transition-timing-function: linear;
  transition-delay: 2s;
}*/

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;

  &:hover {
    background: #eaeaea;
    border-color: #ccc;
  }
}

.btn.primary {
  color: #fff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Input */
.input {
  width: var(--stretch, 100%);
  width: -webkit-fill-available;
  width: -moz-available;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--color-contrast-low);
  padding: 8px;
  color: var(--color-text);
  text-align: left;
}

.bigloading {
  background-color: white;
  border: 1px solid #efefef;
  padding: 170px;
  border-radius: 4px;
  max-width: 80px;
  margin: calc(20vh) auto;
}

.btn.link {
  font-weight: 400;
  color: var(--color-primary);
  padding: 0;
  line-height: 1;
  background-color: transparent;
}

.btn.link:hover {
  color: var(--color-primary);
  text-decoration: underline;
  background-color: transparent;
  border-color: transparent
}

.btn.link.focus,.btn.link:focus {
  text-decoration: underline;
  border-color: transparent;
  box-shadow: none
}

.btn.link.disabled,.btn.link:disabled {
  color: var(--color-disabled);
  text-decoration: none;
}

.header {
  display: flex;
  justify-content: space-between;
  height: 40px;
  background-color: var(--color-primary);
  border-bottom: 1px solid #777777;

  & > .middle {
    font-size: 1rem;
    display: flex;
    gap: 16px;
    margin: 12px 0 0 0;
  }
}

.header-controls {
  color: white;
  margin: 10px;
  a > {
    color: white;
  }
}

.logo {
  display: block;
  width: fit-content;
  padding: 4px 0 0 4px;

  & > img {
    margin: 0;
    margin-top: 4px;
    margin-left: 4px;
    height: 25px;
    object-fit: scale-down;
  }
}

.footer {
  display: block;
  margin: 80px 0 0 0;
  padding: 8px 0;
  width: 100%;
  background-color: var(--color-primary);
  color: white;
}

.footer-main {
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  gap: 8px;
  justify-content: space-between;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 0 0;
  padding: 16px;

  & > .site {
    font-weight: 800;
    text-transform: uppercase;
  }

  & > p > .mail {
    display: block;
    margin: 16px 0 0 0;
    color: var(--color-warn-light);
  }

  & > p > .tel {
    display: block;
    margin: 4px 0 0 0;
    color: var(--color-warn-light);
  }
}

.footer-middle {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 16px 0 0 0;
  padding: 16px;
}

.bank-info {
  & > span {
    margin: 0;
    font-size: 0.85rem;
  }

  & > p {
    font-size: 0.85rem;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
}

.footer-end {
  display: flex;
  flex-direction: row;
  margin: 30px auto 0;
  gap: 16px;
  justify-content: space-between;

  & > div {
    padding: 8px;
  }
}

.footer-reg {
  font-size: 0.75rem;
  text-align: center;
  margin: 8px 0 0 8px;
}

.footer-icon {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: transparent;

  &:hover {
    opacity: 0.6;
  }
}
