/* === Header === */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 25px;
  background-color: var(--secondary-color);
  overflow-x: hidden;
  transition: all 0.6s ease;
}

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

.header .secondary-btn:hover {
  background-color: var(--secondary-hover);
}

.header-nav {
  display: flex;
  gap: 430px;
  align-items: center;
}

.header-nav-list {
  display: flex;
  gap: 30px;
}

.header-nav-list a {
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.header-nav-list a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.burger-btn {
  display: none;
}

.mobile-menu {
  display: none;
}

a.header-link-active {
  color: var(--primary-color);
}

@media screen and (max-width: 1240px) {
  .header {
    padding: 10px 25px;
  }

  .header .secondary-btn,
  .header-nav {
    display: none;
  }

  .burger-btn {
    display: block;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 3px;
  }

  .burger-btn svg {
    width: 45px;
    height: 45px;
    color: var(--text-secondary);
  }

  .burger-btn:active svg {
    color: var(--primary-hover);
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 0;
    right: -100%;
    width: 215px;
    height: 100vh;
    background-color: var(--text-inverted);
    backdrop-filter: blur(120px);
    padding: 15px 30px 60px;
    z-index: 1000;
    transition: all 0.3s ease;
  }

  .mobile-menu-active {
    right: 0;
  }

  .mobile-menu .primary-btn {
    display: flex;
  }

  .close-btn {
    display: block;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 3px;
    margin-left: auto;
  }

  .close-btn svg {
    width: 35px;
    height: 35px;
    stroke: var(--text-secondary);
  }

  .close-btn:active svg {
    stroke: var(--primary-hover);
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 150px;
  }

  .mobile-nav-list a {
    color: var(--text-secondary);
  }
}

/* === Hero == */

.hero {
  padding: 50px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 150px;
  background-color: var(--secondary-color);
  z-index: -1;
}

.hero-container {
  background-color: var(--secondary-background);
  max-width: 1170px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 20px 0 20px 28px;
  width: calc((100%) / 2);
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 62px;
  line-height: 120%;
  color: var(--text-inverted);
  margin-bottom: 20px;
}

.hero-content .descr {
  max-width: 440px;
  margin-bottom: 40px;
}

.wrapper {
  height: 650px;
  max-width: 600px;
  width: calc((100%) / 2);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
  position: relative;
}

.wrapper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 1024px) {
  .hero-content,
  .wrapper {
    width: 100%;
  }

  .wrapper {
    height: 550px;
  }

  .hero-content {
    margin-bottom: 45px;
    padding-right: 50px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-container {
    justify-content: end;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    padding: 50px 20px;
  }

  .hero-content {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* === Timer === */

.timer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -45%);

  width: 80%;
  aspect-ratio: 1 / 1;
  padding: 45px;
}

.progress-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  aspect-ratio: 1 / 1;
  width: auto;
  height: auto;
  transform: rotate(-90deg);
  z-index: 2;
}

.progress-ring__circle {
  stroke: var(--primary-color);
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 1 / 1;
  width: auto;
  height: auto;
  border-radius: 50%;
  border: 4px var(--primary-color) dashed;
  z-index: 1;
}

.timer-wrapper .subtitle {
  color: var(--text-inverted);
  margin-bottom: 35px;
  font-size: 36px;
  position: relative;
  z-index: 3;
}

.timer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 3;
}

.timer-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: calc((100% - 50px) / 3);
  background: linear-gradient(
    136deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius-primary);
  padding: 20px 10px;
}

.timer-item:not(:last-child):after {
  content: ":";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -17px;
  color: var(--text-secondary);
  font-size: 44px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.timer-item .subtitle {
  margin-bottom: 5px;
}

.timer-item .subtitle,
.timer-item .descr {
  color: var(--text-inverted);
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 90px;
  padding: 25px 55px;
  backdrop-filter: blur(8px);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
  border-radius: var(--border-radius-secondary);
  border: 0.5px solid var(--text-secondary);
}

.hero-item {
  width: calc((100% - 270px) / 4);
}

.hero-item .subtitle {
  margin-bottom: 6px;
}

.hero-item .subtitle,
.hero-item .descr {
  color: var(--text-secondary);
}

@media screen and (max-width: 500px) {
  .timer-wrapper {
    padding: 35px;
    width: 95%;
    left: 53%;
    transform: translate(-50%, -48%);
  }

  .progress-ring {
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
  }

  .timer-wrapper .subtitle {
    font-size: 22px;
  }

  .timer-wrapper .descr {
    font-size: 14px;
  }

  .timer-wrapper::after {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .timer-list {
    gap: 25px;
    max-width: 260px;
  }

  .timer-item {
    width: calc((100% - 50px) / 3);
  }

  .timer-item:not(:last-child):after {
    right: -17px;
  }
}

/* === Buy Games === */

.buy-tickets {
  padding: 140px 0 100px;
}

.buy-tickets .container-flex {
  align-items: start;
  gap: 80px;
}

.buy-tickets-wrapper,
.buy-tickets-content {
  width: calc((100% - 80px) / 2);
}

.buy-tickets-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
}

.buy-tickets-content .title {
  margin-bottom: 20px;
}

.buy-tickets-content .descr:not(:last-child) {
  margin-bottom: 10px;
}

.buy-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-bottom: 55px;
}

