/*!
Theme Name: adobefirst
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: adobefirst
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

adobefirst is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/gothampro/gothampro.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/gothampro/gothampro_italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/gothampro/gothampro_medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/gothampro/gothampro_mediumitalic.woff2")
    format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/gothampro/gothampro_bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/gothampro/gothampro_bolditalic.woff2")
    format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/gothampro/gothampro_black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/gothampro/gothampro_blackitalic.woff2")
    format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/gothampro/gothampro_light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Pro";
  src: url("./assets/fonts/gothampro/gothampro_lightitalic.woff2")
    format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
body {
  margin: 0;
  font-family: "Gotham Pro";
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  line-height: 120%;
}

/* * {
  border: 1px solid red;
} */

h1,
h2,
h3,
p {
  margin: 0;
}
body {
  background-color: #171422;
  color: #fff;
  font-family: "GothamPro", sans-serif;
  line-height: 120%;
  font-size: 16px;
}

.container {
  max-width: 1468px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  background: linear-gradient(
    90deg,
    #9e0b37 0.98%,
    #ffc531 72.22%,
    #9e0b37 99.95%
  );
  padding: 16px 0;
  position: relative;
  z-index: 500;
}
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu {
  display: flex;
  gap: 70px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item a {
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease-out;
}
.sub-menu {
  padding: 20px;
  list-style: none;
  background: linear-gradient(
    135deg,
    #ffa462 0%,
    #b45350 21.79%,
    #8a2645 48.93%,
    #291725 84.55%
  );
  display: none;
  border-radius: 10px;
}

/* .menu-item a:hover {
  letter-spacing: 0.5px;
} */

.menu-item-has-children {
  display: flex;
  gap: 12px;
}

.sign-in {
  text-decoration: none;
  color: #fff;
}

.header-registration {
  display: flex;
  align-items: center;
  gap: 40px;
}

.btn {
  padding: 16px 24px;
  font-size: 17px;
  border: 0;
  color: #fff;
  outline: none;
  border-radius: 40px;
  background: rgba(158, 11, 55, 0.7);
  box-shadow:
    4px 4px 20px 0 rgba(223, 80, 23, 0.8),
    4px 4px 6px 0 rgba(255, 255, 255, 0.5) inset;
  cursor: pointer;
  transition: 0.2s ease-out;
}
.btn:hover {
  background: rgba(175, 11, 55, 0.7);
}

.title-h1 {
  font-size: 50px;
  font-weight: 500;
  text-transform: uppercase;
  font-family: "Gotham Pro", sans-serif;
}

.article {
  padding-top: 100px;
  padding-bottom: 80px;
}

.article__grid {
  display: grid;
  grid-template-columns: 5fr 220px;
  grid-gap: 20px;
}

.article-hero {
  position: relative;
  background-position: 0%;
  margin-top: -54px;
  overflow-x: hidden;
}

.article-hero .article-hero__inner {
  display: flex;
  gap: 20px;
  position: relative;
  top: 0;
  min-height: 600px;
}
.article-hero__content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-hero__content:before {
  display: block;
  content: "";
  position: absolute;
  min-width: 1310px;
  right: -250px;
  top: 0;
  bottom: 0;
  background: url("./assets/img/hero_bgx2.png");
  /* background-image: url("./assets/img/hero_bgx2.png"); */
  background-repeat: no-repeat;
  z-index: 2;
  background-position: left;
  background-size: cover;
  height: 100%;
  z-index: -1;
  display: block;
}

.article-hero__box-img {
  position: relative;
  max-width: 590px;
  width: 100%;
  min-height: 648px;
  height: 100%;
  z-index: 1;
}
.article-hero__box-img img {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -43%;
  display: block;
}

.article-hero__box-img-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-block-quote {
  background: linear-gradient(
    135deg,
    #ffa462 0%,
    #b45350 21.79%,
    #8a2645 48.93%,
    #291725 84.55%
  );
  border-radius: 30px;
  padding: 40px 47px 50px 40px;
  margin-bottom: 16px;
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  font-weight: 400;
  font-size: 22px;
  line-height: 140%;
  font-family: "Gotham Pro", sans-serif;
}
.article__content {
  display: inline-flex;
  flex-direction: column;
  gap: 28px;
}

.article__content > *:first-child {
  margin-top: 0 !important;
}

.article__content > *:last-child {
  margin-bottom: 0 !important;
}

.article__content p {
  font-weight: 400;
  font-size: 22px;
  line-height: 140%;
  font-family: "Gotham Pro", sans-serif;
}

.wp-block-gallery.wp-block-gallery--type1 {
  display: grid;
  grid-template-columns: minmax(auto, 255px) minmax(auto, 261px);
  justify-content: center;
  gap: 89px;
}

.wp-block-gallery.wp-block-gallery--type2 {
  display: flex;
  gap: 19px !important;
  padding-top: 161.46px;
}

.wp-block-gallery.wp-block-gallery--type2 .wp-block-image {
  max-width: 246px !important;
  width: 100% !important;
  aspect-ratio: 246 / 350 !important;
}

.wp-block-gallery.wp-block-gallery--type2 .wp-block-image.last-img {
  margin-left: auto !important;
  position: relative;
}

.wp-block-gallery.wp-block-gallery--type2 .wp-block-image.second-img {
  position: relative;
}

.wp-block-gallery.wp-block-gallery--type2 .wp-block-image.third-img {
  position: relative;
}

.wp-block-gallery.wp-block-gallery--type2 .wp-block-image.second-img::before {
  position: absolute;
  content: "";
  display: block;
  width: 150px;
  height: 150px;
  background-image: url("./assets/img/gallery-type2-after1.png");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 3;
  top: -111px;
  right: 22px;
}

.wp-block-gallery.wp-block-gallery--type2 .wp-block-image.third-img::before {
  position: absolute;
  content: "";
  display: block;
  width: 406px;
  height: 150px;
  background-image: url("./assets/img/gallery-type2-after2.png");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 3;
  top: -181px;
  left: -10px;
}

.wp-block-gallery.wp-block-gallery--type2 .wp-block-image.last-img::before {
  position: absolute;
  content: "";
  display: block;
  width: 150px;
  height: 150px;
  background-image: url("./assets/img/gallery-type2-after3.png");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 3;
  top: -111px;
  right: 22px;
}

.section-slider {
  overflow-x: hidden;
}

.page-carousel-gallery {
  margin-bottom: 60px;
  --page-carousel-gallery-gap: 16px;
  --page-carousel-gallery-height: 120px;

  width: 100%;
  overflow: hidden;
}

.page-carousel-gallery__rows {
  display: grid;
  gap: var(--page-carousel-gallery-gap);
}

.page-carousel-gallery__row {
  width: 100%;
  overflow: hidden;
}

.page-carousel-gallery__track {
  display: flex;
  align-items: stretch;
  gap: var(--page-carousel-gallery-gap);
  width: max-content;
  will-change: transform;
}

.page-carousel-gallery__row--top .page-carousel-gallery__track {
  animation: page-carousel-gallery-left 28s linear infinite;
}

.page-carousel-gallery__row--bottom .page-carousel-gallery__track {
  animation: page-carousel-gallery-right 32s linear infinite;
}

.page-carousel-gallery--pause-hover
  .page-carousel-gallery__row:hover
  .page-carousel-gallery__track {
  animation-play-state: paused;
}

.page-carousel-gallery__item {
  display: block;
  flex: 0 0 auto;
  height: var(--page-carousel-gallery-height);
  border-radius: 16px;
  overflow: hidden;
}

.page-carousel-gallery__item img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

@keyframes page-carousel-gallery-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - (var(--page-carousel-gallery-gap) / 2)));
  }
}

