/* Reset CSS */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  --index: calc(1vw + 1vh);
  --transition: cubic-bezier(0.1, 0.7, 0, 1);
  --gap-base: 0.2rem;
  --shift: 0px; /* сдвиг контейнера при открытии крайних */
}

/* fonts */

@font-face {
  font-family: "Sonny Gothic";
  src:
    local("Sonny Gothic Black"),
    url("fonts/Fontspring-DEMO-sonnygothic-black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sonny Gothic";
  src:
    local("Sonny Gothic Bold"),
    url("fonts/Fontspring-DEMO-sonnygothic-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

nav {
  font-family: "Sonny Gothic", sans-serif;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    rgba(0, 178, 223, 0.55) 0%,
    rgba(0, 40, 255, 0.55) 100%
  );
  z-index: 5;
}

.nav-link {
  color: white;
}

.navbar-expand-lg {
  padding: 15px 0;
}

.navbar-brand {
  color: white;
}

/* section yudiz*/

.text-animation {
  min-height: 100vh;
  float: left;
  width: 50%;
}
.text-wrapper {
  position: relative;
}

.text-wrapper h2 {
  font-family: "Sonny Gothic", sans-serif;
  font-weight: 900;
  z-index: 4;
  color: #fff;
  font-size: 56px;
  position: absolute;
  top: 100px;
}

.text-wrapper p {
  font-family: "Sonny Gothic", sans-serif;
  font-weight: 700;
  z-index: 4;
  color: #fff;
  font-size: 25px;
  position: relative;
  top: 350px;
}

.text-wrapper h2:nth-child(1) {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}

.text-wrapper h2:nth-child(2) {
  color: #fff;
  animation: wave 4s ease-in-out infinite;
}

.div-hero {
  position: relative;
  z-index: 4;
  float: right;
  width: 50%;
  height: 100vh;
}

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

svg {
  max-width: 70vw;
  max-height: 80vh;
  aspect-ratio: 1/1;
  #blobClip {
    transform-origin: center;
    transition: ease-out transform 0.4s;
  }
  &:hover {
    #blobClip {
      transform: scale(1.15) translate(0%, 0%);
    }
    .text-content {
      fill: white;
      mix-blend-mode: overlay;
    }
  }
}

@keyframes wave {
  /* start point */
  0%,
  100% {
    clip-path: polygon(
      0% 46%,
      17% 45%,
      34% 50%,
      56% 61%,
      69% 62%,
      86% 60%,
      100% 51%,
      100% 100%,
      0% 100%
    );
  }
  /* Mid point */
  50% {
    clip-path: polygon(
      0% 59%,
      16% 64%,
      33% 65%,
      52% 61%,
      70% 52%,
      85% 47%,
      100% 48%,
      100% 100%,
      0% 100%
    );
  }
}