.buy-tickets-item {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  row-gap: 12px;
  justify-content: space-between;
  position: relative;
}

.buy-tickets-item::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -40px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-secondary);

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.buy-tickets-item:nth-child(1):before {
  content: "1";
}

.buy-tickets-item:nth-child(2):before {
  content: "2";
}

.buy-tickets-item .descr {
  max-width: 300px;
}

.buy-tickets-item-wrap {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 20px;
  width: calc(100% - 340px);
}

.buy-tickets-item-select {
  width: 100%;
  max-width: 200px;
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  color: #222;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M70 90L30 50h80z' fill='%23777'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.buy-tickets-item-select:hover {
  border-color: #888;
}

.buy-tickets-item-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--accordion-active);
  outline: none;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  color: #222;
  gap: 10px;
  position: relative;
}

.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.custom-checkbox .checkmark {
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  position: absolute;
}

.custom-checkbox .label-text {
  line-height: 1.4;
}

@media screen and (max-width: 1024px) {
  .buy-tickets-item-wrap {
    width: 100%;
    align-items: start;
  }
}

@media screen and (max-width: 768px) {
  .buy-tickets-content,
  .buy-tickets-wrapper {
    width: 100%;
  }

  .buy-tickets-wrapper {
    padding-left: 40px;
    padding-top: 0;
  }
}

/* === Our Services === */

.our-services {
  padding: 100px 0;
}

.our-services-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin-bottom: 60px;
}

.our-services-content .title {
  max-width: 700px;
  margin-bottom: 10px;
}

.our-services-content .descr {
  max-width: 800px;
}

.our-services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 20px;
}

.our-services-item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 10px;
  background-color: var(--secondary-color);
  width: calc((100% - 20px) / 2);
}

.our-services-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background-color: var(--background-color);
}

.our-services-item-wrap img {
  width: 45px;
  object-fit: contain;
}

.our-services-item-content {
  width: calc(100% - 110px);
}

.our-services-item .subtitle {
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.our-services-item .descr {
  color: var(--text-secondary);
}

@media screen and (max-width: 768px) {
  .our-services-item {
    width: 100%;
  }
}

/* === About Us === */

.about-us {
  padding: 100px 0;
}

.about-us-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  width: calc(100% / 2);
}

.about-us-content .title {
  margin-bottom: 8px;
}

.about-us-content .descr:not(:last-child) {
  margin-bottom: 6px;
}

.about-us-content .primary-btn {
  margin-top: 40px;
}

@media screen and (max-width: 1024px) {
  .about-us .container-flex {
    justify-content: end;
  }

  .about-us-content {
    margin-bottom: 60px;
    width: 100%;
  }
}

/* === How Work === */

.how-work {
  padding: 100px 0;
}

.how-work-content {
  margin-bottom: 60px;
}

.how-work-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.how-work-item {
  display: flex;
  align-items: center;
  position: relative;
}

.how-work-item::after {
  content: "";
  position: absolute;
  top: calc(50% + 30px);
  bottom: -25px;
  right: 30px;
  width: 1px;
  background-color: var(--text-primary);
}

.how-work-item::before {
  content: "";
  position: absolute;
  bottom: calc(50% + 30px);
  top: -25px;
  right: 30px;
  width: 1px;
  background-color: var(--text-primary);
}

.how-work-item-content {
  max-width: 700px;
  padding: 20px 10px;
  position: relative;
}

.how-work-item-content::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 30px;
  border-right: 1px solid var(--text-primary);
  border-top: 1px solid var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
}

.how-work-item-content .subtitle {
  margin-bottom: 10px;
}

.how-work-item-wrap-center {
  flex: 1;
  min-width: 20px;
  height: 1px;
  background-color: var(--text-primary);
}

.how-work-item-wrap-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 36px;
  border: 1px solid var(--text-primary);
}

.how-work-item:nth-child(1) .how-work-item-wrap-right {
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

/* === Testimonial === */

.testimonial {
  padding: 100px 0 140px;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 60px;
}

.testimonial-content .title {
  margin-bottom: 8px;
}

.testimonial-content .descr {
  max-width: 800px;
}

.swiper-wrapper {
  padding-bottom: 50px;
}

.testimonial-item {
  display: flex;
  border: 1px solid #eee;
  padding: 20px;
  gap: 30px;
  height: auto;
}

.testimonial-item img {
  object-fit: cover;
  height: 100%;
}

.testimonial-item-content,
.testimonial-item img {
  width: calc((100% - 30px) / 2);
}

.testimonial-item-content {
  display: flex;
  flex-direction: column;
}

.testimonial-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.testimonial-item-wrap svg {
  width: 30px;
  height: 30px;
  fill: var(--text-secondary);
}

.testimonial-item-content .subtitle {
  margin-top: auto;
}

.testimonial-item-content .descr:nth-child(2) {
  font-style: italic;
  font-size: 14px;
  margin-bottom: 30px;
}

.swiper-pagination-bullet {
  width: 15px;
  height: 4px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  width: 25px;
}

@media screen and (max-width: 500px) {
  .testimonial-item {
    flex-direction: column;
  }

  .testimonial-item-content,
  .testimonial-item img {
    width: 100%;
  }
}

/* === Our Blog === */

.our-blog {
  padding: 100px 0;
}

.our-blog-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin-bottom: 60px;
}

