:root {
  --white: #fff;
  --grey: #899d9d;
  --background: #1d2f30;
  --background-shade: #0b1919;
  --green-text: #506829;
  --primary-green: #bae249;
  --green-activeclick: #688b05;
  --red: #e24949;
  --dark-gray-text: #161a16;

  --font-family: "Open Sans", sans-serif;
  --header-family: "Pacifico", sans-serif;

  --text-line-height-xsmall: 105%;
  --text-line-height-small: 120%;
  --text-line-height: 150%;
  --text-line-height-large: 175%;

  --text-size-xlarge: clamp(26px, 5.8vw, 112px);
  --text-size-large: clamp(24px, 3.8vw, 36px);
  --text-size: clamp(18px, 1.8vw, 24px);
  --text-size-small: clamp(16px, 1vw, 20px);
}

/* Плавная прокрутка с отступом для шапки */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: var(--font-family, sans-serif);
  min-width: 384px;
  overflow-x: scroll;
  /* box-sizing: border-box; */
}

a {
  color: var(--primary-green);
}

/* ! ----- Global --------------------*/
.wrapper {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 30px;
}

.wrapper-wide {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 30px;
}

main section {
  position: relative;
}

.section-title {
  font-size: var(--text-size-xlarge);
  line-height: var(--text-line-height-xsmall);
  font-weight: 700;
  text-transform: uppercase;
  text-align: right;
  position: absolute;
  top: 40px;
  right: 20px;
  transition: all 1s;
  text-wrap: nowrap;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Unbounded", sans-serif;
}

.hide {
  display: none;
}

