/***** FONTS AND COLORS *****/

:root {
    --color-yellow: #FCF5C2;
    --color-blue: #0E4853;
    --color-red: #C97666;
}

/* Regular */
@font-face {
  font-family: 'PPangaia';
  src: url('../fonts/PPPangaia-Regular.woff2') format('woff2'),
       url('../fonts/PPPangaia-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

/* Bold */
@font-face {
  font-family: 'PPangaia';
  src: url('../fonts/PPPangaia-Bold.woff2') format('woff2'),
       url('../fonts/PPPangaia-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* Italic */
@font-face {
  font-family: 'PPangaia';
  src: url('../fonts/PPPangaia-RegularItalic.woff2') format('woff2'),
       url('../fonts/PPPangaia-RegularItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

/* Bold Italic */
@font-face {
  font-family: 'PPangaia';
  src: url('../fonts/PPPangaia-BoldItalic.woff2') format('woff2'),
       url('../fonts/PPPangaia-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
}

/* Lora */
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

/***** BASE *****/
* {
    font-family: PPangaia;
}

html, body{
    background-color: var(--color-yellow);
    margin: 0px;
    padding: 0px;
    color: var(--color-blue);
    font-size: 20px;
    overflow-x: hidden;

}

/* body.background {
  background-repeat: no-repeat;
  background-size: auto 100vh;
  background-attachment: fixed;
  z-index: 0;
  
  background-position: center;
} */

body.background::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;

  opacity: 0.45;
  z-index: 1;
  background-repeat: no-repeat;
background-position: 50% 95px;
  z-index: 0;
      background-size: min(100vh, 170vw);
  background-position: center;

}

body.background.bap::before {
  
    background-size: min(137vh, 229vw);
  background-image: url('/static/assets/services/bap/service_packaging.png');
}

body.background.notebooks::before {

      background-size: min(146vh, 171vw);
background-position: center;
  background-image: url('/static/assets/services/notebooks/service_notebooks.png');
}

body.background.cards::before {
      background-size: min(140vh, 228vw);
  background-image: url('/static/assets/services/cards/service_cards.png');
}

body.background.books::before {
background-size: min(154vh, 265vw);
  background-image: url('/static/assets/services/books/service_books.png');
}

body.background.calendars::before {
  background-image: url('/static/assets/services/calendars/service_calendars.png');
    background-position: calc(50% + 23vw) 3vh;
    background-size: 120vh;
    background-position: 50% 24%;
}

body.background.custom::before {
background-size: min(82vh, 121vw);

  background-image: url('/static/assets/services/custom/service_custom.png');
}

header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 1em;
  box-sizing: border-box;
  background-color: var(--color-yellow);
}

nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left - center - right */
  align-items: center;
  width: 100%;
}

nav .pages {
  text-align: center;
}

nav .languages{
  text-align: right;
}

nav .pages a {
  margin: 0 0.5em;
}

nav .languages a.active {
  /* text-decoration: underline; */
  font-weight: bold;
}

main {
  position: relative;
  z-index: 2;
}

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

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

a.underline:hover  {
  text-decoration: underline;
  color: var(--color-blue);
}

a:hover .underline {
  text-decoration: underline;
  color: var(--color-blue);
}

h2 {
  margin: 0.5em;
  font-weight: 400;
  text-align: center;
  line-height: 1;
}

footer {
  background-color: var(--color-blue);
  color: var(--color-yellow);
  text-align: center;
  padding-bottom: 1em;
  position: relative;
  z-index: 10;
}

.footer_dot {
  width: 1em;
  height: 1em;
  border-radius: 0.5em;
  background-color: var(--color-yellow);
  display: inline-block;
  margin: 1.5em;
  margin-top: 2em;
}

.footer_text {
  max-width: 700px;
  display: inline-block;
  line-height: 1.4;
}

.print_with_us {
  font-size: 2em;
  margin-bottom: 1em;
  line-height: 0.9;
}

.footer_address {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
max-width: min(1000px, 95%);
  margin: 2em auto;
gap: 0.7em;
  font-weight: 500;
  }

.footer_address .left {
  text-align: left;
  font-family: Lora;
}

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

.footer_address .center {
  font-family: Lora;
}

.footer_address .right a{
  font-family: Lora;
  color: var(--color-yellow);
}

.climate {

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 400px;
  margin: 0 auto;
}

.climate img:first-child{
  height: 3rem;
  width: auto;
}

.climate img:last-child{
    width: 13em;
    display: block;
    object-fit: contain;
}

.black_dot {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background-color: var(--color-blue);
  display: block;
  margin: 0 auto;
  margin-top: 2rem;
  margin-bottom: 0px;
}

/***** HOME *****/

.home_section1 {
  position: relative;
  width: 100%;
  min-height: 700px;
}

.home_section1.fr{
  min-height: 800px;
}


.home_section1 h1 {
  margin: 0px;
  text-align: center;
  line-height: 0.65;
}

.home_section1 h2 {
  margin: 0px;
  text-align: center;
  font-size: 65px;
  margin-top: 13px;
}

.home_section1 img {
  width: 95vw;
  height: auto;
  display: block;
  opacity: 0.6;
  rotate: -5deg;
  margin: 0 auto;
  max-width: 1440px;
  transform: translateY(1%) translateX(9%);
}

.home_top_text {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding-top: 2rem;
  
}

.home_top_text h2{
  font-size: min(55px, 6vw);
}

.anabasis {
  font-weight: 400;
  font-size: min(11rem, 21vw);
  line-height: 100%;
  letter-spacing: 0px;
  text-align: center;
}

.home_aboutus {
  width: 590px;
  font-size: 24px;
  margin-top: 220px;
  line-height: 1.35;
}

.read_more {
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  font-family: Lora;
}

.home_notepads {
  width: 100%;
  max-height: 800px;
  object-fit: cover;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.home_section2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home_section2 h2 {
  margin: 1rem;
  text-align: center;
  font-size: 55px;
  margin-bottom: 2rem;
 }

.our_services {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolumny */
  grid-template-rows: repeat(2, auto);   /* 2 wiersze */
  width: fit-content;
  margin-bottom: 20px;
 }

 .our_services .tile {
  text-align: left;
  margin: 0.2em;
  margin-bottom: 2em;

 }

.our_services .tile .frame {
  position: relative;
  overflow: hidden;
  padding: 0.3em;
  padding-top: 5px;
  border: 1px solid var(--color-blue);
  aspect-ratio: 1.2;
    font-size: min(40px, 7vw);
  margin-top: 0px;
}
 .our_services .tile .frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-position: center;
  opacity: 0.7;
  z-index: 0;
  background-repeat: no-repeat;
  transition: 0.3s;
}

a:hover .tile .frame.tile1::before {
  background-size: 120%;
}

a:hover .tile .frame.tile2::before {
  background-size: 130%;
}

a:hover .tile .frame.tile3::before {
  background-size: 120%;
}

a:hover .tile .frame.tile4::before {
  background-size: 120%;
}

a:hover .tile .frame.tile5::before {
  background-size: 135%;
}

a:hover .tile .frame.tile6::before {
    background-size: 75% auto;
    background-position-y: 40%;


}

.our_services .tile .frame.tile1::before{
  background-image: url('/static/assets/home/services1.png');
    background-size: 110% auto;
}

.our_services .tile .frame.tile2::before{
  background-image: url('/static/assets/home/services2.png');
  background-size: 122% auto;
  background-position-x: 10px;
}

.our_services .tile .frame.tile3::before{
  background-image: url('/static/assets/home/services3.png');
    background-size: 110% auto;
}

.our_services .tile .frame.tile4::before{
  background-image: url('/static/assets/home/services4.png');
    background-size: 110% auto;
}

.our_services .tile .frame.tile5::before{
  background-image: url('/static/assets/home/services5.png');
    background-size: 120% auto;
}

.our_services .tile .frame.tile6::before{
  background-image: url('/static/assets/home/services6.png');
    background-size: 70% auto;
    background-position-y: 34%;
}

.our_services .tile .desc {
  margin-top: 0.2em;
}

/***** ABOUT US *****/
h1{
  font-weight: 400;
  text-align: center;
  font-size: 3rem;

}

.aboutus_desc{
  max-width: 60%;
  display: block;
  margin: 0 auto;
  text-align: center;
}
.anabasis_origin{
  margin-top: 1em;
  font-style: italic;
  margin-bottom: 1em;
  font-weight: bold;
  text-align: center;
  display: block;
  font-size: 18px;

}
.notepad_anabasis {
  position: relative;
  width: 100%;
}

.notepad_anabasis img {
  width: 100%;
  display: block;
  max-height: 800px;
  object-fit: cover;
}

.notepad_anabasis_text {
  position: absolute;
  top: 20px;
  font-size: 130px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-red);  
}

.about_us_lower {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.about_us_lower h2 {
margin-top: 2rem;
margin-bottom: 3rem;
    font-size: 55px;
}

.timeline_img{
  max-width: 1000px;
  width: 100%;
}

.timeline_img.mobile {
  display: none;
}

/***** TECHNOLOGY *****/

.technology_img{
  width: 100%;
  max-height: 800px;
  object-fit: cover;
  display: block;
}

.technology_text {
  text-align: center;
    display: block;
    margin: 0 auto;
    max-width: 600px;
    margin-bottom: 5rem;
        margin-top: 100px;
}

.technology_text .text_title {
  font-weight: bold;
  font-style: italic; 
  margin-top: 1.4em;
  margin-bottom: 0.3em;
}

.technology_text .text_star {
  font-size: 45px;
  line-height: 0.2;
  padding-top: 26px;
}

/***** CONTACT *****/

.business_cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 80%;
  margin: 0 auto;
  margin-bottom: 3rem;
  min-width: 800px;
 }

.business_cards .card {
  border: 1px solid var(--color-blue);
  text-align: center;
  padding: 0px;
  font-size: min(20px, 1.3vw);
}

.business_cards .card .name {
  border-bottom: 1px solid var(--color-blue);
  padding: 0.5em;
  font-size: min(26px, 1.9vw);
}

.business_cards .card .photo {
  border-bottom: 1px solid var(--color-blue);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: center;
  aspect-ratio: 1.2;
}

.business_cards .card .photo.agnieszka {
  background-image: url('/static/assets/contact/agnieszka_mazan_kostecka.png');
}

.business_cards .card .photo.katarzyna {
  background-image: url('/static/assets/contact/katarzyna_carta.png');
}

.business_cards .card .photo.wojciech {
  background-image: url('/static/assets/contact/wojciech_kostecki.png');
}

.business_cards .card .photo img {
  width: 100%;
}

.business_cards .card .phone {
  border-bottom: 1px solid var(--color-blue);
  padding: 0.5em;
}

.business_cards .card .mail {
  padding: 0.5em;
}

.contact_notepad {
  width: 100%;
  max-height: 800px;
  object-fit: cover;
  display: block;
}

/***** SERVICES *****/

.service_image {
  position: relative;
  width: 100%;
}

.service_title h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
    line-height: 1;
    margin-top: 3rem;
}

.service_image img {
  height: 100vh;
  display: block;
  opacity: 0.5;
  margin: 0 auto;
}

.service_title {
  margin-bottom: 3rem;
}

.service_title .desc{
  display: block;
  margin: 0 auto;
  max-width: 600px;
  font-size: 30px;
  text-align: center;
}

.service_details {
  text-align: center;
  display: inline-block;
  width: 100%;
  margin-bottom: 1em;
  font-size: 22px;
}

.service_details .text_title {
  font-weight: bold;
  font-style: italic; 
  margin-top: 0.7em;
  margin-bottom: 0.3em;
}

.service_details .text_star {
  font-size: 45px;
  line-height: 0.2;
  padding-top: 26px;
}

.our_productions {
  margin-top: 1em;
  margin-bottom: 1em;
  font-size: 55px;
}

.production_images {
  width: 100%;
  padding: 120px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
  box-sizing: border-box;
}

.production_images.bap {
  background-image: url('/static/assets/services/bap/boxes_background.png');
}

.production_images.notebooks {
  background-image: url('/static/assets/services/notebooks/notebooks_background.png');
}

.production_images.cards {
  background-image: url('/static/assets/services/cards/cards_background.png');
}

.production_images.books {
  background-image: url('/static/assets/services/books/books_background.png');
}

.production_images.calendars {
  background-image: url('/static/assets/services/calendars/calendars_background.png');
}

.production_images.custom {
  background-image: url('/static/assets/services/custom/custom_background.png');
}

.image_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  width: 100%;
}

.image_grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1.3;
}