@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
  font-family: "fa-brand";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../font/fa-brands-400.woff2");
}

@font-face {
  font-family: "fa";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../font/fa-regular-400.woff2");
}

@font-face {
  font-family: "fa";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../font/fa-solid-900.woff2");
}

:root {
  --max-width: 1320px;
  --padding-inline: 1.5rem;

  --color-text: #2C3228;
  --color-primary: #FE7336;
  /*--color-primary: #c55220;*/
  --color-primary-h: #e3622b;
  /*--color-primary-h: #ab3f10;*/
  --color-background: #FFFFFF;
  --color-background-h: #eeeeee;
  --color-neutral-bg: #F7F6F4;
  --color-sage: #B7C9A8;
  --color-sage-50: #F2F9ED;
  --color-warm-yellow: #F4C95D;
  --color-green: #7EA276;
  --color-muted: #576250;

  --color-border: #ccc;

  --header-height: 80px;
  --region-top-height: 40px;
}

#cookiesjsr {
  --default-margin: 1.25em;
  --font-size-reset: 1rem;
  --btn-font-color: #fff;
  --btn-border-color: #fff;
  --btn-bg-color: #FE7336;
  --btn-prime-font-color: #FE7336;
  --btn-prime-border-color: #fff;
  --btn-prime-bg-color: #fff;
  --btn-inv-font-color: #FE7336;
  --btn-inv-border-color: #FE7336;
  --btn-inv-bg-color: #fff;
  --btn-prime-inv-font-color: #fff;
  --btn-prime-inv-border-color: #FE7336;
  --btn-prime-inv-bg-color: #FE7336;
  --link-list-font-color: #fff;
  --link-list-separator-color: #fff;
  --banner-logo-offset: 100px;
  --banner-bg-color: #FE7336;
  --banner-font-color: #fff;
  --layer-header-height: 3.5em;
  --layer-header-bg-color: #fff;
  --layer-header-font-color: #000f37;
  --layer-body-bg-color: #fff;
  --layer-tab-bg-color: #fff;
  --layer-tab-font-color: #000f37;
  --layer-tab-active-bg-color: #FE7336;
  --layer-tab-active-font-color: #fff;
  --layer-bg-dark: #FE7336;
  --layer-font-light: #fff;
  --layer-font-dark: #000f37;
  --layer-border-color: #e4e5e6;
  --layer-footer-bg-color: #fff;
  --layer-footer-font-color: #000f37;
  --layer-footer-height: 4.5em;
  --switch-border-color: #e4e5e6;
  --switch-handle-color: #fff;
  --switch-bg-off: #fff;
  --switch-bg-on: #0a0;
  --switch-width: 45px;
  --switch-height: 20px;
  --switch-always-on-font-color: #0a0;
  --switch-always-on-bg-color: #fff;

  .cookiesjsr-settings {
    padding-inline: 1em;
  }
}

/* @view-transition {
  navigation: auto;
} */

* {
  box-sizing: border-box;
}

a {
  color: var(--color-text);
}

html,
:focus{
	scroll-padding-top: 120px;
}

body {
  // font-family: Arial, Helvetica, sans-serif;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  line-height: 1.5;
  color: var(--color-text);
}

img {
  max-width: 100%;
  height: auto;
}

h1 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin-block: .65em;
  padding-bottom: .65em;
  background-image: linear-gradient(90deg, #FFDD00 33.333%, #154194 33.333%, #154194 66.666%, #E20514 66.666%);
  background-size: 180px 2px;
  background-repeat: no-repeat;
  background-position: 0 bottom;
}

h2.field__label {
  font-weight: 500;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.block > h3 {
  font-size: 1rem;
}

blockquote {
  font-style: italic;
  margin-inline: 0;
  padding: .5em 1.5em;
  position: relative;
  border-left: 10px solid var(--color-warm-yellow);
  background: #f9f9f9;

  &::before, 
  &::after {
    content: '';
    color: var(--color-text);
    font-size: 3em;
    position: absolute;
    display: block;
    height: 26px;
    line-height: 1em;
  }
  
  &::before {
    content: '\201C';
    top: 4px;
    left: 8px;
  }

  &::after {
    content: '\201D';
    right: 8px;
    bottom: 4px;
  }
}

table {
  border-collapse: collapse;

  caption {
    font-size: .875rem;
    margin-bottom: 5px;
  }
}

td, th {
  border: 1px solid var(--color-sage);
  padding: 0.5rem 1rem;
  text-align: left;
}

.field__label {
  font-weight: 600;
}

#drupal-live-announce {
  display: none;
}

ul.tabs {
  margin-block: 1.5rem;
  background-color: var(--color-neutral-bg);
  padding: 6px 6px 0 6px;
  display: flex;
  flex-wrap: wrap;

  a {
    border-bottom: 3px solid transparent;
    transition: border-color .2s ease;
    background: none!important;
    padding-bottom: 6px;

    &.is-active,
    &:hover {
      border-color: var(--color-primary);
    }

    &.is-active {
      font-weight: 600;
    }
  }

  > li {
    margin-right: 0;
  }
}


/* FORM */

.form-item > label {
  font-size: .875rem;
  
  &:not(.option) {
    font-weight: 600;
  }
}

.form-item:not(.form-type-checkbox, .form-type-radio) > label {
  display: block;
  margin-bottom: .3rem;
}

.form-text,
.form-email,
textarea {
  border-radius: 10px;
  border: 1px solid var(--color-sage);
  color: var(--color-muted);
  padding: .75rem 1rem;
  outline-color: transparent;
  transition: all .2s ease;
  background: var(--color-neutral-bg);
  max-width: 100%;

  &:focus {
    outline-color: var(--color-green);
  }
}

.form-textarea {
  border-radius: 1rem;
}

.form-checkbox {
  appearance: none;
  background-color: #fff;
  margin: 3px 0 0 0;
  font: inherit;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  float: left;
}

.form-checkbox::before {
  content: '\f00c';
  font-family: 'fa';
  font-weight: bold;
  color: #fff;
  line-height: 1;
  font-size: .75em;
  display: grid;
  width: 1rem;
  height: 1rem;
  place-content: center;
  transition: .2s all ease-in-out;
  background-color: #fff;
  border: 1px solid var(--color-muted);
  border-radius: 5px;
}

.form-checkbox:checked::before {
  background-color: var(--color-muted);
}

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