@keyframes page-carousel-gallery-right {
  from {
    transform: translateX(calc(-50% - (var(--page-carousel-gallery-gap) / 2)));
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 767.98px) {
  .page-carousel-gallery__row--top .page-carousel-gallery__track {
    animation-duration: 20s;
  }

  .header-menu--dks {
    display: none;
  }

  .page-carousel-gallery__row--bottom .page-carousel-gallery__track {
    animation-duration: 24s;
  }

  .header-menu--mob {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .burger-wrapper {
    display: flex !important;
  }
}

.article__other-articles {
  max-width: 220px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.blog-item {
  width: 100%;
  height: 220px;
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(23, 20, 34, 0) 0%,
    rgba(23, 20, 34, 0.9) 100%
  );
}
.blog-item-img {
  position: relative;
}
.blog-item-other-img {
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  display: inline-block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  z-index: -1;
}
.blog-item__title {
  position: absolute;
  bottom: 14.35px;
  left: 6.22px;
  right: 6.22px;
  box-shadow: 2px 2px 10px 0 rgba(255, 255, 255, 0.8);
  border: 0.96px solid #fff;
  display: flex;
  font-weight: 700;
  font-size: 9px;
  line-height: 140%;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  z-index: 3;
  min-height: 35.87px;
  box-sizing: border-box;

  border-radius: 24px;
  display: flex;
}

.blog-item__title-text {
  display: flex;
  flex-direction: column;
  padding-top: 4.78px;
  padding-right: 43.9px;
  padding-left: 11.17px;
}
.blog-item__title span.bold {
  display: block;
  font-size: 13px;
}
.blog-item__title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -1px;
  bottom: 0;
  top: -1px;
  width: 35.86px;
  height: 35.86px;
  flex-shrink: 0;
  border-radius: 100%;
  background: linear-gradient(132deg, #df5017 0%, #f9cb74 100%);
  box-shadow:
    inset 2px 2px 3px 0 rgba(255, 255, 255, 0.5),
    2px 2px 10px 0 #df5017;
}

.blog-item__title-icon svg {
  width: 16px;
  height: 16px;
}

.gallery-grid.wp-block-gallery--type3 {
  margin-top: 28px;
}

.gallery-grid.wp-block-gallery--type3 .gallery-grid__items {
  gap: 89.57px;
}

.gallery-grid.wp-block-gallery--type3 .gallery-grid__item:nth-child(1) {
  max-width: 255px;
  height: 157px;
  margin-left: auto;
}

.gallery-grid.wp-block-gallery--type3 .gallery-grid__item:nth-child(2) {
  max-width: 261px;
  height: 178px;
  margin-right: auto;
}

.article__other-articles--section-mob {
  display: none;
  margin-top: 60px;
  margin-bottom: 107px;
}

.header-menu {
  margin-right: auto;
}

.header-menu ul {
  display: flex;
  justify-content: start;
  gap: 72px;
}

.header-menu .menu-item {
  list-style-type: none;
}

.header-menu .menu-item a {
  font-weight: 400;
  font-size: 16px;
  color: #fff;
}

.header-menu,
.header-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
}

.header-menu .sub-menu .sub-menu {
  margin-left: 15px;
}

.header-menu .menu-item {
  position: relative;
}

.header-menu .menu-item__inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-menu .menu-link {
  display: inline-block;
  text-decoration: none;
}

.header-menu .submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-menu .submenu-toggle__icon {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.header-menu .sub-menu {
  display: none;
}

/* ПК */
@media (min-width: 768px) {
  .header-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
  }

  .header-menu
    .menu-item-has-children:hover
    > .menu-item__inner
    > .submenu-toggle
    > .submenu-toggle__icon {
    transform: rotate(45deg);
  }

  .header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    z-index: 20;
  }

  .header-menu .submenu-toggle {
    pointer-events: none;
  }
}

