* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

:root {
    --itamaweb-color: #FF4438;
    --white: #fff;
    --heading-color: #2a2a2a;
    --link-color: #2a2a2a;
    --font-color: #4a4a4a;
    --body-font-color: #6d6d6d;
    --border-color: #00000030;
    --input-border-color: #707070;
    --background: #f8f8f8;
    --background-secondary: #FFEEEC;

    --content-max: 1440px;
    --content-padding: 80px;
}

/* LOADING */

body {
    opacity: 0;
    transition: opacity .4s ease;
}

body.loaded {
    opacity: 1;
}

body.fade-out {
    opacity: 0;
}

/* body {
    opacity: 0;
    transition: opacity .5s ease;
}

body.loaded {
    opacity: 1;
} */

body {
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;

    /* Fonts */
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 150%;
    color: var(--font-color);

    /* Background */
    background-color: var(--background);
   
    text-align: left;
}



/* BREADCRUMBS */

.breadcrumbs-list {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--font-color);
}

.breadcrumbs-list li:not(:first-child)::before {
    content: "/";
    margin: 0 8px;
    color: var(--font-color);
}

.breadcrumbs-list a {
    text-decoration: underline;
    color: var(--itamaweb-color);
}

/* LAYOUT */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    margin: auto;
    max-width: 1440px;
    width: calc(100% - 144px);
}

.split-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.container {
    max-width: 1440px;
    width: calc(100% - 144px);
    margin: 0 auto;
}



nav a {
    font-size: 1.125rem;
    font-weight: 700;
}



h1 {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 110%;
    text-align: left;

    margin-bottom: 160px;

    position: relative;

    max-width: 1400px;
    z-index: 2;
}

h1 span {
    font-weight: 200;
    color: var(--heading-color);

}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 125%;

    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;

    margin-bottom: 24px;
}

h3 {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 125%;

}

h4 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 125%;
}

h5 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 125%;
}

.caption {
    font-weight: 700;
    color: var(--itamaweb-color);
    margin-bottom: 24px;
}

p, .button, label {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 170%;
}

p {
    color: var(--body-font-color);
}

.paragraph {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.link-chevron {
    position: absolute;
    right: 30px;
    bottom: 24px;


    font-size: 1.125rem;
    font-weight: 700;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out
}

.link-chevron:hover {
    right: 24px;
    gap: 14px;
}

.link-chevron svg {
    display: block;
}

.link-chevron svg path {
    fill: var(--itamaweb-color);
} 

.link-squared, button {
    padding: 12px 16px;
    color: var(--font-color);
    border: 2px solid var(--font-color);
    font-size: 1.125rem;
    font-weight: 700;
    transition: all 0.2s ease-in-out;

    width: fit-content;
}

.link-squared:hover, button {
    transform: scale(0.98);
}

.link-squared:active, button {
    transform: scale(0.96);
}

ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 40px;
}

ul li a {
    display: inline-flex;
    align-items: center;
    text-decoration: none; /* opcjonalnie */
    height: 100%;        /* zapewnia, że wszystkie mają tę samą wysokość */
}

.lang {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
}

.lang .arrow_lang {
    display: block;
}

.button {
    border: 1px solid #767676;
    padding: 8px 16px;
    display: inline-block; /* ważne dla transform */
    transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  transform: scale(0.96);
}

.button:active {
  transform: scale(0.94);
}

.button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, .6); /* AA visible focus ring */
}

/* VIDEO */

.video-full {
    z-index: 1;

    position: relative;
    display: flex;
    align-items: stretch;

    aspect-ratio: 2.2 / 1;
    width: 100%;
    overflow: hidden;
    /*background: #ccc; tylko dla podglądu */
}

.video-full video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SZACHOWNICA */

.board {
    position: absolute;
    z-index: 2;

    display: grid;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    /* inset: auto auto 0% 0%; */
}

.square {
    height: 36px;
    width: 36px;
}

.red {
    background-color: var(--itamaweb-color);
}

.pink {
    background-color: var(--background-secondary);
}

.white {
    background-color: var(--background);
}

.invisible {
    opacity: 0%;
}