.form-type-checkbox {
  > *:not(.form-checkbox) {
    margin-left: 2rem;
    display: block;
  }
}

a.button,
.form-submit {
  display: inline-flex;
  height: 48px;
  line-height: 1em;
  padding: 0 1rem;
  border-radius: 10px;
  text-decoration: none; 
  vertical-align: middle;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 500;

  white-space: nowrap;
  align-items: center;
  cursor: pointer;
  margin-inline: 0;

  transition: all .2s ease;  

  &:hover {
    background-color: var(--color-primary-h);
  }

  &.white {
    border: 1px solid var(--color-sage);
    background-color: var(--color-background);
    color: var(--color-text);
    
    &:hover {
      background-color: var(--color-background-h); 
    }
  }

  &.arrow {
    background-image: url(../images/icons/arrow-right-white.svg);
    background-position: calc(100% - 10px) center;
    padding-right: 2.5rem;
    background-size: 20px;
    background-repeat: no-repeat;
  }

  &.arrow:hover {
    background-position: calc(100% - 5px) center;
  }
}

a.button-link {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  background-image: url(../images/icons/arrow-right-orange.svg);
  background-position: 100% center;
  background-size: 16px;
  background-repeat: no-repeat;
  transition: all .2s ease;
  padding-right: 20px;

  &:hover {
    padding-right: 25px;
  }
}

.webform-submission-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 785px;
  margin-inline: auto;

  > * {
    margin-block: 0;
  }

  input:not(.form-checkbox, .form-radio, .form-submit) {
    width: 100%;
  }

  .form-type-webform-terms-of-service {
    // align-self: center;
    font-size: .9em;
  }
}


/* UI DIALOG */


@keyframes ui-widget-overlay {
  from {opacity: 0;}
  to {opacity: .5;}
}

.ui-widget-overlay {
  opacity: .5;
  animation: ui-widget-overlay;
  animation-duration: .3s;
  background: rgba(0,0,0,0.2);
}

@keyframes ui-dialog {
  from {transform: translateY(1rem);}
  to {transform: translateY(0);}
}

.ui-dialog {
  animation: ui-dialog;
  animation-duration: .3s;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  -webkit-box-shadow: 0 5px 10px -5px rgba(0,0,0,0.2);
  box-shadow: 0 5px 10px -5px rgba(0,0,0,0.2);
  
  .ui-dialog-titlebar {
    border: none;
    background: none;
    font-weight: bold;
    padding: 1rem 48px 1rem 1.5rem;
    background-color: var(--color-neutral-bg);
  
    h1 {
      font-size: 1.2rem;
    }
  }

  .ui-dialog-titlebar-close {
    width: 24px;
    height: 24px;
    right: 0;
    margin: -8px 5px 0 0;
    padding: 0;
    
    .ui-icon {
      text-indent: 0;
      top: 0;
      left: 0;
      margin: 0;

      &::before {
        content: '\f00d';
        font-family: 'fa';
        color: var(--color-muted);
        font-weight: bold;
        line-height: 1;
        font-size: 18px;
      }
    }
  }

  .ui-dialog-content {
    padding: 1.5rem;

    p:first-child {
      margin-top: 0;
    }

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


.region--content,
.region-subwrapper,
.promo--view-mode-default,
.view-promo .teaser-brick,
.view-promo .swiper-navigations .inner,
.path-frontpage #block-primary-tabs,
.path-frontpage .section.about-us,
.path-frontpage .section.kontakt,
.path-frontpage .section.galeria > * {
  max-width: var(--max-width);
  padding-inline: var(--padding-inline);
  margin-inline: auto;
  width: 100%;
}

.page-node-type-kontakt .region-content > .region--content,
.path-frontpage .region-highlighted > .region--content,
.path-frontpage .region-content > .region--content {
  max-width: 100%;
  padding-inline: 0;
}

[data-drupal-messages] {
  margin-block: 2rem;
}

.messages {
  border-radius: 1rem;
  margin-left: 0;
  box-shadow: none;
  border-width: 1px;
}

.messages__item + .messages__item {
  margin-top: 0.35em;
}

.messages--status {
  border-color: #c9e1bd;
}

.messages--error {
  border-color: #f9c9bf ;
}

.messages--warning {
  border-color: #f4daa6 ;
}


ul.pager__items {
  margin-top: 2rem;

  li {
    padding: 0;
    
    &:not(:first-child) {
      margin-left: .5rem;
    }

    &.pager__item--last,
    &.pager__item--first {
      display: none;
    }
  }

  a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--color-sage);
    display: inline-block;
    transition: background-color .2s ease;

    &:hover {
      background-color: var(--color-neutral-bg);
    }

    span {
      line-height: 1;
      font-size: 1.3em;
    }
  }

  li.is-active a {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 400;
  }
}





.buttons {
  display: flex;
  justify-content: center;
  gap: .7rem 1rem;
  flex-wrap: wrap;
}




.region-top {
  background-color: var(--color-warm-yellow);

  .region--content {
    display: flex;
    gap: 1rem;
    align-items: center;
    height: var(--region-top-height);
  }
}

.region-header {
  background-color: var(--color-background);

  .region--content {
    height: var(--header-height);
    display: flex;
    gap: 1rem;
    align-items: center;
  }
}

header.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 399;
  transition: transform .3s ease;
  will-change: transform;

  &.hide {
    transform: translateY(calc(-100% - 5px));
  }
}

.gin--classic-toolbar header.main-header {
  top: var(--gin-toolbar-y-offset);
}

.layout-container {
  padding-top: calc(var(--header-height) + var(--region-top-height));
}




#block-dunstreda-link {
  margin-right: auto;

  .field--name-body {
    p {
      margin-block: 0;
      font-size: .875rem;
      font-weight: 500;
    }
  
    a {
      text-decoration: none;
      background-image: url(../images/icons/globus.svg);
      background-position: 0 center;
      background-size: 16px;
      background-repeat: no-repeat;
      padding-left: 1.5rem;
  
      &:hover {
        text-decoration: underline;
      }

      b, strong {
        font-weight: inherit;
      }
    }
  }
}

