/*@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/MontserratRegular.eot');
  src: local('MontserratRegular'), url('../fonts/MontserratRegular.woff') format('woff'), url('../fonts/MontserratRegular.ttf') format('truetype');
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway-regular.eot');
  src: local('RalewayRegular'), url('../fonts/raleway-regular.woff') format('woff'), url('../fonts/raleway-regular.ttf') format('truetype');
}*/

html, body {
  width: 100%;
  height: 100%;
}
body {
  min-width: 540px;
}
.button, body, button, h1, h1.title, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

p {
  font-family: 'Raleway', sans-serif;
}

/*** GLOBAL ***/
a {
  color: #fff;
  text-decoration: none;
}
a:hover {
  color: #fff;
}
.content {
  max-width: 1200px;
  margin: 0 auto;
}
.cell {
  display: table-cell;
}
.valign-mid {
  vertical-align: middle;
}
.section {
  padding-top: 72px;
  padding-bottom: 48px;
  max-width: 740px;
}
h1.title {
  font-size: 64px;
}
h1.title span {
  color: #30898b;
}
h2 {
  text-transform: uppercase;
  text-align: center;
  color: #5a5a5a;
  margin-bottom: 32px;
  font-size: 48px;
}
.light {
  background-color: #ececec;
}
.medium {
  background-color: #616264;
}
.dark {
  background-color: #414141;
  color: #838383;
}
p {
  color: #5a5a5a;
}
.col {
  height: 300px;
}
.accent {
  background-color: #30898b;
}
.accent h2, .accent p {
  color: #fff;
}
.medium h2, .medium label {
  color: #fff;
}
.section.fluid {
  max-width: none;
}
.req {
  font-size: 100%;
  color: #a60000;
}
input, textarea {
  border: 1px solid #30898b;
}
textarea {
  height: 240px;
}
button {
  text-transform: uppercase;
  background-color: #30898b;
}
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
  


/*** MAIN ***/

#main {
  width: 100%;
  height: 100%;
  background-image: url('../img/hero.jpg');
  background-position: 20% center;
  background-size: cover;
}

#main .content {
  height: 100%;
}

/*** MENU ***/
#menu {
  text-align: right;
  padding: 35px 32px 65px;
  /*background-color: rgba(255,255,255,0.05);*/
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  font-size: 18px;
  line-height: 24px;
  z-index: 99;
}
#menu:after {
  content: '';
  clear: both;
  display: block;
}
#menu ul {
  float: right;
}
#menu li {
  float: left;
  text-transform: uppercase;
  color: #fff;
  margin-right: 34px;
  position: relative;
  overflow: hidden;
  padding: 2px;
}
#menu .content {
  position: relative;
}
#menu .bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
}
#menu img {
  position: absolute;
  top: -15px;
  left: 0;
}
#main .main-title {
  display: table;
  padding: 0 24px;
  text-align: center;
}
h1.title {
  color: #fff;
  text-transform: uppercase;
  font-weight: normal;
  line-height: 72px;
}

#main .main-button {
  color: #fff;
  border-color: #30898b;
  font-size: 24px;
  padding: 28px 48px;
  text-transform: uppercase;
  margin-top: 36px;
  border-radius: 5px;
}

/* ANIMATIONS */
#menu {
  transition: .3s;
}
#menu .bg {
  transition: ease .3s;
}
#menu li a:after {
  display: block;
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  left: -100%;
  background-color: #30898b;
  transition: .3s;
}
#menu.scrolled li a:after {
  background-color: #fff;
}
#menu li a:hover:after {
  left: 0;
}
#menu.scrolled {
  padding: 22px 32px;
}
#menu.scrolled .bg {
  background-color: #30898b;
}
#main .main-button {
  transition: .5s;
}
#main .main-button:hover {
  background: #30898b;
}


/*** PROGRAMS ***/
#programs .col,
#inspirations .col {
  /*background-image: url('../img/main.jpg');*/
  position: relative;
  /*background-color: rgba(0,0,0,.4);*/
  overflow: hidden;
}
#programs .title,
#inspirations .title {
  display: inline-block;
  margin-top: 48px;
}
#programs h3,
#inspirations h3 {
  color: #fff;
  text-transform: uppercase;
  /*display: inline;*/
  margin: 0;
  position: relative;
  padding: 0 36px;
}
#programs h3 span,
#inspirations h3 span {
  position: relative;
}
#programs h3 span:before,
#inspirations h3 span:before {
  width: 20px;
  height: 20px;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #fff;
  position: absolute;
  top: 12px;
  left: -8px;
  display: block;
  content: " ";
  transition: all .3s, left ease-out .25s, transform ease-out .25s;