/* Мобилка */
@media (max-width: 767.98px) {
  .header-menu .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .header-menu--mob {
    flex-direction: column;
  }

  .header-menu .menu-item-has-children .sub-menu {
    background: none;
  }

  .menu-item-has-children {
    flex-direction: column;
  }

  .header-menu
    .menu-item-has-children.is-open
    > .menu-item__inner
    .submenu-toggle__icon {
    transform: rotate(45deg);
  }
}

@media (max-width: 1440px) {
  .article-hero__box-img img {
    right: -43%;
  }
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image {
    max-width: 200px !important;
  }
}

@media (max-width: 1280px) {
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image {
    max-width: 180px !important;
  }
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image.last-img::before {
    width: 127px;
    height: 127px;
    top: -91px;
  }
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image.second-img::before {
    width: 127px;
    height: 127px;
    top: -91px;
  }
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image.third-img::before {
    width: 286px;
    height: 110px;
    top: -141px;
    left: -40px;
  }
}

@media (max-width: 1080px) {
  article__other-articles--block-pc {
    display: none;
  }
  .article__grid {
    grid-template-columns: auto;
  }
  .article__other-articles--section-mob {
    display: block;
  }
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image.third-img::before {
    width: 346px;
  }
  .article__other-articles--block-pc {
    display: none !important;
  }
  .article__other-articles--section-mob .article__other-articles {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
  }
  .blog-item {
    width: 100%;
    max-width: 220px;
    flex-shrink: 0;
  }
}