.block-language {
  .contextual {
    display: none;
  }

  .links {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;

    a {
      font-weight: 500;
      text-decoration: none;
      text-transform: uppercase;
      display: flex;
      text-indent: -999em;
      overflow: hidden;
      transition: all .2s ease;
      
      &::after {
        display: block;
        text-indent: 0;
        content: attr(hreflang);
      }

      &.is-active {
        color: #000;
        font-weight: 600;
      }

      &:hover {
        font-weight: 600;
      }

      
    }

    li:not(:first-child) {
      border-left: 2px solid var(--color-text);
      padding-left: .7rem;
      margin-left: .7rem;
    }
  }
}



.navigation .menu {
  margin: 0;
  padding: 0;

  display: flex;

  a {
    text-decoration: none;
    font-weight: 400;
  }
}

#block-main-navigation {
  a {
    padding: .5rem 1.5rem;
    white-space: nowrap;
    display: block;
    position: relative;

    &.is-active {
      font-weight: 500;
    }

    span.expand {
      display: inline-block;
      width: 16px;
      height: 16px;
      background: url(../images/icons/chevron.svg) center no-repeat;
      background-size: 16px;
      vertical-align: middle;
      margin-left: .5em;
    }
  }

  > .menu > li > a {
    &::after {
      content: '';
      display: block;
      height: 2px;
      width: 0;
      position: absolute;
      bottom: 0;
      left: 1.5rem;
      background-color: var(--color-green);
      transition: all .2s ease;
    }

    &:hover,
    &.is-active {
      &::after {
        width: calc(100% - 3rem);
      }
    }
  }

  > .menu > li:nth-child(1) > a::after {background-color: #FFDC3B;}
  > .menu > li:nth-child(2) > a::after {background-color: #7EA276;}
  > .menu > li:nth-child(3) > a::after {background-color: #F30D1D;}
  > .menu > li:nth-child(4) > a::after {background-color: #004291;}
  > .menu > li:nth-child(5) > a::after {background-color: #8EEEED;}
  > .menu > li:nth-child(6) > a::after {background-color: #F47458;}

  .menu-item--expanded {
    position: relative;
    list-style-image: none;
    list-style: none;

    // > a {
    //   background: url(../images/icons/chevron.svg) calc(100% - 2.5rem + 20px) center no-repeat;
    //   background-size: 16px;
    //   padding-right: calc(2.5rem);
    // }

    .menu {
      opacity: 0;
      visibility: hidden;
      will-change: transform;
      pointer-events: none;
      transition: all .2s ease;
      transform: translateY(5px);
      position: absolute;
      top: 100%;
      background-color: var(--color-background);
      border: 1px solid var(--color-border);
      -webkit-box-shadow: 0 3px 5px -3px rgba(0,0,0,0.3);
      box-shadow: 0 3px 5px -3px rgba(0,0,0,0.3);
      border-radius: 10px;
      padding: .6rem 1rem;
      flex-direction: column;
      gap: 0;
      z-index: 199;

      a {
        font-size: .9rem;
        padding: .4rem 0;
        line-height: 1;

        &:hover {
          font-weight: 500;
        }
      }
    }

    &:hover {
      .menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
      }
    }
  }

}

#block-main-navigation .menu-item--expanded.is-open .menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#block-site-branding {
  margin-right: auto;
  flex-shrink: 0;

  img {
    max-height: 46px;
  }
}

#block-search {
  .contextual {
    display: none;
  }

  .clearfix::after {
    display: none;
  }

  .form--inline {
    display: flex;
    align-items: center;
    position: relative;
    height: 36px;
  }

  .form-item {
    margin: 0;
  }

  .form-actions {
    display: none;
  }

  .form-text {
    background-color: var(--color-neutral-bg);
    color: var(--color-muted);
    background-image: url(../images/icons/search.svg);
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: 1rem center;
    padding-inline: 50px 1rem;
    padding-block: 0;
    height: 36px;
    border: none;
    border-radius: 2rem;
    width: 100%;
    max-width: 250px;
  }

  .toggle {
    display: none;
    width: 32px;
    height: 32px;
    background-image: url(../images/icons/search.svg);
    background-repeat: no-repeat;
    background-size: 24px;
    background-position: center;
  }

  @media screen and (max-width: 1060px) {
    .toggle {
      display: block;
    }

    .form-text {
      position: absolute;
      right: 0;
      top: 0;
      width: 0;
      opacity: 0;
      z-index: -1;
      transition: all .2s ease;
    }

    &.active .form-text {
      width: 250px;
      z-index: 1;
      opacity: 1;
    }
  }

  @media screen and (max-width: 499px) {
    &.active .form-text {
      width: calc(100vw - (var(--padding-inline) * 2) - 32px - 1rem);
      max-width: unset;
    }
  }
}



.breadcrumb {
  font-size: .875rem;

  
  li::before {
    content: '\002F';
    margin-inline: 1px;
  }

  a {
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

.region-highlighted {
  margin-top: 1rem;
}

#block-primary-tabs {
  margin-top: 1rem;
}

#block-heading {
  background-image: linear-gradient(90deg, #FFDD00 15%, #154194 15%, #154194 30%, #E20514 30%, #E20514 45%, #BBEAE4 45%);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: bottom;

  .heading {
    display: flex;
    gap: 2rem;
    align-items: center;
    
    &.with-image {
      padding-bottom: 3rem;
    }

    &.without-image {
      padding-bottom: 1rem;

      h1 {
        margin-block: .5rem 1rem;
      }

      // .inner > * {
      //   margin-block: .5rem;
      //   // margin-top: 0;
      // }
    }
  }

  .field--name-field-heading-image {
    width: 45%;
    flex-shrink: 0;
    margin-left: auto;
    text-align: right;

    img {
      max-height: 310px;
      object-fit: contain;
      object-position: right;
    }
  }
}


.text-formatted {
  ul {
    list-style: none;
    margin: 0;
    padding-left: 36px;

    li {
      position: relative;
      margin-block: 1em;

      &::before {
        content: '';
        display: block;
        position: absolute;
        left: -36px;
        width: 24px;
        height: 24px;
        background: url(../images/icons/check-orange.svg) center no-repeat;
        background-size: 16px;
        border-radius: 50%;
        background-color: var(--color-sage-50);
      }
    } 
  }

  ol {
    list-style: none;
    margin: 0;
    padding-left: 36px;

    li {
      position: relative;
      margin-block: 1em;
      counter-increment: item;
      
      &::before {
        content: counter(item);
        display: block;
        position: absolute;
        left: -36px;
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        border-radius: 50%;
        background-color: var(--color-sage-50);
        color: var(--color-primary);
        font-size: .85rem;
      }

      &::marker {
        content: '';
      }
    }
  }
} 


.node--type-o-nas,
.node--type-frontpage {
  .field--name-body > .field__label {
    margin-bottom: -.7rem;
    color: #953B04;
    font-weight: 600;
    font-size: .875rem;
  }
}

.content-cols.with-image {
  display: flex;
  justify-content: space-between;

  > * {
    width: 45%;
    flex-shrink: 0;
  }

  .field--type-image img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
    -webkit-box-shadow: 0 12px 16px -8px rgba(0,0,0,0.2);
    box-shadow: 0 12px 16px -8px rgba(0,0,0,0.2);
  }
}

.region-content {
  padding-block: 3rem;
}

footer {
  background-color: var(--color-sage-50);
  padding-block: 3rem;
  color: var(--color-muted);
  font-size: .875rem;

  a,
  .menu a {
    color: var(--color-muted);
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

#block-footer-menu .menu,
#block-institutions-menu .menu {
  flex-direction: column;
}

#block-info {
  font-size: 1rem;
}

.region-footer .region--content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.region-bottom .region--content {
  margin-top: 2rem;
  padding-top: 2rem;
  background-image: linear-gradient(90deg, var(--color-sage) 100%);
  background-position: var(--padding-inline) top;
  background-size: calc(100% - (var(--padding-inline)*2)) 1px;
  background-repeat: no-repeat;

  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: space-between;
  align-items: center;
}

#block-footer-logo {
  grid-column: 1 /-1;
  text-align: center;
  background-image: linear-gradient(90deg, var(--color-sage) 100%);
  background-position: center;
  background-size: 100% 1px;
  background-repeat: no-repeat;

  a {
    display: inline-block;
    padding-inline: 40px;
    background-color: var(--color-sage-50);

    img {
      vertical-align: top;
      max-width: 175px;
      max-height: 46px;
      height: auto;
    }
  }
}

#block-bottom-menu .menu {
  display: flex;
  gap: 2rem;

  a:hover {
    text-decoration: underline;
  }
}