/*  display: none;*/
}
#programs .button,
#inspirations .button {
  color: #fff;
  border-color: #fff;
  font-size: 16px;
  padding: 20px 32px;
  text-transform: uppercase;
  /*margin-top: 64px;*/
  border-radius: 5px;
  border-width: 1px;
  /*display: none;*/
  opacity: 0;
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translateX(-50%);
  transition: .3s;
  min-width: 206px;
  text-align: center;
}
#programs .col:hover .alpha {
  background-color: rgba(0,0,0,.6);
  /*background-blend-mode: overlay;*/
}
#inspirations .col:hover .alpha {
  background-color: rgba(0,0,0,.6);
}
#programs .col:hover .button,
#inspirations .col:hover .button {
  /*display: inline;*/
  opacity: 1;
}
#programs .col:hover h3,
#inspirations .col:hover h3 {
  /*position: static;*/
}
#programs .col:hover h3 span:before,
#inspirations .col:hover h3 span:before {
  width: 28px;
  height: 28px;
  /*top: 156px;
  left: 40px;*/
  /*top: 52%;
  left: calc(50% - 158px);*/
  /*left: 50%;
  top: 52%;
  transform: rotate(-45deg) translateX(-50%);*/
  /*transform: rotate(315deg) translateX(-50%);*/
  left: -46px;
  top: 0;
  transform: rotate(225deg);
}

#programs .alpha,
#inspirations .alpha {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.4);
  transition: .2s;
}
#inspirations .alpha {
  background: rgba(0,0,0,0.8);
}
#programs .tile,
#inspirations .tile {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: cover;
  background-position: center center;
  transition: ease-out 5s;
}
#programs .col:hover .tile {
  transform: scale(1.1);
}
#inspirations .col:hover .tile {
  transform: scale(1.05);
}


#programs .p1 {
  background-image: url('../img/Archipelag.jpg');
}
#programs .p2 {
  background-image: url('../img/Gdybym-miala-skrzydla.jpg');
}
#programs .p3 {
  background-image: url('../img/Przysmaki-z-Wiklinowej-Strugi.jpg');
}
#programs .p4 {
  background-image: url('../img/Mediacje-rowiesnicze.jpg');
}
#programs .p5 {
  background-image: url('../img/Odczuwaj-ufaj-mow.jpg');
}
#programs .p6 {
  background-image: url('../img/Magiczne-Krysztaly.jpg');
}
#programs .p7 {
  background-image: url('../img/Cukierki.jpg');
}
/*
#inspirations .button:before {
  border-bottom: 1px solid #fff;
  border-left: 1px solid #fff;
  position: absolute;
  display: block;
  content: " ";
  width: 36px;
  height: 36px;
  top: 12px;
  left: -64px;
  transform: rotate(-135deg);
}*/
/*
#inspirations .col {
  display: flex;
  justify-content: center;
}*/
/*
#inspirations .button {
  margin: 0;
  align-self: center;
  position: relative;
}
*/

#inspirations .i1 {
  background-image: url('../img/Ksiazka-Gdybym-miala-skrzydla.jpg');
}
#inspirations .i2 {
  background-image: url('../img/Kolorowanka-antystresowa.jpg');
}

/*** ABOUT ***/
#about img {
  float: left;
  margin: 0 24px 10px 0;
  width: 240px;
  height: 155px;
}

/*** PARTNERS ***/
#partners .partner {
  height: 100px;
  background: brown;
}
#partners .row {
  padding: 48px 2%;
}

/*** FORM ***/
#form-send {
  transition: .5s;
}
#form-send:hover {
  background: #fff;
  color: #30898b;
}
.msg {
  font-family: 'Raleway', sans-serif;
}
.message.success {
  background: #30898b;
}

/*** FOOTER ***/
#footer {
  padding-bottom: 72px;
}

/*** MODALS ***/
.modal-box,
.modal {
/*  background: #838383;*/
  background: #414141;
}
.modal {
  box-shadow: none;
  border-radius: 0;
  width: auto;
  max-width: 1000px;
}
.program-info,
.program-info p {
  color: #ccc;
}
.modal h1 {
/*  color: #30898b;*/
  color: #fff;
  padding: 16px 64px;
  margin: 64px -32px 32px -32px;
  border-top: 1px solid #30898b;
  border-bottom: 1px solid #30898b;
  text-transform: uppercase;
}
.modal h3 {
  color: #30898b;
  border-bottom: 1px solid;
  padding-left: 32px;
  padding-bottom: 12px;
  margin-top: 48px;
}
.modal .button {
  color: #30898b;
  border-color: #30898b;
  text-transform: uppercase;
  transition: .5s;
}
.modal .button:hover {
  border-color: #30898b;
  background: #30898b;
  color: #fff;
}
.modal li {
  font-family: 'Raleway', sans-serif;
}
.modal .next {
  float: right;
}
.modal .prev {
  float: left;
}
.modal-close {
  text-align: right;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.modal .close {
  display: none;
}
.modal .quote {
  font-style: italic;
  margin: 64px 0 0 32px;
}
.modal .author {
  font-size: 14px;
  margin-left: 50%;
  margin-top: 12px;
}
.modal .poster {
  margin-bottom: 32px;
}
.modal .samples img {
  margin: 12px 48px 0;
}

@media(max-width: 768px) {
  .content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media(max-width: 1592px) {
  #programs .first {
    order: initial;
  }
}

@media(min-width: 769px) {
  #programs .col-6 {
    width: 100%;
  }
  #programs .col-3 {
    width: 50%;
  }
}

@media(min-width: 1200px) {
  #programs .col-6{
    width: 100%;
  }
  #programs .col-3 {
    width: 33.3333333334%;
  }
}

@media(min-width: 1592px) {
  #programs .col-6{
    width: 50%;
  }
  #programs .col-3 {
    width: 25%;
  }
}