@keyframes rotate-hue {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes scaleY-show {
  from {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes scaleX-show {
  from {
    transform: scaleX(0);
  }
  80% {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ! ----- Header -------------------- */
header {
  display: flex;
  align-items: center;
  height: 60px;
  position: sticky;
  top: 0;
  background-color: var(--background);
  z-index: 5;
}

header::after {
  content: "";
  height: 0;
  width: 100%;
  border-bottom: 1px solid var(--white);
  position: absolute;
  bottom: 0;
}

header,
header a {
  color: var(--white);
  transition: all 0.4s;
}

header a:hover {
  color: var(--primary-green);
}

header a:active {
  color: var(--green-activeclick);
}

/* Контейнер содержимого шапки */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* * Шапка - Логотип */
.logo img {
  /* Шапка - Логотип */
  aspect-ratio: 1;
  height: 45px;
}

/* * Шапка - Основная навигация */
.nav-main {
  /* Контейнер */
  width: clamp(256px, 40vw, 480px);
}

.nav-main a {
  text-decoration: none;
}

.nav-main a:hover {
  text-decoration: underline dotted;
}

/* Позиционирование пунктов меню */
.nav-main ul {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* * Шапка - Адрес и контакты */
.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-icon {
  width: 28px;
  height: 28px;
  background-image: url(../img/icon-contact.svg);
  object-fit: cover;
  background-size: 28px;
  fill: var(--white);
}

.contact-text {
  margin-left: 5px;
  font-size: 0.8em;
  line-height: var(--text-line-height-small);
}

.contact-text a {
  text-decoration: none;
}
.contact-text a:hover {
  text-decoration: dotted;
}

.contact-text a[href^="tel:"] {
  font-weight: 700;
}

/* ! ----- Presentation -------------------- */
.presentation {
  z-index: 10;
  height: 550px;
  padding: 20px 0;
  overflow: hidden;
  background: var(--background) url(../img/bg-1.png) no-repeat center / cover;
}

.presentation-wrapper {
  width: 90%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  justify-content: stretch;
  align-items: center;
}

.slider-container {
  font-size: clamp(16px, 3vw, 24px);
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
  flex-wrap: wrap;
  margin: 0 auto;

  height: 100%;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  transition: all 0s;
}

.active-slide {
  opacity: 1 !important;
}

/* * Шаблон для слайда */

.slide {
  position: absolute;
  top: 20px;
  left: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
  background-size: contain;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5%;
}

.slide h3 {
  font-size: clamp(20px, 5.5vw, 48px);
  font-weight: bold;
  text-align: center;
  display: inline-block;
  margin: 0 auto;
}
.slide .slide-description {
  font-size: clamp(18px, 2.8vw, 40px);
  width: 50%;
}

.slide .slide-image {
  width: 40%;
  object-fit: contain;
  display: block;
}

.slide-description {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.slide-description .slide-image {
  background-size: cover;
  flex-grow: 1;
}

/* * Кнопки навигации */

.nav-button {
  object-fit: cover;
  border: 0;
  border-radius: 33px;
  color: white;
  background-color: var(--primary-green);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  padding: 10px;
  cursor: pointer;
  width: 66px;
  height: 100%;
  box-shadow: 0 5px 15px 0 #294197;
  transition: all 0.2s ease-in-out, width 1s ease-out, height 1s ease-in-out;
}

.nav-button:hover {
  box-shadow: 0px 5px 20px 0 #294197;
}

.nav-button:active {
  background-color: var(--green-activeclick);
  transform: scale(0.95);
}

#prevButton {
  background-image: url(../img/icon-back-arrow.svg);
}
#nextButton {
  background-image: url(../img/icon-next-arrow.svg);
}

/* ! ----- Main -------------------- */

main section {
  min-height: 200px;
  background-color: var(--background);
  padding: 100px 0;
}

.section-description {
  padding: clamp(26px, 8vw, 128px) 0 40px;
  z-index: 1;
}

/* * ----- 1 Section About -------------------- */

.section-about {
  background-color: var(--background);
  transition: all 1s;
}

.section-about:hover .about-title {
  animation: rotate-hue 1s linear 2s 2;
}

.about-title {
  /* opacity: 0.7; */
  color: transparent;
  background: rgb(131, 58, 180);
  background: linear-gradient(
    45deg,
    rgba(131, 58, 180, 1) 0%,
    rgba(253, 29, 29, 1) 50%,
    rgba(252, 176, 69, 1) 100%
  );
  background-clip: text;
  background-size: 100%;
}
.about-description {
  color: var(--white);
  display: flex;
  gap: 6%;
  text-align: justify;
  text-justify: inter-word;
  z-index: 2;
}

.about-description p {
  padding: 20px;
  line-height: var(--text-line-height);
  font-size: var(--text-size-small);
}

/* * ----- 2 Section benefits -------------------- */
.section-benefits {
  background-color: #ce1e8d;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: linear-gradient(
      180deg,
      rgb(255, 255, 255) 0%,
      rgb(255, 255, 255) 10%,
      rgba(255, 255, 255, 0) 75%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("../img/bg_competitions.svg");
  transition: all 1s;
}

.section-benefits:hover .benefits-title {
  animation: rotate-hue 1s linear 2s 2;
}

.benefits-title {
  color: transparent;
  background: rgb(40, 249, 34);
  background: linear-gradient(
    45deg,
    rgb(203, 226, 202) 0%,
    rgba(42, 4, 190, 1) 50%,
    rgba(4, 194, 194, 1) 100%
  );
  background-clip: text;
  background-size: 100%;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  z-index: 2;
}

.grid-container .card {
  padding: 30px;
  border-radius: 15px;
  overflow: hidden;
}

.benefit {
  overflow-wrap: break-word;
  background-color: rgba(14, 244, 244, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(5px);
  transition: all 0.5s ease-out;
}

.benefit:hover {
  transform: scale(1.03);
  backdrop-filter: blur(10px);
}

.benefit h3 {
  font-size: var(--text-size-large);
  font-weight: bold;
}

.benefit p {
  font-size: var(--text-size);
}

.benefit {
  grid-column: span 5;
}

.benefit:nth-child(4n + 2) {
  background-color: rgba(14, 125, 244, 0.5);
  grid-column: 6 / span 7;
}

.benefit:nth-child(4n + 3) {
  background-color: rgba(14, 244, 14, 0.5);
  grid-column: 1 / span 7;
}

/* * ----- 3 Section competitions --------------- */

.value {
  user-select: all;
}

:root {
  --kk-font-size-xlarge: 24px;
  --kk-font-size-large: 20px;
  --kk-font-size: 24px;
}

.section-competitions {
  color: var(--white);
}

.section-competitions:hover .competitions-title {
  animation: rotate-hue 1s linear 2s 2;
}

.competitions-title {
  color: transparent;
  background: rgb(96, 108, 247);
  background: linear-gradient(
    90deg,
    rgba(96, 108, 247, 1) 0%,
    rgba(96, 137, 232, 1) 30%,
    rgba(222, 16, 195, 1) 67%,
    rgba(252, 70, 107, 1) 100%
  );
  background-clip: text;
  background-size: 100%;
}

.competitions-title:hover {
  animation: rotate-hue 1s linear 2s 2;
}

.competitions-list {
  color: var(--white);
  z-index: 2;
}

#competitions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  z-index: 2;
}

#competitions-list .kk-item {
  width: calc(50% - 30px);
}

@media only screen and (max-width: 1024px) {
  #competitions-list .kk-item {
    width: 100%;
  }
}

.kk-item {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  align-content: space-between;
  flex-wrap: wrap;

  margin-bottom: 1em;
  border: solid 3px #ccc;
  border-radius: 40px 0 40px;

  line-height: 1.4;
  overflow: hidden;
  transition: all 0.5s;
}

.kk-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 10px 5px var(--grey);
}

.kk-item > div {
  margin: 0;
}

.kk-item p,
.kk-item h4,
.kk-item h5,
.kk-item div {
  margin: 0.6em 0 0.6em 0;
}

.kk-item p:last-child,
.kk-item h4:last-child,
.kk-item h5:last-child,
.kk-item a:last-child,
.kk-item div:last-child {
  margin-bottom: 0;
}

/* Секции в карточке */
.kk-col1 {
  width: 100%;
  /* flex-basis: 12; */
  flex-grow: 1;
}
.kk-col2 {
  /* flex-basis: 8; */
}
.kk-col3 {
  /* flex-basis: 4; */
}
.kk-wrapper {
  padding: 10px 15px;
}
.kk-name {
  /* margin: 0.6em 0; */
  font-size: var(--kk-font-size-xlarge);
}
.kk-main {
}
.kk-description {
}
.kk-time {
}
.kk-org {
  font-size: var(--kk-font-size-large);
}

.kk-more {
  font-size: var(--kk-font-size-large);
}
.kk-link {
  font-weight: bold;
}

/* ! ----- Footer --------------------*/
footer {
  bottom: 0;
  background-color: var(--background-shade);
  padding: 5px 0;
  text-align: center;
  line-height: var(--text-line-height);
}

.footer-rights {
  color: var(--grey);
  font-size: 0.8em;
}
.footer-copyright {
  color: var(--grey);
}