.block-type-contacts {
  .field {
    padding-left: 28px;
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: left top;

    &:not(:last-child) {
      margin-bottom: 1em;
    }

    &.field--name-field-address {
      background-image: url(../images/icons/marker.svg);
    }
    &.field--name-field-phone-number {
      background-image: url(../images/icons/phone.svg);
    }
    &.field--name-field-email {
      background-image: url(../images/icons/mail.svg);
    }
  }
}


.paragraph--type--program {
  background-color: var(--color-neutral-bg);
  box-shadow:
      0 1px 3px 0 rgba(0,0,0,0.1),
      0 1px 2px -1px rgba(0,0,0,0.1);
  border-radius: .875rem;
  padding: 2rem;
  position: relative;

  .field--name-field-times {
    color: var(--color-primary);
    font-weight: 600;
    padding-left: 24px;
    background: url(../images/icons/time-orange.svg) left 2px no-repeat;
    background-size: 16px;
    white-space: nowrap;
  }

  .field--name-field-label {
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: .5rem;
  }

  .field--name-field-description {
    color: var(--color-muted);
    margin-top: .5rem;

    p {
      margin-block: 0;
    }
  }

  &::before {
    content: '';
    display: block;
    position: absolute;
    left: calc(-3rem - 13px);
    top: 5px;
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    border: 4px solid var(--color-neutral-bg);
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow:
      0 1px 3px 0 rgba(0,0,0,0.1),
      0 1px 2px -1px rgba(0,0,0,0.1);
  }
}

.field--type-entity-reference-revisions.field--name-field-denny-program {
  > .field__items {
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-left: 4px solid #BBEAE4;
    padding-left: 3rem;
  }
}

.field--name-field-galeria {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;

  img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    vertical-align: top;
    transition: all .2s ease;
    will-change: transform;

    &:hover {
      transform: scale(1.05);
    }
  }

  .field__item {
    overflow: hidden;
  }

  .field__item:nth-child(1) {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
  }

  .field__item:nth-child(2) {
    grid-column: 4 / -1;
    grid-row: 1 / span 2;
  }
}

.field--name-field-pedagogovia {
  > .field__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
    gap: 1.5rem;
  }
}

