:root {
  --bg-main: #171113;
  --border-margin: 15px;
  --transition: 0.2s;
  --gradient_main: linear-gradient(
    to left,
    #302760 25%,
    #7a2a79 50%,
    #302760 100%
  );
  --z1: 100;
  --z2: 99;
  --z3: 98;
  --big-size: 24px;
  --size: 18px;
  --normal: 400;
  --bold: 700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-weight: var(--normal);
  font-style: normal;
  color: #fff;
  font-size: var(--size);
}

/* helper class */
.bold {
  font-weight: var(--bold);
}

.heading {
  font-size: var(--big-size);
  font-weight: var(--bold);
}

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 200px;
  width: 200px;
  height: 38px;
  font-size: var(--size);
  font-weight: var(--normal);
  background-image: var(--gradient_main);
  background-size: 200% 100%;
  background-position: 100% 0;
  border-radius: 17px;
  text-decoration: none;
  transition: var(--transition);
}

.cta:hover {
  background-position: 0% 100%;
}

.cta.second {
  position: relative;
  width: 100%;
  max-width: 300px;
  min-width: 240px;
  height: 38px;
  align-self: center;
  cursor: pointer;
}

.cta.second:hover {
  background-position: 100% 0;
}

.cta.second::before,
.cta.second::after {
  display: block;
  position: absolute;
  content: "";
  border-radius: 17px;
}

.cta.second::before {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background-color: var(--bg-main);
}

.cta.second::after {
  width: 100%;
  height: 100%;
  background-image: var(--gradient_main);
  background-size: 200% 100%;
  background-position: 100% 0;
  opacity: 0;
  transition: var(--transition);
}

.cta.second:hover:after {
  opacity: 1;
}

.cta.second span {
  position: relative;
  font-weight: var(--normal);
  z-index: var(--z3);
}

body {
  width: 100vw;
  background-color: var(--bg-main);
  overflow-x: hidden;
}

nav {
  position: fixed;
  padding: 9px var(--border-margin);
  width: 100%;
  height: 50px;
  background-color: var(--bg-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: var(--z1);
}

nav::before {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  left: 0%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-main);
  transform: translateX(100%);
  transition: var(--transition);
  pointer-events: none;
}

body.menu nav::before {
  transform: translateX(0%);
}

nav .logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav .logo img {
  filter: grayscale(1) invert(1) contrast(2);
  width: 77px;
  height: auto;
  z-index: var(--z2);
}

nav ul {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 20px;
  top: 75px;
  width: 100%;
  left: 0%;
  opacity: 0;
  transform: translateX(100%);
  transition: var(--transition);
}

body.menu nav ul {
  opacity: 1;
  transform: translateX(0%);
}

nav ul li {
  list-style: none;
  text-align: center;
}

nav ul li a {
  text-decoration: none;
  opacity: 1;
  transition: var(--transition);
}

nav ul li a:hover {
  opacity: 0.6;
}