/* ********************* Image Waves ************************ */
.waveDiv {
  position: absolute;
  overflow: hidden;
  margin: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.wave-content-wrapper {
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  bottom: -1px;
  background-image: url(img/banderas-filto.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.first-wave {
  z-index: 3;
  opacity: 0.5;
}
.second-wave {
  z-index: 2;
  opacity: 0.75;
}
.third-wave {
  z-index: 1;
}
.wave-image {
  width: 200%;
  height: 100%;
  position: absolute;
  left: 0;
  background-repeat: repeat no-repeat;
  background-position: 0 bottom;
  transform-origin: center bottom;
}
.first-image {
  background-size: 50% 100px;
}
.animation-wave .first-image {
  animation: move-wave 3s;
  -webkit-animation: move-wave 3s;
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
}
.second-image {
  background-size: 50% 120px;
}
.animation-wave .second-image {
  animation: waves 10s linear infinite;
}
.third-image {
  background-size: 50% 140px;
}
.animation-wave .third-image {
  animation: waves 15s linear infinite;
}

@keyframes waves {
  0% {
    transform: translateX(0) scaleY(1);
  }
  50% {
    transform: translateX(-25%) scaleY(0.55);
  }
  100% {
    transform: translateX(-50%) scaleY(1);
  }
}

#nosotros {
  scroll-margin-top: -95vh;
}

.content-nosotros {
  max-width: 1100px;
  margin: 70px auto;
  padding: 0 10px;

  display: grid;
  grid-template-columns: 1fr 1fr; /* texto más ancho que imagen */
  gap: 40px;
  align-items: start;
  overflow: hidden;
}

.nosotros-title {
  font-family: "Sonny Gothic", sans-serif;
  font-weight: 900;
  color: #000;
  font-size: 48px;
  text-align: center;
}

.nosotros-text {
  font-family: "Inria Sans", sans-serif;
  color: #000;
  font-size: 18px;
  line-height: 1.6;
  text-align: justify;
  overflow: hidden;
  align-self: center;
}

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

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

.list-group-item {
  cursor: pointer;
  font-family: "Inria Sans", sans-serif;
  color: #000;
}

[data-toggle="collapse"] {
  cursor: pointer;
}
[data-toggle="collapse"][aria-expanded="true"] .fa-chevron-right:before {
  content: "\f078";
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  font-family: "Sonny Gothic", sans-serif;
  font-weight: 700;
  --bs-btn-padding-y: 0.45rem;
  --bs-btn-padding-x: 6rem;
  --bs-btn-font-size: 2rem;
  border-radius: 100px;
  margin: 20px auto 50px auto;
}

#ROVerto {
  font-family: "Sonny Gothic", sans-serif;
}

.rov-title {
  display: table;
  margin: 0 auto;
  font-family: "Sonny Gothic", sans-serif;
  font-weight: 900;
  font-size: 5em;
  background: linear-gradient(90deg, #00b2df 0%, #006179 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 200px;
}

.content-roverto {
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr; /* texto más ancho que imagen */
  gap: 40px;
  align-items: start;
  overflow: visible;
}

.rov-text {
  font-family: "Inria Sans", sans-serif;
  color: #000;
  font-size: 20px;
  line-height: 1.6;
  text-align: justify;
  overflow: visible;
  margin-left: auto;
  max-width: 800px;
}
.rov-img {
  height: 80vh;
  width: auto;
  justify-self: end;
}

.rov-img img {
  height: auto;
  object-fit: cover;
  margin-top: -150px;
}

/*ROV menu*/

.wrapper {
  font-family: "Inria Sans", sans-serif;
  margin: 50px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.items {
  display: flex;
  gap: var(--gap, var(--gap-base));
  perspective: calc(var(--index) * 50);
  perspective-origin: 50% 50%;
  transform: translateX(var(--shift));
  transform-style: preserve-3d;
  will-change: transform;
  overflow: visible;
  transition: transform 0.6s var(--transition);
  /* расширяем hit-area у краёв, чтобы указатель не «выпадал» */
}

.item .text-open {
  display: none;
}

.text-close {
  color: #fff;
  text-align: center;
  align-content: center;
  height: 100%;
}

.items.hovering {
  --gap: calc(var(--gap-base) / 2);
}

.item {
  position: relative;
  width: calc(var(--index) * 5);
  height: calc(var(--index) * 15);
  background: linear-gradient(90deg, #00b2df 0%, #006179 100%) center/cover
    no-repeat;
  cursor: pointer;
  transition:
    transform 1.25s var(--transition),
    width 0.5s var(--transition);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, width;
  outline: none;
  border-radius: 100px;
  flex: 0 0 auto;
  user-select: none;
}

/* Hover layout */
.item.is-hover-main {
  transform: translateZ(calc(var(--index) * 10));
  z-index: 10;
}
.item.is-right-1 {
  transform: translateZ(calc(var(--index) * 8.5)) rotateY(35deg);
  z-index: 9;
}
.item.is-right-2 {
  transform: translateZ(calc(var(--index) * 5.6)) rotateY(40deg);
  z-index: 8;
}
.item.is-right-3 {
  transform: translateZ(calc(var(--index) * 2.5)) rotateY(30deg);
  z-index: 7;
}
.item.is-right-4 {
  transform: translateZ(calc(var(--index) * 0.6)) rotateY(15deg);
  z-index: 6;
}

.item.is-left-1 {
  transform: translateZ(calc(var(--index) * 8.5)) rotateY(-35deg);
  z-index: 9;
}
.item.is-left-2 {
  transform: translateZ(calc(var(--index) * 5.6)) rotateY(-40deg);
  z-index: 8;
}
.item.is-left-3 {
  transform: translateZ(calc(var(--index) * 2.5)) rotateY(-30deg);
  z-index: 7;
}
.item.is-left-4 {
  transform: translateZ(calc(var(--index) * 0.6)) rotateY(-15deg);
  z-index: 6;
}

/* Open state */
.items.is-open .item {
  transition:
    transform 0.8s var(--transition),
    width 0.6s var(--transition);
}
.item.is-open {
  width: 20vw;
  z-index: 100;
  transform: translateZ(calc(var(--index) * 10));
}

.item.is-open .text-open {
  display: block;
  color: #fff;
  text-align: center;
  align-content: center;
  height: 100%;
}

.item.is-open .text-close {
  display: none;
}

#materov {
  margin: 30px 0;
  text-align: center;
}

.mate-img {
  margin: 0 auto;
}

.materov-contain {
  font-family: "Inria Sans", sans-serif;
  max-width: 1100px;
  margin: 70px auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 1fr 1fr; /* texto más ancho que imagen */
  gap: 40px;
  align-items: start;
  overflow: hidden;
}

.materov-icon img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel {
  width: 80%;
  margin: 0 auto;
}

.carousel-inner {
  align-content: center;
  padding: 0 10%;
}

.carousel-control-prev,
.carousel-control-next {
  filter: invert(1);
}

.impacto-title {
  font-family: "Sonny Gothic", sans-serif;
  font-weight: 900;
  color: #000;
  font-size: 48px;
  text-align: center;
  margin-bottom: 30px;
}

.card {
  font-family: "Inria Sans", sans-serif;
  font-size: 18px;
  overflow: scroll;
  height: 80vh;
}

.card-title {
  font-family: "Sonny Gothic", sans-serif;
  font-weight: 900;
}

.card-text {
  overflow: scroll;
}

.contactanos-title {
  font-family: "Sonny Gothic", sans-serif;
  font-weight: 900;
  color: #000;
  font-size: 48px;
  text-align: center;
  margin: 30px 0;
}

.contacto-content {
  margin: 0 auto;
  max-width: 1200px;
  font-family: "Sonny Gothic", sans-serif;
  display: grid;
  grid-template-columns: 1fr 1fr; /* texto más ancho que imagen */
  gap: 40px;
  align-items: start;
  overflow: hidden;
  align-items: center;
}

#footer {
  display: grid;
  grid-template-rows: 1fr 10rem auto;
  grid-template-areas: "main" "." "footer";
  overflow-x: hidden;
  font-family: "Open Sans", sans-serif;
}

#footer .footer {
  z-index: 1;
  --footer-background: linear-gradient(
    90deg,
    rgba(0, 178, 223, 1) 0%,
    rgba(0, 40, 255, 1) 100%
  );
  display: grid;
  position: relative;
  grid-area: footer;
  min-height: 12rem;
}

#footer .footer .bubbles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1rem;
  background: var(--footer-background);
  filter: url("#blob");
}