.paragraph--type--pedagog {
  background-color: var(--color-neutral-bg);
  border-radius: .875rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  
  /* &.no-photo::before {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: url(../images/icons/profile.svg) center no-repeat;
    background-size: 24px;
    background-color: rgba(255,255,255,0.5);
    background-blend-mode: lighten;
  } */

  .field--name-field-obrazok {
    img {
      aspect-ratio: 1;
      width: 100%;
      height: auto;
      object-fit: cover;
      vertical-align: top;
    }
  }

  .texts {
    flex-grow: 1;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .field--name-field-name {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .field--name-field-label {
    color: var(--color-primary);
  }

  .field--name-field-description {
    color: var(--color-muted);
    background-color: #F2F9ED;
    border-radius: 28px;
    font-size: .875rem;
    padding-inline: 1rem;
  }
}


.field--name-field-postup-zapisu {
  > .field__items {
    counter-reset: count;
    display: flex;
    flex-direction: column;
    gap: 2rem;

    > .field__item {
      counter-increment: count;

      .paragraph {
        padding-left: 80px;
        position: relative;
        
        &::before {
          content: counter(count, decimal-leading-zero);
          position: absolute;
          left: 24px;
          width: 48px;
          height: 48px;
          line-height: 48px;
          text-align: center;
          background-color: var(--color-sage-50);
          color: var(--color-primary);
          font-size: 1.5rem;
        }
      }
    }
  }
}

.paragraph--type--proces {
  background-color: var(--color-neutral-bg);
  padding: 1.5rem;
  border-radius: .875rem;

  .field--name-field-label {
    font-weight: 600;
    font-size: 1.25rem;
  }

  .field--name-field-description {
    color: var(--color-muted);
    margin-top: .6em;

    p {
      margin-block: 0;
    }
  }
}

.node--view-mode-full > .node__content > .field:not(:last-child) {
  margin-bottom: 2.5rem;
}

.media--type-document.media--view-mode-default {
  background-color: var(--color-neutral-bg);
  padding: 1.5rem;
  border-radius: .875rem;
  padding-left: calc(1.5rem + 56px);
  position: relative;

  &::before {
    content: '';
    display: block;
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: url(../images/icons/text.svg) center no-repeat var(--color-sage-50);
    background-size: 24px;
    left: 1.5rem;
    top: 50%;
    margin-top: -24px;
  }

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

  .field--name-name {
    font-size: 1.25rem;
    font-weight: 600;
  }

  .metadata {
    color: var(--color-muted);
    margin-top: .5rem;
    
    span {
      font-weight: 300;
      display: inline-block;
      margin-inline: 3px;
    }
  }

  .field--name-field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;

    .field__item {
      background-color: #FFEFE7;
      color: #45556C;
      padding: 5px 12px;
      font-size: .875rem;
      border-radius: 2rem;
    }
  }

  a.download {
    font-weight: 600;
    padding: .75rem 1rem .75rem 3rem;
    border: 1px solid var(--color-sage);
    text-decoration: none;
    border-radius: 10px;
    background: url(../images/icons/download.svg) no-repeat;
    background-size: 20px;
    background-position: 1rem center;
    transition: all .2s ease;

    &:hover {
      background-color: var(--color-background-h);
    }
  }
}

.field--type-entity-reference.field--name-field-dokumenty {
  > .field__items > .field__item:not(:first-child) {
    margin-top: 2rem;
  }
}

.field--name-field-downloads {
  .cols {
    background-color: var(--color-neutral-bg);
    padding: 1.5rem;
    border-radius: .875rem;
    padding-left: calc(1.5rem + 56px);
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;

    &::before {
      content: '';
      display: block;
      position: absolute;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: url(../images/icons/text.svg) center no-repeat var(--color-sage-50);
      background-size: 24px;
      left: 1.5rem;
      top: 50%;
      margin-top: -24px;
    }

    .filename {
      font-size: 1.25rem;
      font-weight: 600;
    }

    .metadata {
      color: var(--color-muted);
      margin-top: .5rem;
      
      span {
        font-weight: 300;
        display: inline-block;
        margin-inline: 3px;
      }
    }

    a {
      font-weight: 600;
      padding: .75rem 1rem .75rem 3rem;
      border: 1px solid var(--color-sage);
      text-decoration: none;
      border-radius: 10px;
      background: url(../images/icons/download.svg) no-repeat;
      background-size: 20px;
      background-position: 1rem center;
      transition: all .2s ease;

      &:hover {
        background-color: var(--color-background-h);
      }
    }
  }

  .field__item + .field__item {
    margin-top: 2rem;
  }
}

.node--type-kontakt {
  .contacts {
    background-color: var(--color-neutral-bg);
    padding-block: 60px;
    margin-bottom: 60px;

    .cols {
      display: flex;
      gap: 10%;

      > * {
        flex: 1;
      }
    }
  }

  iframe {
    width: 100%;
    height: 100%;
    max-width: 630px;
    min-height: 560px;
    border-radius: 1rem;
    overflow: hidden;
  }

  .field--name-field-address,
  .field--name-field-telefon,
  .field--name-field-email {
    padding-left: 62px;
    position: relative;

    &::before {
      content: '';
      display: block;
      position: absolute;
      width: 48px;
      height: 48px;
      background-color: var(--color-sage-50);
      border-radius: 50%;
      left: 0;
      top: 0;
      background-position: center;
      background-repeat: no-repeat;
      background-size: 24px;
    }

    p {
      margin-block: 0;
    }

    .field__label {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 6px;
    }

    &:not(:first-child) {
      margin-top: 20px;
    }

    a {
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  .field--name-field-address::before {
    background-image: url(../images/icons/marker.svg);
  }
  .field--name-field-telefon::before {
    background-image: url(../images/icons/phone.svg);
  }
  .field--name-field-email::before {
    background-image: url(../images/icons/mail.svg);
  }
}

.view-promo {
  .swiper {
    align-items: stretch;
  }

  .swiper-slide {
    height: auto;

    /* &.swiper-slide-active .field--name-field-image {
      transform: scale(1);
    } */

    /* &:not(:first-child) .card::before {
      content: '';
      display: block;
      position: absolute;
      left: -10px;
      top: 10px;
      bottom: 10px;
      width: 40px;
      border-radius: 1rem;
      background-color: var(--color-background);
      opacity: .8;
    }
    
    &:not(:last-child) .card::after {
      content: '';
      display: block;
      position: absolute;
      right: -10px;
      top: 10px;
      bottom: 10px;
      width: 40px;
      border-radius: 1rem;
      background-color: var(--color-background);
      opacity: .8;
    } */
  }

  .teaser-brick {
    display: flex;
    gap: 40px;
    margin-top: -4rem;
    position: relative;
    z-index: 9;

    > * {
      flex: 1;
      background-color: var(--color-background);
      padding: 2rem;
      border-radius: 1rem;
    }
  }

  .swiper-pagination.swiper-pagination-bullets {
    bottom: -2.75rem;
    width: 50%;
    padding-left: var(--padding-inline);
  }

  .swiper-navigations {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    padding-block: 4rem 8rem;

    .inner {
      position: relative;
    }
  }

  .swiper-pagination-bullet {
    background: rgba(255,255,255,.2);
    border: 2px solid #fff;
    opacity: 1;
    width: 12px;
    height: 12px;

    &.swiper-pagination-bullet-active {
      background: var(--color-primary);
      border-color: var(--color-primary);
    }
  }

  .swiper-horizontal {
    .swiper-button-prev {
      width: 15px;
      height: 30px;
      color: #000;
      left: 38px;
      margin-top: -15px;
    }

    .swiper-button-next {
       width: 15px;
      height: 30px;
      color: #000;
      right: calc(50% + 12px);
      margin-top: -15px;
    }

    .swiper-button-disabled {
      opacity: 0;
    }
  }

}

.promo--view-mode-default {
  padding-block: 4rem 8rem;
  display: flex;
  align-items: stretch;
  height: 100%;
  position: unset;

  .card {
    background: var(--color-background);
    border-radius: 1rem;
    padding: 2rem 3rem;
    z-index: 1;
    position: relative;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow:
      0 20px 25px -5px rgba(0,0,0,0.1),
      0 8px 10px -6px rgba(0,0,0,0.1);
  }

  .field--name-field-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* transition: transform .2s ease;
    will-change: transform;
    transform: scale(1.02); */

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

  .field--name-field-stitok {
    background-color: var(--color-sage-50);
    border-radius: 2rem;
    font-size: .875rem;
    padding: 6px 12px 6px 30px;
    text-indent: -14px;

    &::before {
      content: '';
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: var(--color-primary);
      margin-right: 6px;
    }
  }

  .field--name-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .field--name-field-text {
    font-size: 1.2rem;
    color: var(--color-muted);
    line-height: 1.4;

    p {
      margin-block: 0;
    }
  }

  .field--name-field-link {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.brick-item {
  .content__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;

    &::before {
      content: '';
      display: block;
      width: 48px;
      height: 48px;
      background-position: center;
      background-size: 24px;
      background-repeat: no-repeat;
      background-color: var(--color-sage-50);
      border-radius: 50%;
    }
  }

  p, h3 {
    margin-block: 0;
  }

  a.button-link {
    margin-top: auto;
    align-self: start;
  }

  .field--name-field-heading-text {
    color: var(--color-muted);
    font-size: .92rem;
    line-height: 1.4;
  }

  &.brick-item--type-denne-menu .content__inner::before {
    background-image: url(../images/icons/food.svg);
  }

  &.brick-item--type-denny-program .content__inner::before {
    background-image: url(../images/icons/time-orange.svg);
  }
  
  &.brick-item--type-dokumenty .content__inner::before {
    background-image: url(../images/icons/text.svg);
  }
}

.page-node-type-frontpage {
  .region-highlighted {
    margin-top: 0;
  }
}

.page-node-type-frontpage,
.path-user:not(.user-logged-in) {
  background-color: var(--color-neutral-bg);
}


.node--type-frontpage {

  .section {
    padding-block: 60px;

    .node__content > h3 {
      margin-top: 0;
      margin-bottom: -.7rem;
      color: #953B04;
      font-weight: 600;
      font-size: .875rem;
    }
  }

  .section.about-us {
    display: flex;
    gap: 1rem;

    > * {
      flex: 1;
    }

    .col-2 {
      background: url(../images/front-about-us.svg) top center no-repeat;
      background-size: contain;
      padding-top: 21%;
    }

    .field--name-field-description {
      background-color: var(--color-background);
      border-radius: 1rem;
      padding: 2rem;
      box-shadow: 0 4px 20px 4px rgba(0,0,0,0.04);
      -webkit-box-shadow: 0 4px 20px 4px rgba(0,0,0,0.04);
      max-width: 415px;
      color: var(--color-muted);

      > * {
        margin-block: 0;
      }

      strong, b {
        color: var(--color-primary);
        font-size: 2rem;
      }
    }
  }

  a.button {
    margin-top: 1.5rem;
  }

  .section.galeria {
    background-color: var(--color-background);
  }

  .contacts {
    padding-block: 0;
  }

  .field--name-field-heading-text {
    color: var(--color-muted);
    margin-block: 1.5rem;
    max-width: 560px;
  }
}

.node--type-article {
  .field--name-field-image {
    img {
      width: 100%;
      object-fit: cover;
    }
  }

  .node__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.5rem;
    margin-bottom: 1rem;
    align-items: center;
  }

  &.node--view-mode-teaser {
    position: relative;
    border-radius: .875rem;
    overflow: hidden;
    background-color: var(--color-neutral-bg);
    display: flex;
    flex-direction: column;

    .field--name-field-image {
      flex-shrink: 0;
      overflow: hidden;

      img {
        width: 100%;
        aspect-ratio: 1.7;
        vertical-align: top;
        transition: transform .2s ease;
        will-change: transform;
      }

      &:hover {
        img {
          transform: scale(1.05);
        }
      }
    }

    .noimage {
      aspect-ratio: 1.7;
      background-color: var(--color-sage);
    }

    .field--name-field-tags {
      position: absolute;
      top: 1rem;
      left: 1rem;
    }

    .node__content {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      flex-grow: 1;

      p {
        margin-block: 0;
      }
    }

    h2 {
      font-size: 1.25rem;
      padding: 0;
      background: none;
      margin-block: 0;

      a {
        text-decoration: none;

        &:hover {
          text-decoration: underline;
        }
      }
    }

    .field--name-body {
      color: var(--color-muted);
      line-height: 1.5;
    }

    .node__links {
      margin-top: auto;
      
      ul {
        display: block;
        margin: 0;
      }

      li {
        padding: 0;
      }
    }
  }

  .created-date {
    color: var(--color-muted);
    font-size: .875rem;
    background: url(../images/icons/schedule.svg) left center no-repeat;
    background-size: 16px;
    white-space: nowrap;
    padding-left: 20px;
  }

  .field--name-field-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;

    .field__item {
      background-color: var(--color-sage-50);
      font-size: .75rem;
      font-weight: 600;
      text-transform: uppercase;
      padding: 4px 12px;
      border-radius: 1rem;
    }
  }
}


.view-aktuality.view-display-id-page_1 {
  > .view-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 2rem;
    container-type: inline-size;

    .node {
      height: 100%;
    }

    @container(min-width: calc(2rem + (2 * 295px))) {
      > .views-row:first-child {
        grid-column: 1 / -1;
        
        .node--type-article {
          flex-direction: row;
          gap: 2rem;
          align-items: center;

          > * {
            flex: 1;
          }

          .node__content {
            padding-inline: 0;

            > * {
              padding-right: 1.5rem;
            }
          }

          .field--name-field-image {
            align-self: stretch;

            img {
              width: 100%;
              aspect-ratio: unset;
              height: 100%;
              max-height: unset;
            }
          }

          a.button-link {
            background-color: var(--color-primary);
            color: #fff;
            background-image: url(../images/icons/arrow-right-white.svg);
            padding: 1rem 2rem 1rem 1rem;
            border-radius: 10px;
            background-position: calc(100% - .5rem) center;
            display: inline-block;

            &:hover {
              background-position: calc(100% - .5rem + 5px) center;
              background-color: var(--color-primary-h);
            }
          }
        }
      }
    }

  }
}

.menu-toggle {
  width: 32px;
  height: 32px;
  overflow: hidden;
  display: none;
  justify-content: center;
  align-items: center;

  span {
    display: block;
    width: 80%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    position: relative;
    transition: background-color .2s ease;

    &::before,
    &::after {
      content: '';
      display: block;
      width: 100%;
      height: 3px;
      background-color: var(--color-text);
      border-radius: 3px;
      position: absolute;
      will-change: transform;
      transition: transform .2s ease;
    }

    &::before {
      transform: translateY(-7px);
    }

    &::after {
      transform: translateY(7px);
    }
  }
}

body.menu-open .menu-toggle span {
  background-color: transparent;
  
  &::before {
    transform: translateY(0) rotate(45deg);
  }

  &::after {
    transform: translateY(0) rotate(-45deg);
  }
}

.region-menu {
  display: none;
}

#block-menu-navigation {
  flex-grow: 1;
  transform: translateX(20px);
  will-change: transform;
  transition: .6s ease;
  transition-delay: .2s;

  .menu {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 1rem;
    text-align: center;

    a {
      font-size: 1.4em;
      font-weight: 900;
      text-transform: uppercase;
      line-height: 1em;
      text-align: center;
      display: inline-block;
      padding-block: .2rem;
      text-decoration: none;
      position: relative;
    }
  }

  .menu-item--expanded {
    .menu {
      display: none;
      margin: 0;
      padding: 0;
      height: unset;
      font-size: .9em;

      > li {
        margin-block: .5em;

        &:last-child {
          margin-bottom: 0;
        }
      }
    }

    &::marker {
      content: '';
    }
  }

  span.expand {
    right: -30px;
    position: absolute;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    display: inline-block;
    vertical-align: sub;
    cursor: default;

    &::before {
      content: '+';
      font-weight: 500;
    }
  }
}