.our-blog-content .title {
  margin-bottom: 10px;
}

.our-blog-content .descr {
  max-width: 800px;
}

.our-blog-item {
  display: flex;
  flex-direction: column;
  align-items: start;
  height: auto;
}

.our-blog-item-img {
  object-fit: cover;
  width: 100%;
  height: 300px;
  margin-bottom: 11px;
}

.our-blog-item-info {
  margin-bottom: 11px;
}

.our-blog-item .subtitle {
  margin-bottom: 10px;
}

.our-blog-item .descr {
  margin-bottom: 20px;
}

/* === Contact === */

.contact {
  padding: 100px 0 180px;
  position: relative;
}

.contact .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 70px;
  column-gap: 0;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  flex: 1;
  width: calc(100% / 2);
  background-color: var(--text-inverted);
  padding: 40px 30px;
}

.contact-content .title {
  margin-bottom: 12px;
  text-align: start;
  color: var(--text-secondary);
}

.contact-content .descr {
  margin-bottom: 30px;
  max-width: 670px;
  color: var(--text-secondary);
}

.contact-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.contact-list-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  font-family: var(--font-family);
  font-size: 18px;
  color: var(--text-secondary);
  position: relative;
}

.contact-content .subtitle {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.contact-content svg {
  width: 25px;
  height: 25px;
  fill: transparent;
  stroke: var(--primary-color);
}

.contact-content-wrap:not(:last-child) {
  margin-bottom: 30px;
}

.contact-content a {
  color: var(--text-secondary);
}

.contact-content-wrap .descr {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  gap: 13px;
  margin: 0;
}

.contact-list-item:nth-child(2) svg {
  fill: transparent;
  stroke: var(--primary-color);
}

.contact-form {
  background-color: var(--background-color);
  box-shadow: 0 10px 52px 0 rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  width: calc(100% / 2);
  border-radius: var(--border-radius-primary);
}

.contact-form .subtitle {
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 24px;
}

.form-group:nth-child(6) {
  margin-bottom: 60px;
}

.form-group label {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 171%;
  color: #d3d3d3;
  margin-bottom: 10px;
}

.form-group textarea,
.form-group input {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  padding-bottom: 5px;
  color: var(--text-primary);
  border: none;
  background-color: transparent;
  outline: none;
  border: 1px solid var(--text-primary);
  border-radius: var(--border-radius-primary);
  padding: 15px;
  transition: 0.3s all ease;
}

.form-group textarea:hover,
.form-group input:hover {
  border: 1px solid var(--primary-hover);
}

.form-group textarea:focus,
.form-group input:focus {
  border: 1px solid var(--primary-color);
}

.contact-map {
  height: auto;
  border-radius: var(--border-radius-primary);
  border: none;
  min-height: 400px;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .contact-form {
    padding: 25px;
  }

  .contact-content,
  .contact-form {
    width: 100%;
  }
}

/* === Footer === */

.footer {
  padding: 70px 0 20px;
  background: var(--secondary-color);
  color: var(--text-secondary);
  overflow: hidden;
}

.footer a {
  color: var(--text-secondary);
  opacity: 0.8;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
  margin-bottom: 40px;
}

.footer-contact,
.footer-menu ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-menu .subtitle {
  color: var(--text-secondary);
}

.footer-rights {
  width: 100%;
  margin-top: 30px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.footer-content .logo img {
  width: 200px;
}

.footer-content .logo {
  margin-bottom: 35px;
}

.footer-content .subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.footer-content .descr {
  width: 100%;
  color: var(--text-secondary);
}

.footer-content .descr:not(:last-child) {
  margin-bottom: 8px;
}

.footer-logo-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 50px;
}

.footer-logo-list-item {
  width: calc((100% - 90px) / 4);
}

@media screen and (max-width: 768px) {
  .footer-logo-list-item {
    width: calc((100% - 30px) / 2);
  }
}

.footer-age {
  text-align: center;
  font-size: 40px;
  background: var(--secondary-background);
  color: #222;
  padding: 20px 25px;
  border: 3px solid #ff3b3b;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: fit-content;
  font-weight: 700;
  letter-spacing: 1px;
}

@media screen and (max-width: 1240px) {
  .footer {
    padding: 60px 0 20px;
  }

  .footer .container {
    padding: 0 15px;
    justify-content: space-between;
    gap: 40px;
  }
}
