/* =========Переменные=========== */
:root {
  --color-main: rgb(255, 255, 255);
  --color-primary: rgb(69, 71, 152);

  --gradient: linear-gradient(135deg, rgb(138, 53, 207), rgb(105, 96, 249));
  --gradient--light: linear-gradient(
    0deg,
    rgb(156, 217, 235) 0%,
    rgb(141, 195, 223) 100%
  );
}

/* ==============Шрифты============== */

@font-face {
  font-family: "Roboto";
  src: local("Roboto-Regular"),local("Roboto Regular"),
    url("../fonts/Roboto-Regular.woff2") format("woff2"),
    url("../fonts/Roboto-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: local("Roboto-Black"),local("Roboto Black"), url("../fonts/Roboto-Black.woff2") format("woff2"),
    url("../fonts/Roboto-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  outline: none;
}

img {
  max-width: 100%;
}

.btn-reset {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  padding: 0;
}

.visually-hiden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
}

.body {
  overflow-x: hidden;
  max-width: 100%;
  background-color: #15171a;
  color: white;
  font-family: "Roboto", Arial, Helvetica, sans-serif, sans-serif;
}

/* ========= общие ========= */

.title {
  font-weight: 900;
  font-size: 50px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 30px;
}

.descr {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
}

/* ========= Header ========= */

.header {
  position: relative;
  width: 100%;
  height: min(800px, 41.6667vw); /* 800px на ≥1920px, пропорции на <1920px */
  min-height: 300px; /* исправить для других разрешений*/
  background: linear-gradient(135deg, rgb(138, 53, 207), rgb(105, 96, 249));
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/Cover_Art_large.png") bottom center no-repeat;
  z-index: 1;
}

.header__container {
  height: 100%;
}

.wrap {
  position: relative;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr
    20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr;
  grid-template-columns: repeat(12, 1fr);
  height: 100%;
  -webkit-column-gap: 20px;
  -moz-column-gap: 20px;
  column-gap: 20px;
  margin: 0 auto;
  z-index: 2;
}

.content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}
.header-content {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding-bottom: 90px;
  -ms-grid-column: 4;
  -ms-grid-column-span: 4;
  grid-column: 4 / 8;
}

.logo-link {
  max-width: 80%;
}