.user-login-form,
.user-pass {
  max-width: 420px;
  padding: 2rem;
  background-color: var(--color-background);
  margin-inline: auto;
  box-shadow: 0 4px 20px 4px rgba(0, 0, 0, 0.04);
  -webkit-box-shadow: 0 4px 20px 4px rgba(0, 0, 0, 0.04);
  border-radius: 1rem;

  > *:first-child {
    margin-top: 0;
  }

  > *:last-child {
    margin-bottom: 0;
  }

  .form-submit {
    width: 100%;
  }

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

  .login-addon-links {
    color: var(--color-muted);
    font-size: .875rem;
    margin-top: .75rem;
    text-align: center;

    a {
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
    
    .pass-request::before {
      content: '\f3c1';
      font-family: 'fa';
      font-weight: bold;
      display: inline-block;
      margin-right: 5px;
      vertical-align: middle;
      font-size: .8em;
    }
  }

}

.view-search.view-display-id-page_1 {
  .views-row + .views-row {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--color-sage);
  }
}


@media screen and (max-width: 950px) {
  #block-main-navigation {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .region-menu {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: fixed;
    left: 0;
    width: 100%;
    height: calc(100dvh);
    top: 0;
    background-color: var(--color-background);
    z-index: 10;
    padding-top: calc(var(--header-height) + var(--region-top-height) + 2rem);
    padding-bottom: 2rem;
    padding-inline: 2rem;
    overflow: auto;
    transition: transform .3s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
    transform: translateX(100%);
  }

  body.menu-open {
    overflow: hidden;
  
    .region-menu {
      transform: translateX(0);
    }
  
    #block-menu-navigation {
      transform: translateX(0);
    }
  }
}