#footer .footer .bubbles .bubble {
  position: absolute;
  left: var(--position, 50%);
  background: var(--footer-background);
  border-radius: 100%;
  animation:
    bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s),
    bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
  transform: translate(-50%, 100%);
}

#footer .footer .content {
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 4rem;
  padding: 2rem;
  background: var(--footer-background);
}

#footer .footer .content a,
#footer .footer .content p {
  color: #f5f7fa;
  text-decoration: none;
}

#footer .footer .content b {
  color: white;
}

#footer .footer .content p {
  margin: 0;
  font-size: 0.75rem;
}

#footer .footer .content > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#footer .footer .content > div > div {
  margin: 0.25rem 0;
}

#footer .footer .content > div > div > * {
  margin-right: 0.5rem;
}

#footer .footer .content > div .image {
  align-self: center;
  width: 4rem;
  height: 4rem;
  margin: 0.25rem 0;
  background-size: cover;
  background-position: center;
}

.mb-3{
  font-family: "Inria Sans", sans-serif;
}

@keyframes bubble-size {
  0%,
  75% {
    width: var(--size, 4rem);
    height: var(--size, 4rem);
  }

  100% {
    width: 0rem;
    height: 0rem;
  }
}

@keyframes bubble-move {
  0% {
    bottom: -4rem;
  }

  100% {
    bottom: var(--distance, 10rem);
  }
}

@media (max-width: 1400px) {
  /* Aquí va el CSS que cambia */

  .text-wrapper h2 {
    font-size: 45px;
  }

  .text-wrapper p {
    font-size: 18px;
  }
}

@media (max-width: 1000px) {
  /* Aquí va el CSS que cambia */

  .text-wrapper h2 {
    font-size: 35px;
  }

  .text-wrapper p {
    font-size: 16px;
  }

  #nosotros,#ROVerto,#materov,#contacto, #impacto {
    padding: 0 25px;
  }

  #ROVerto {
    overflow: hidden;
  }

  .item.is-open {
  width: 60vw;
}

}

@media (max-width: 768px) {
  /* Aquí va el CSS que cambia */

  .div-hero {
    width: 100%;
    top: 80px;
    text-align: center;
    float: none;
    height: auto;
    position: relative;
  }

  .text-animation {
    width: 100%;
    float: none;
    text-align: center;
    height: auto;
    min-height: 100px;
  }

  .text-wrapper {
    position: relative
  }

  .text-wrapper p {
    position: relative;
    top: 150px;
  }

  .text-wrapper h2 {
    position: absolute;
    top: 30px;
    left: 14%;
  }

  .text-wrapper h2:nth-child(2) {
    position: absolute;
  }

  #nosotros {
    margin-top: 35vh;
  }

  .content-nosotros {
    grid-template-columns: 1fr; /* una columna para texto e imagen */
    text-align: center;
  }

  .content-roverto {
    grid-template-columns: 1fr; /* una columna para texto e imagen */
    text-align: center;
  }

  .rov-text {
    order: 2;
    margin-top: 50px;
  }

  .rov-img {
    order: 1;
  }

  .contacto-content {
    grid-template-columns: 1fr; /* una columna para texto e imagen */
    text-align: center;
  }

  .form-contacto {
    order: 2;
    margin-top: 10px;
  }

  .img-contacto {
    order: 1;
  }

  .item.is-open {
  font-size: 14px;
}

#ROVerto {
  margin: 0 auto;
}


}

@media (max-width: 575px) {

  .text-wrapper h2 {
    font-size: 28px;
  }

  .text-wrapper h2 {
    left: 10%;
  }

  #nosotros {
    margin-top: 40vh;
  }

   .text-wrapper p {
    font-size: 14px;
  }

  .div-hero {
    top: 120px;
  }

  .contactanos-title {
    font-size: 28px;
  }

  .d-flex {
    padding: 0 20px;
  }

  .text-close {
    font-size: 13px;
  }

  #ROVerto {
    overflow: visible;
  }

}