.main {
  position: relative;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Circles Section */
.circles-section {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
}

#circles-broun {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ========= Наши проекты ========= */

.gallery__container {
  padding: 45px 0;
}
@keyframes infinite-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.animate-infinite-scroll {
  animation: infinite-scroll 40s linear infinite;
}

.animate-infinite-scroll:hover {
  animation-play-state: paused;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gradient-text {
  background: linear-gradient(to right, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slider-item {
  border-radius: 32px;
}

.slider-item.big {
  width: 600px;
  height: 330px;
}

.slider-item.small {
  width: 300px;
  height: 330px;
}
.slider-item a {
    pointer-events: auto; /* Убедитесь, что ссылка кликабельна */
}
.slider-item .overlay {
  /* Исправляем пропавший градиент */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

/* =========  ========= */

/* ========= Интро ========= */

.intro__container {
  padding: 45px 0;
}

.intro-content {
  grid-column: 4 / 6 span;
  padding: 30px;
}

.accent {
  background-color: #d0f053;
}

.accent .descr {
  color: #000;
}

/* ========= Ценности ========= */

.values-content {
  grid-column: 4 / 6 span;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 90px 0;
  gap: 30px;
}

.values-list {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.values__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 20px 30px;
  border-radius: 16px;
  color: var(--text-color--light);
  background: var(--gradient);
  text-align: center;
}

.img-wrap-left {
  -ms-grid-column: 1;
  -ms-grid-column-span: 3;
  grid-column: 1 / 4;
  background-image: url(../img/Barashkin_sh.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position-y: bottom;
}

.img-wrap-right {
  -ms-grid-column: 10;
  -ms-grid-column-span: 3;
  grid-column: 10 / 13;
  background-image: url(../img/Einshtein_Human_sh.png);
  background-size: 80%;
  background-repeat: no-repeat;
  background-position-y: bottom;
  background-position-x: center;
}

.img-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.hero-img {
  max-height: 400px;
  -o-object-fit: contain;
  object-fit: contain;
  -o-object-position: center;
  object-position: center;
}

/* ========= Технологии ========= */

.technologes__container {
  background: linear-gradient(135deg, rgb(138, 53, 207), rgb(105, 96, 249));
  padding: 90px 20px;
}

.technologes-content {
  grid-column: 4 / 6 span;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 30px;
}

.technologes-item .descr {
  text-align: start;
}

.technologes-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding-left: 20px;
  gap: 20px;
}

.technologes-item {
  position: relative;
  padding-left: 25px;
}

.technologes-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  -webkit-transform: translateY(-50%) rotate(45deg);
  -ms-transform: translateY(-50%) rotate(45deg);
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: white;
}

/* ========= Проекты ========= */

.card {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr
    20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  padding: 90px 20px;
  text-align: left;
}

.card-dark {
  background: #8a35cf;
  background: linear-gradient(
    135deg,
    rgba(138, 53, 207, 0.05) 0%,
    rgba(105, 96, 249, 0.05) 50%
  );
  background-blend-mode: overlay;
  background-blend-mode: overlay;
}

.card-light {
  background: #8a35cf;
  background: linear-gradient(
    135deg,
    rgba(138, 53, 207, 0.13) 0%,
    rgba(105, 96, 249, 0.13) 50%
  );
  background-blend-mode: overlay;
}

.card-left {
  grid-column: 1 / 6 span;
}

.card-right {
  grid-column: 7 / 6 span;
}

.card__img-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 20px;
}

.card__img-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.card__img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  -o-object-position: center;
  object-position: center;
  border-radius: 32px;
  overflow: hidden;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.card__img:hover {
  -webkit-transform: scale(1.02);
  -ms-transform: scale(1.02);
  transform: scale(1.02);
}

.card__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.card__title {
  font-size: 50px;
  line-height: 1.2;
}

.card .descr {
  text-align: left;
}

.subject {
  font-size: 30px;
  font-weight: 400;
}

/* Стили для кнопок */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 45px;
  color: var(--color-main);
  background: var(--gradient);
  border-radius: 16px;
  font-size: 24px;
  margin-top: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Стили для полноэкранной галереи */
.fullscreen-gallery {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  cursor: pointer;
}

.gallery-img-container {
  max-width: 90vw;
  max-height: 90vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.gallery-fullscreen-img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gallery-close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 10001;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.gallery-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ======= App======= */



.app_container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 90px 20px 90px 20px;

}

.app__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 30px;
}

.app__link {
  display: block;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  opacity: 0.9;
  
}

.app__link:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  opacity: 1;
}

.app__link:active {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
}

.app__link:focus-visible {
  outline: 2px solid var(--color--main);
  outline-offset: 3px;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  opacity: 1;
}

/* Стили для неактивных ссылок */
.app__link.disabled {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.app__link.disabled::after {
  content: "Скоро";
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.app__link.disabled:hover {
  transform: none !important;
}

.app__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========= Footer ========= */

.footer {
  background-color: var(--color-main);
  color: var(--color-primary);
}

.footer__container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr) [12];
  grid-template-columns: repeat(12, 1fr);
  padding: 0 20px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 70px 85px;
}

.footer-link {
  -ms-grid-column: 1;
  -ms-grid-column-span: 3;
  grid-column: 1 / 4;
}

.footer-link img {
  width: 200px;
  height: auto;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.footer-link:hover img {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
}

.contact {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 7px;
  -ms-grid-column: 4;
  -ms-grid-column-span: 6;
  grid-column: 4 / 10;
}

.contact__link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  color: var(--color--accent);
  text-decoration: none;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
  font-size: 16px;
}

.contact__link:hover {
  color: #ffc600;
  text-decoration: underline;
}

.contact__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.reg {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 7px;
}