@media (max-width: 992px) {
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image.third-img::before,
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image.second-img::before,
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image.last-img::before {
    display: none;
    min-width: none;
    width: 100%;
  }
  .article-hero__content:before {
    right: auto;
    left: 0;
    min-width: auto;
    width: 100%;
    overflow-x: hidden;
  }
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image.last-img {
    margin-left: 0 !important;
  }
  .wp-block-gallery.wp-block-gallery--type2 .wp-block-image {
    max-width: 100% !important;
  }
  .wp-block-gallery.wp-block-gallery-1 {
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .article__grid {
    grid-template-columns: auto;
  }
  .article__other-articles--section-mob {
    display: block;
  }
  .article-hero .article-hero__inner {
    flex-direction: column-reverse;
    gap: 0;
    margin-left: -24px;
    margin-right: -24px;
    min-height: auto;
  }
  .article-hero__content {
    padding: 24px 30px;
  }
  .article-hero__box-img img {
    position: relative;
    right: 0;
    width: 100%;
    height: 100%;
  }
  .article-hero__box-img {
    max-width: 100%;
    min-height: auto;
  }
  .article-hero {
    margin-top: 0;
  }
  .article-hero__content {
    width: 100%;
  }
}

@media (min-width: 991.9px) {
}

@media (max-width: 767.98px) {
  .title-h1 {
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
  }
  .article {
    padding-top: 24px;
    padding-bottom: 32px;
  }
  .article__other-articles--section-mob {
    overflow-x: hidden;
  }
  .article__other-articles--section-mob .article__other-articles {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
  .article__other-articles--section-mob .container {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }
  .article__content {
    gap: 24px;
  }
  .blog-item__title-text {
    padding-right: 37px;
  }
  .gallery-grid.wp-block-gallery--type3 .gallery-grid__items {
    gap: 14.41px;
  }
  .gallery-grid.wp-block-gallery--type3 {
    margin-top: 0;
  }
  .numbered-section__right {
    gap: 24px;
  }
  .article__content p {
    font-size: 16px;
  }
  .page-carousel-gallery__item {
    height: 121px;
    width: 171px;
  }
  .page-carousel-gallery__track {
    gap: 8px;
  }
  .page-carousel-gallery__rows {
    gap: 9px;
  }
}

@media (max-width: 375.98px) {
  .header .menu {
    display: none;
  }
}

.fancybox__image {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.burger-wrapper {
  display: none;
  width: 32px;
  height: 32px;

  align-items: center;
  justify-content: center;
  border-radius: 5px;
  outline: none;
  border: none;
  background: #fff;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;

  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 22px;
  border-radius: 10px;
  background: #a71c37;
  transition: 0.2s ease-out;
}
.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* .header-menu--mob {
  display: none;
} */

.burger-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #171422;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  transition: 0.45s ease-out;
  transform: scale(0);
}

.burger-menu.active {
  z-index: 1000;
  opacity: 1;
  transform: scale(1);
}

.burger-menu__inner {
  display: flex;
  flex-direction: column;
}
.burger-menu__inner .burger-menu__inner__top {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
}
.burger-menu__inner .burger-menu__inner__bot {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}