@media screen and (max-width: 899px) {
  .promo--view-mode-default .card,
  .view-promo .swiper-pagination.swiper-pagination-bullets {
    width: 100%;
  }

  .view-promo .swiper-pagination.swiper-pagination-bullets {
    padding-right: var(--padding-inline);
  }

  .view-promo .swiper-horizontal .swiper-button-next {
    right: 38px;
  }

  .region-bottom .region--content {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .view-promo .teaser-brick {
    gap: 1.5rem;
  }

  .view-promo .teaser-brick > * {
    padding: 1.5rem;
  }  
}

@media screen and (max-width: 699px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.65rem;
  }

  .view-promo .teaser-brick {
    flex-direction: column;
  }

  .node--type-frontpage .section.about-us {
    flex-direction: column;
  }

  .region-footer .region--content {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    place-items: center;
    text-align: center;
  }

  #block-footer-logo {
    place-self: normal;
  }

  #block-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #block-bottom-menu .menu {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .node--type-kontakt .contacts .cols {
    flex-direction: column;
    gap: 2rem;
  }

  footer .menu {
    align-items: center;
  }

  #block-heading {
    .heading.with-image {
      flex-direction: column-reverse;
      gap: 0;
      
      .field--name-field-heading-image {
        width: 100%;
        text-align: center;
  
        img {
          width: 100%;
          height: auto;
          max-height: unset;
        }
      }
  
      .heading--content {
        padding: 1.5rem;
        background-color: var(--color-background);
        border-radius: 1rem;
        margin: -4rem 1rem 0 1rem;
        box-shadow: 0 4px 20px 4px rgba(0, 0, 0, 0.1);
        -webkit-box-shadow: 0 4px 20px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 2;
  
        .inner {
          > *:first-child {
            margin-top: 0;
          }
    
          > *:last-child {
            margin-bottom: 0;
          }
        }
      }
    }
  }

  .content-cols.with-image {
    flex-direction: column-reverse;
    gap: 1.5rem;

    > * {
      width: unset;
    }
  }

  .paragraph--type--program {
    padding: 2rem;

    &::before {
      left: calc(-2rem - 13px);
    }
  }

  .field--type-entity-reference-revisions.field--name-field-denny-program > .field__items {
    padding-left: 2rem;
  }

  .field--name-field-pedagogovia > .field__items,
  .view-aktuality.view-display-id-page_1 > .view-content {
    grid-template-columns: repeat(1, 1fr);
  }

  .field--name-field-postup-zapisu > .field__items > .field__item .paragraph {
    padding-left: 60px;

    &::before {
      left: 16px;
      width: 30px;
      height: 30px;
      line-height: 30px;
      font-size: 1.2rem;
    }
  }
}