nav button.hamburger {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

nav button.hamburger img {
  width: 50px;
  height: auto;
  filter: invert(1);
}

nav button.hamburger img.open {
  display: block;
}

nav button.hamburger img.close {
  display: none;
}

body.menu nav button.hamburger img.open {
  display: none;
}

body.menu nav button.hamburger img.close {
  display: block;
}

section.hero {
  position: relative;
  top: 50px;
  width: 100%;
  height: auto;
}

section.hero img {
  width: 100%;
  height: auto;
}

section.hero header {
  position: absolute;
  top: 0;
  left: var(--border-margin);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: fit-content;
  height: 100%;
}

body.contact-page section.hero header,
body.about-page section.hero header,
body.offer-page section.hero header,
body.media-page section.hero header {
  top: 30px;
  justify-content: start;
  z-index: var(--z2);
}

section.hero header h1.heading span {
  font-size: var(--big-size);
}

section.hero header h1 {
  font-weight: var(--normal);
}

section.about {
  margin-top: 80px;
  padding: 0 var(--border-margin);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

section.about h2,
section.about p {
  line-height: 30px;
}

section.about h2 {
  font-weight: var(--bold);
}

section.about p {
  font-weight: var(--normal);
}

section.events {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 var(--border-margin);
}

section.events ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

section.events ul li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  width: 100%;
  height: auto;
  border-radius: 30px;
  background-image: linear-gradient(to left, #302760, #7a2a79);
}

section.events ul li span.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

section.events ul li span.list-heading img {
  filter: invert(1);
  height: 35px;
  width: auto;
}

section.events ul li span.list-heading span {
  font-weight: var(--bold);
}

section.events ul li span {
  line-height: 30px;
  font-weight: var(--normal);
}

section.gallery {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  overflow-x: hidden;
  gap: 20px;
}

section.gallery h2 {
  padding: 0 var(--border-margin);
}

section.gallery .slider {
  padding: 0 10px;
  display: inline-flex;
  gap: 10px;
  overflow-x: scroll;
  scrollbar-width: none;
  cursor: grab;
}

section.gallery div.previous,
section.gallery div.next {
  display: none;
}

section.gallery .slider ::-webkit-scrollbar {
  scrollbar-width: none;
}

section.gallery .slider .slider-element {
  position: relative;
  min-width: 65%;
  max-width: 400px;
  height: 200px;
  background-image: var(--gradient_main);
  border-radius: 30px;
}

section.gallery .slider .slider-element img {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
}

section.gallery + a.cta.second {
  margin: 20px var(--border-margin) 0;
  max-width: calc(100% - 2 * var(--border-margin));
}

footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px var(--border-margin) 0;
  padding: 0 0 30px;
}

footer a {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 5px;
  line-height: 30px;
  text-decoration: none;
  font-weight: var(--normal);
  cursor: pointer;
  transition: var(--transition);
}

footer a:hover {
  opacity: 0.6;
}

footer a img {
  height: 30px;
  width: auto;
  filter: invert(1);
}

footer .socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

footer .socials a img {
  height: 25px;
  width: auto;
}

footer .copyrights {
  font-size: 14px;
  line-height: 30px;
  font-weight: var(--normal);
}

/* kontakt */

section.form {
  position: relative;
  margin-top: 80px;
  padding: 0 var(--border-margin);
}

section.form h2 {
  margin-bottom: 20px;
}

section.form p {
  margin-bottom: 50px;
}

section.form form {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

section.form .field-element {
  position: relative;
}

section.form .field-element label {
  position: absolute;
  top: 50%;
  left: 20px;
  font-size: 18px;
  transform: scale(1) translate(0%, -50%);
  transform-origin: left;
  transition: var(--transition);
  pointer-events: none;
}

section.form .field-element.textarea label {
  top: 20px;
}

input:required:valid + label,
textarea:required:valid + label {
  transform: scale(0.8) translate(0%, -60px);
}

input#agree + label {
  transform: none;
}

section.form input,
section.form textarea {
  background-color: #332c34;
  border: none;
  outline: #7a2a79;
  border-radius: 10px;
  padding: 10px 20px;
  width: 100%;
  max-width: 871px;
}

section.form .agree {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-areas: "a b" "c c";
  column-gap: 20px;
}

section.form .agree label {
  font-size: 16px;
  line-height: 30px;
  grid-area: b;
}

section.form input[type="checkbox"] {
  min-width: 24px;
  min-height: 24px;
  grid-area: a;
}

body section.form form .agree span.validation {
  position: static;
  grid-area: c;
}

section.form button {
  background-color: transparent;
  border: none;
}

section.form .cta.second {
  margin: 0 0;
  align-self: start;
}

section.form .sended {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #171113cc;
  backdrop-filter: blur(2px);
  z-index: var(--z2);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

section.form .sended.show {
  pointer-events: all;
  opacity: 1;
}

section.form .sended span {
  font-size: 36px;
  font-family: var(--bold);
  text-align: center;
}

section.form form .field-element span.validation,
section.form form .agree span.validation {
  position: absolute;
  top: 100%;
  left: 0;
  font-size: 14px;
  font-weight: var(--normal);
  color: #ef4444;
  transition: var(--transition);
  opacity: 0;
}

section.form form .field-element span.validation.show,
section.form form .agree span.validation.show {
  opacity: 1;
}

/* o mnie */

section.about .cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

section.about .cards .card {
  display: grid;
  position: relative;
  padding: 15px;
  max-width: 324px;
  width: 100%;
  background-image: var(--gradient_main);
  background-size: 200% 100%;
  background-position: 100% 0;
  min-height: 300px;
  border-radius: 10px;
  gap: 20px;
}

section.about .cards .card::before {
  position: absolute;
  display: block;
  content: "";
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  top: 2px;
  left: 2px;
  background-color: var(--bg-main);
  border-radius: 10px;
}

section.about .cards .card p {
  font-size: 20px;
  font-weight: var(--bold);
}

section.about .cards .card p,
section.about .cards .card span {
  z-index: var(--z2);
  line-height: 30px;
}

/* oferta */

body.offer-page section.offer {
  margin-top: 80px;
  padding: 0 var(--border-margin);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

body.offer-page section.offer .list h2 {
  margin-bottom: 20px;
}

body.offer-page section.offer .list ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

body.offer-page section.offer .list ul li {
  line-height: 30px;
}

/* media */

body.media-page section.media {
  padding: 0 var(--border-margin);
  margin-top: 80px;
  overflow: hidden;
}

body.media-page section.media h2 {
  margin-bottom: 20px;
}

body.media-page section.media .media-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

body.media-page section.media .media-menu button {
  width: 246px;
  height: 42px;
  background-color: #332c34;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: var(--normal);
  transition: var(--transition);
  cursor: pointer;
}

body.media-page section.media .media-menu button.active {
  background-color: #9f2780;
  font-weight: var(--bold);
}

body.media-page section.media .pagination {
  margin-top: 20px;
  display: none;
  justify-content: center;
  gap: 5px;
}

body.media-page section.media .pagination.active {
  display: flex;
}

body.media-page section.media .pagination button {
  background-color: #332c34;
  width: 28px;
  height: 28px;
  border: none;
  color: #d9d9d9;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
}

body.media-page section.media .pagination button.active {
  background-color: #d9d9d9;
  color: #000;
}

body.media-page section.media .gallery {
  display: none;
}

body.media-page section.media .gallery.active {
  display: inline-flex;
  transition: var(--transition);
}

body.media-page section.media .gallery .page {
  display: grid;
  grid-template-columns: calc(100vw - 40px);
  justify-content: center;
  gap: 20px;
}

body.media-page section.media .gallery img {
  width: 308px;
  max-width: 308px;
  height: 406px;
  max-height: 406px;
  object-fit: cover;
  border-radius: 30px;
  justify-self: center;
}

@media (min-width: 600px) {
  :root {
    --big-size: 36px;
  }

  .cta.second {
    max-width: 400px;
    margin: 0 auto;
  }

  body.contact-page section.hero header,
  body.about-page section.hero header,
  body.offer-page section.hero header,
  body.media-page section.hero header {
    top: 60px;
  }

  section.gallery + a.cta.second {
    margin: 20px auto;
    max-width: calc(400px - 2 * var(--border-margin));
  }

  section.events ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  section.gallery .slider .slider-element {
    height: 400px;
  }

  section.about h2,
  section.about p {
    line-height: 42px;
  }

  /* media */
}

@media (min-width: 1280px) {
  :root {
    --border-margin: 10px;
    --big-size: 36px;
    --size: 30px;
    --width: 1640px;
    --full-width: 1920px;
  }

  nav,
  body {
    max-width: var(--full-width);
  }

  section.about,
  section.events,
  section.gallery,
  footer,
  body.media-page section.media {
    max-width: var(--width);
    margin-left: auto;
    margin-right: auto;
  }

  nav {
    margin-left: auto;
    margin-right: auto;
  }

  .cta {
    height: 110px;
    font-size: 40px;
  }

  .cta.second span {
    font-size: 18px;
  }

  br.mobile-br {
    display: none;
  }

  body {
    margin-left: auto;
    margin-right: auto;
  }

  nav {
    left: 0;
    right: 0;
    height: 75px;
    padding: 0 var(--border-margin);
  }

  nav .logo img {
    width: 138px;
  }

  nav ul {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 140px;
    top: unset;
    width: auto;
    left: unset;
    opacity: 1;
    transform: unset;
  }

  nav ul li a {
    font-size: 18px;
  }

  nav::before,
  nav button.hamburger {
    display: none;
  }

  section.hero {
    position: relative;
    display: flex;
    justify-content: end;
    top: 75px;
    max-height: 710px;
    padding-right: 10px;
  }

  section.hero header {
    gap: 100px;
    left: 10px;
  }

  body.contact-page section.hero header,
  body.about-page section.hero header,
  body.offer-page section.hero header,
  body.media-page section.hero header {
    top: 100px;
  }

  section.hero header h1.heading span,
  section.hero header h1 {
    font-size: 60px;
  }

  section.hero img {
    width: auto;
    max-height: 710px;
  }

  body.contact-page section.hero img,
  body.about-page section.hero img,
  body.offer-page section.hero img,
  body.media-page section.hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  section.hero:before {
    position: absolute;
    display: block;
    content: "";
    width: 50px;
    height: 100%;
    background-image: linear-gradient(to right, transparent, var(--bg-main));
    top: 0;
    right: 8px;
  }

  body.contact-page section.hero::after,
  body.about-page section.hero::after,
  body.offer-page section.hero::after,
  body.media-page section.hero::after {
    position: absolute;
    display: block;
    content: "";
    width: 50px;
    height: 100%;
    background-image: linear-gradient(to left, transparent, var(--bg-main));
    top: 0;
    left: -1px;
  }

  section.hero .cta {
    min-width: 586px;
  }

  section.about {
    margin-top: 155px;
    display: grid;
    grid-template-columns: 1fr 330px;
    grid-template-areas: "a c" "b b";
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }

  section.about h2,
  section.about p {
    line-height: 50px;
  }

  section.about h2 {
    grid-area: a;
  }

  section.about p {
    grid-area: b;
  }

  section.about a {
    grid-area: c;
  }

  section.events {
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1fr 330px;
    grid-template-areas: "a c" "b b";
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }

  section.events h2.heading {
    grid-area: a;
  }

  section.events ul {
    grid-area: b;
    margin: 40px auto 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1090px;
  }

  section.events ul li {
    max-width: 330px;
    padding: 24px;
  }

  section.events ul li span.list-heading span {
    font-size: 20px;
  }

  section.events ul li span {
    font-size: 18px;
  }

  section.events a {
    grid-area: c;
  }

  section.gallery {
    max-width: var(--width);
    padding: 0 10px;
    position: relative;
    margin: 80px auto 0;
    display: grid;
    grid-template-columns: 1fr 330px;
    grid-template-areas: "a c" "b b";
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }

  section.gallery h2 {
    grid-area: a;
    padding: unset;
  }

  section.gallery .slider {
    grid-area: b;
    gap: 30px;
    padding: 0 0px;
    transition: var(--transition);
    overflow-x: visible;
  }

  section.gallery .slider .slider-element {
    min-width: 396px;
    width: 396px;
    max-width: 396px;
    height: 480px;
  }

  section.gallery .cta {
    grid-area: c;
  }

  section.gallery div.previous,
  section.gallery div.next {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: var(--z2);
    width: 70px;
    height: 480px;
  }

  section.gallery div.previous.hide,
  section.gallery div.next.hide {
    display: none;
  }

  section.gallery div.previous {
    left: 0;
    background-image: linear-gradient(to left, transparent, var(--bg-main));
  }

  section.gallery div.next {
    right: 0;
    background-image: linear-gradient(to right, transparent, var(--bg-main));
  }

  section.gallery div button {
    background-color: transparent;
    border: none;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
  }

  section.gallery div button:hover {
    opacity: 0.6;
  }

  section.gallery div button img {
    filter: invert(1);
  }

  section.gallery div.previous button img {
    rotate: 180deg;
  }

  footer {
    margin-top: 80px;
    gap: 40px;
  }

  footer a {
    font-size: 24px;
    line-height: 30px;
  }

  footer .socials {
    gap: 40px;
  }

  footer .socials a img {
    height: 60px;
  }

  footer .copyrights {
    font-size: 18px;
  }

  section.form {
    margin-top: 110px;
  }

  section.form p {
    font-size: 30px;
    line-height: 50px;
  }

  section.form input,
  section.form textarea {
    font-size: 18px;
  }

  section.form .sended span {
    font-size: 60px;
  }

  body.about-page section.about {
    display: flex;
    flex-direction: column;
    align-items: start;
  }

  body.about-page section.about .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  body.about-page section.about .cards .card {
    display: grid;
    grid-template-rows: 60px 1fr;
    border-radius: 17px;
  }

  body.about-page section.about .card p {
    align-self: center;
    grid-area: unset;
    font-size: 20px;
    line-height: 30px;
  }

  body.about-page section.about .card span {
    font-size: 18px;
    font-weight: var(--normal);
    line-height: 30px;
  }

  body.about-page section.about .cards .card::before {
    border-radius: 17px;
  }

  body.offer-page section.offer {
    margin-top: 105px;
  }

  body.offer-page section.offer .list h2 {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  body.offer-page section.offer .list ul li {
    font-size: 30px;
    line-height: 50px;
  }

  /* media */

  body.media-page section.media {
    margin-top: 155px;
  }

  body.media-page section.media h2 {
    margin-bottom: 50px;
  }

  body.media-page .media-section {
    display: grid;
    grid-template-columns: 246px 1fr;
    gap: 50px;
  }

  body.media-page section.media .media-menu {
    flex-direction: column;
    flex-wrap: unset;
    justify-content: start;
    gap: 20px;
  }

  body.media-page section.media .media-menu button {
    height: 62px;
    border-radius: 20px;
  }

  body.media-page section.media .pagination {
    margin-top: 0px;
    /* padding-left: 296px; */
  }

  body.media-page section.media .pagination.active {
    grid-column: span 2;
  }

  body.media-page section.media .gallery-container {
    width: 1012px;
    overflow: hidden;
  }

  body.media-page section.media .gallery .page {
    grid-template-columns: repeat(3, 324px);
    gap: 20px;
  }
}

@media (min-width: 1280px) and (max-width: 1320px) {
  body.media-page .media-section {
    grid-template-columns: 200px 1fr;
  }

  body.media-page section.media .media-menu button {
    width: 200px;
  }
}

@media (min-width: 1640px) and (max-width: 1919px) {
  nav {
    padding: 0 calc((100vw - var(--width)) / 2 + var(--border-margin));
  }
  section.hero header {
    left: calc((100vw - var(--width)) / 2 + var(--border-margin));
  }
}

@media (min-width: 1920px) {
  nav {
    padding: 0
      calc(calc((var(--full-width) - var(--width)) / 2) + var(--border-margin));
  }
  section.hero header {
    left: calc(
      calc((var(--full-width) - var(--width)) / 2) + var(--border-margin)
    );
  }
}