@media screen and (max-width: 499px) {
  .field--name-field-galeria {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;

    .field__item:nth-child(1),
    .field__item:nth-child(2) {
      grid-column: initial;
      grid-row: initial;
    }
  }

  a.button,
  .form-submit {
    display: inline-flex;
    height: auto;
    line-height: 1.2;
    padding: 1em 1rem;
    white-space: unset;
  }

  .promo--view-mode-default .field--name-title {
    font-size: 2rem;
  }

  .promo--view-mode-default .field--name-field-text {
    font-size: 1rem;
  }

  .promo--view-mode-default .field--name-field-link {
    flex-direction: column;
    align-items: stretch;
    width: 100%;

    a {
      width: 100%;
    }
  }

  .promo--view-mode-default .card {
    padding: 1.5rem;
  }

  .view-promo .swiper-horizontal .swiper-button-prev,
  .view-promo .swiper-horizontal .swiper-button-next {
    display: none;
  }

  #block-dunstreda-link .field--name-body a {
    strong, b {
      display: none;
    }
  }

  .node--type-frontpage .section {
    padding-block: 2rem;
  }

  .field--name-field-downloads .cols {
    padding: 1rem;
    padding-left: calc(1rem + 40px);
    flex-direction: column;
    align-items: stretch;
    justify-content: start;

    &::before {
      width: 30px;
      height: 30px;
      background-size: 20px;
      left: 1rem;
      top: 1rem;
      margin-top: 0;
    }

    .filename {
      font-size: 1rem;
    }

    a {
      display: inline-block;
    }

    .metadata {
      display: inline-block;
      margin-right: 1rem;
    }
  }

  .media--type-document.media--view-mode-default {
    padding: 1rem;
    padding-left: calc(1rem + 40px);
    
    &::before {
      width: 30px;
      height: 30px;
      background-size: 20px;
      left: 1rem;
      top: 1rem;
      margin-top: 0;
    }

    .field--name-name {
      font-size: 1rem;
    }

    .cols {
      flex-direction: column;
      align-items: stretch;
      justify-content: start;
    }

    a {
      display: inline-block;
    }

    .metadata {
      display: inline-block;
      margin-right: 1rem;
    }

    .field--name-field-tags {
      display: inline-flex;
    }
  }

  .form-submit {
    width: 100%;
  }

}


/*  article  */
.page-node-type-article .node__content table,
.page-node-type-article .field--name-body table {
  width: 100%;
  max-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  background: #ffffff;
  border: 1px solid rgba(254, 115, 54, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(254, 115, 54, 0.10);
  font-size: 16px;
}

/* Fejléc */
.page-node-type-article .node__content table thead th,
.page-node-type-article .field--name-body table thead th,
.page-node-type-article .node__content table tr:first-child th,
.page-node-type-article .field--name-body table tr:first-child th {
  background: rgba(254, 115, 54, 0.08);
  color: #263226;
  font-weight: 700;
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(254, 115, 54, 0.22);
}

/* Cellák */
.page-node-type-article .node__content table td,
.page-node-type-article .node__content table th,
.page-node-type-article .field--name-body table td,
.page-node-type-article .field--name-body table th {
  padding: 14px 18px;
  border-right: 1px solid rgba(254, 115, 54, 0.18);
  border-bottom: 1px solid rgba(254, 115, 54, 0.18);
  vertical-align: middle;
}

/* Utolsó oszlop */
.page-node-type-article .node__content table td:last-child,
.page-node-type-article .node__content table th:last-child,
.page-node-type-article .field--name-body table td:last-child,
.page-node-type-article .field--name-body table th:last-child {
  border-right: 0;
}

/* Utolsó sor */
.page-node-type-article .node__content table tr:last-child td,
.page-node-type-article .field--name-body table tr:last-child td {
  border-bottom: 0;
}

/* Váltakozó sorháttér */
.page-node-type-article .node__content table tbody tr:nth-child(even),
.page-node-type-article .field--name-body table tbody tr:nth-child(even) {
  background: rgba(254, 115, 54, 0.035);
}

/* Hover */
.page-node-type-article .node__content table tbody tr:hover,
.page-node-type-article .field--name-body table tbody tr:hover {
  background: rgba(254, 115, 54, 0.09);
}

/* Első oszlop - sorszám */
.page-node-type-article .node__content table td:first-child,
.page-node-type-article .field--name-body table td:first-child {
  width: 56px;
  text-align: center;
  font-weight: 700;
  color: #fe7336;
  background: rgba(254, 115, 54, 0.07);
}

/* Kód oszlop */
.page-node-type-article .node__content table td:nth-child(2),
.page-node-type-article .field--name-body table td:nth-child(2) {
  font-family: monospace;
  font-size: 15px;
  color: #2f3a2f;
}

/* Eredmény oszlop */
.page-node-type-article .node__content table td:last-child,
.page-node-type-article .field--name-body table td:last-child {
  font-weight: 700;
  color: #2f3a2f;
}

/* Mobil nézet */
@media (max-width: 768px) {
  .page-node-type-article .node__content table,
  .page-node-type-article .field--name-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    font-size: 14px;
  }

  .page-node-type-article .node__content table td,
  .page-node-type-article .node__content table th,
  .page-node-type-article .field--name-body table td,
  .page-node-type-article .field--name-body table th {
    padding: 12px 14px;
    white-space: nowrap;
  }
}

.triedy-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:32px;
    margin:40px 0;
}
.trieda-card{
    background:#fffdfa;
    border:1px solid #ece3d8;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(0,0,0,.04);
}
.trieda-header{
    display:flex;
    align-items:center;
    gap:16px;
    padding:28px;
}
.trieda-icon{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#eef8e9;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    flex-shrink:0;
}
.trieda-title h3{
    margin:0 0 6px;
    font-size:20px;
    font-weight:700;
    line-height:1.2;
    color:#26302a;
}
.trieda-title span{
    display:inline-block;
    background:#ff6b2c;
    color:#fff;
    border-radius:18px;
    padding:5px 14px;
    font-size:12px;
    font-weight:700;
}
.trieda-row{
    border-top:1px solid #ececec;
    padding:18px 28px;
}
.trieda-row strong{
    display:block;
    margin-bottom:6px;
    font-size:14px;
    font-weight:600;
    color:#6f6f6f;
}
.trieda-row p{
    margin:0;
    font-size:16px;
    font-weight:500;
    line-height:1.35;
    color:#222;
}
@media(max-width:1200px){
    .triedy-grid{
        grid-template-columns:repeat(2,1fr);
    }
}
@media(max-width:768px){
    .triedy-grid{
        grid-template-columns:1fr;
    }
}