:root {
  --font-text: "Montserrat", sans-serif;
  --font-title: "Cormorant Infant", serif;
}

* {
  padding: 0;
  margin: 0;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: #04320f;
}

::-webkit-scrollbar-thumb {
  background: #08581b;
  border-radius: 5px;
}

html {
  overflow-x: hidden;
}

body {
  background: #14150d;
  color: #e5e8d4;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  font-size: inherit;
}

a {
  text-decoration: none;
  color: inherit;
  font-size: inherit;
  transition: all 0.3s ease;
}

a:hover {
  color: #0cc6b0;
}

svg,
path,
circle,
rect {
  transition: all 0.3s ease;
}

.hidden {
  display: none;
}

.container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

.header {
  position: relative;
  z-index: 2;
  background: #14150d;
}

.header__row {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__owner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__owner p {
  font-weight: 300;
  font-size: 18px;
  opacity: 0.7;
}

.header__owner-line {
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    #e5e8d4 26.5%,
    #e5e8d4 61.5%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.7;
  border-radius: 1px;
  width: 1px;
  height: 26px;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__contacts-phone {
  font-weight: 300;
  font-size: 18px;
  opacity: 0.7;
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__socials a:hover rect {
  filter: opacity(0);
}

.banner {
  height: 900px;
  background-image: url(./img/banner-bg.png);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 30px;
  position: relative;
}

.banner__litera {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 50px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  flex: auto;
}

.banner__litera:before {
  content: "";
  border-radius: 2px;
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    #e5e8d4 26.5%,
    #e5e8d4 61.5%,
    rgba(255, 255, 255, 0) 100%
  );
}

.banner__litera:after {
  content: "";
  border-radius: 2px;
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    #e5e8d4 26.5%,
    #e5e8d4 61.5%,
    rgba(255, 255, 255, 0) 100%
  );
}

.banner__plant {
  position: absolute;
  top: -300px;
  right: -50px;
}

.banner__plant-mob {
  display: none;
}

.banner__pets {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 75px;
}

.banner__pets-title {
  position: relative;
  margin-top: -300px;
}

.banner__pets-title h1 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 78px;
  line-height: 90px;
  text-transform: uppercase;
  text-align: center;
  background: #0cc6b0;
  background: linear-gradient(to right, #0cc6b0 0%, #1a8c15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  margin: 10px 0;
}

.banner__pets-top {
  font-family: var(--font-title);
  text-shadow: 1px 1px 2px 0 rgba(13, 13, 9, 0.9);
  font-weight: 500;
  font-size: 24px;
  line-height: 34px;
  text-transform: uppercase;
}

.banner__pets-bottom {
  text-shadow: 1px 1px 2px 0 rgba(13, 13, 9, 0.9);
  opacity: 0.7;
  letter-spacing: 1.13em;
  text-transform: uppercase;
}

.representatives {
  padding: 110px 0;
}

.heroes__row {
  display: flex;
  gap: 30px;
}

.heroes__item {
  position: relative;
  flex: 1;
}

.heroes__item-img {
  position: relative;
  transition: all 0.3s ease;
}

.heroes__item:hover .heroes__item-img {
  opacity: 20%;
}

.heroes__item-img::before {
  content: "";
  background-image: url(./img/light.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 800px;
  height: 852px;
  position: absolute;
  left: 50%;
  top: -200px;
  transform: translateX(-50%);
}

.heroes__item-img img {
  position: relative;
  z-index: 2;
}

.heroes__item-desc {
  position: relative;
  margin-top: -300px;
  transition: all 0.3s ease;
}

.heroes__item:hover .heroes__item-desc {
  opacity: 20%;
}

.heroes__item-name h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 30px;
  line-height: 40px;
  text-transform: uppercase;
  background: #0cc6b0;
  background: linear-gradient(to right, #0cc6b0 0%, #1a8c15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.heroes__item-advantages {
  margin-top: 50px;
  font-size: 18px;
  line-height: 28px;
  text-align: justify;
  text-transform: uppercase;
  font-weight: 300;
}

.heroes__item-text {
  font-weight: 200;
  text-align: justify;
  margin-top: 20px;
}

.heroes__item-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 0.5px solid #fff;
  border-radius: 5px;
  max-width: 375px;
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -48%);
  z-index: 5;
  opacity: 0;
  transition: all 0.3s ease;
}

.heroes__item-link:hover {
  background: #14a75c;
  color: #fff;
}

.heroes__item:hover .heroes__item-link {
  opacity: 1;
}

.footer {
  background: #14150d,
    linear-gradient(360deg, rgba(9, 9, 6, 0.2) 0%, rgba(9, 9, 6, 0.2) 100%);
}

.footer__row {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright,
.footer__dev {
  opacity: 0.7;
  font-weight: 300;
  font-size: 18px;
}

.footer__dev a {
  color: #14a75c;
  font-weight: 500;
  text-decoration: underline;
}

.footer__dev a:hover {
  color: #00ff7d;
}

.header-other .header__row {
  position: relative;
}

.header-other .header__row::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    #e5e8d4 26.5%,
    #e5e8d4 61.5%,
    rgba(255, 255, 255, 0) 100%
  );
}

.back {
  margin: 50px 0;
  position: relative;
  z-index: 2;
}

.back a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  opacity: 0.4;
  font-weight: 200;
}

.back a:hover path {
  fill: #0cc6b0;
}

.hero__row {
  display: flex;
  gap: 30px;
}

.hero__img {
  flex: 1;
  position: relative;
}

.hero__img img {
  position: relative;
  z-index: 2;
}

.hero__img::before {
  content: "";
  background-image: url(./img/light.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 800px;
  height: 852px;
  position: absolute;
  left: 50%;
  top: -200px;
  transform: translateX(-50%);
}

.hero__desc {
  flex: 1;
}

.hero__name h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 30px;
  line-height: 40px;
  text-transform: uppercase;
  background: #0cc6b0;
  background: linear-gradient(to right, #0cc6b0 0%, #1a8c15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.hero__advantages {
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 28px;
  text-align: justify;
  text-transform: uppercase;
  font-weight: 300;
}

.hero__text {
  font-weight: 200;
  text-align: justify;
}

/* РОДОСЛОВНАЯ */
.pedigree {
  padding-bottom: 150px;
  position: relative;
  margin-top: -100px;
}

.pedigree__row {
  display: flex;
  gap: 30px;
}

.pedigree__item {
  flex: 1;
}

.pedigree__item-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.pedigree__item-col-block {
  max-width: 236px;
  width: 100%;
}

.open-desc {
  cursor: pointer;
  transition: all 0.3s ease;
}

.open-desc:hover {
  opacity: 0.5;
}

.pedigree__item-col-block-img {
  position: relative;
  height: 236px;
  overflow: hidden;
  border-radius: 5px;
}

.pedigree__item-col-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pedigree__item-col-block-img span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 0 15px;
  height: 26px;
  border-radius: 3px;
  font-size: 15px;
  line-height: 16px;
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.pedigree__item-col-block-img .male {
  background: #08581b;
}

.pedigree__item-col-block-img .female {
  background: #189937;
}

.pedigree__item-col-block-name {
  margin-top: 15px;
  font-weight: 300;
  font-size: 18px;
  text-transform: uppercase;
}

.pedigree__item-col-row {
  display: flex;
  gap: 30px;
}

.sub-parents {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pedigree__item-col-other {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pedigree__item-col-other img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pedigree__item-col-other-block {
  width: 103px;
  height: 103px;
  overflow: hidden;
  border-radius: 5px;
}

.pedigree__desc {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translateX(-50%);
  background: #22271c;
  border-radius: 5px;
  max-width: 510px;
  width: 100%;
  box-sizing: border-box;
  padding: 30px;
  z-index: 88;
  max-height: 239px;
  overflow-y: auto;
}

.pedigree__desc.show {
  opacity: 1;
}

.pedigree__name h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  text-transform: uppercase;
}

.pedigree__advantages {
  margin-top: 25px;
  font-weight: 300;
  font-size: 16px;
  line-height: 22px;
  text-transform: uppercase;
  text-align: justify;
  margin-bottom: 15px;
}

.pedigree__text {
  font-weight: 200;
  font-size: 14px;
  line-height: 20px;
  text-align: justify;
}

.pedigree__desc button {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 1300px) {
  .container {
    padding: 0 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 1024px) {
  .banner__pets {
    margin-top: 0;
  }

  .banner__plant {
    top: -220px;
  }

  .heroes__row {
    flex-direction: column;
    gap: 50px;
  }

  .heroes__item-img {
    text-align: center;
  }

  .heroes__item:first-child .heroes__item-img img {
    transform: scaleX(-1);
  }

  .heroes__item-link {
    opacity: 1;
    position: relative;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    margin: 0 auto;
    margin-top: 50px;
  }

  .heroes__item:hover .heroes__item-img {
    opacity: 1;
  }

  .heroes__item:hover .heroes__item-desc {
    opacity: 1;
  }
}

@media (max-width: 834px) {
  .banner__pets-title h1 {
    font-size: 60px;
    line-height: 70px;
  }

  .banner__pets-bottom {
    font-size: 12px;
  }

  .banner {
    padding-bottom: 70px;
    height: auto;
  }

  .banner__pets-title {
    margin-top: -150px;
  }

  .banner__plant {
    top: -140px;
  }

  .footer__row {
    gap: 10px;
    padding: 20px 0;
    flex-direction: column;
    height: auto;
  }

  .representatives {
    padding: 70px 0;
  }

  .hero__row {
    flex-direction: column;
  }

  .hero__img {
    text-align: center;
  }

  .hero__desc {
    position: relative;
    margin-top: -350px;
    z-index: 2;
  }

  .pedigree {
    padding-top: 50px;
    padding-bottom: 70px;
    margin-top: 0;
  }

  .pedigree__row {
    flex-direction: column;
  }

  .pedigree__item-row {
    flex-direction: row-reverse;
    justify-content: center;
  }

  .pedigree__row .pedigree__item:last-child .pedigree__item-row {
        flex-direction: row;
  }

  .pedigree__desc {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    position: fixed;
  }

  .pedigree__name h3 {
    font-size: 12px;
    line-height: 24px;
  }

  .pedigree__advantages {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 24px;
  }

  .pedigree__text {
    font-size: 10px;
    line-height: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 10px;
    line-height: 14px;
  }

  .header__row {
    height: 45px;
  }

  .header__owner {
    gap: 5px;
  }

  .header__owner-line {
    height: 15px;
  }

  .header__owner p {
    font-size: 10px;
  }

  .header__contacts {
    gap: 10px;
  }

  .header__contacts-phone {
    font-size: 10px;
  }

  .header__socials {
    gap: 5px;
  }

  .header__socials a svg {
    width: 16px;
    height: auto;
  }

  .banner {
    padding-bottom: 50px;
  }

  .banner__litera {
    gap: 20px;
  }

  .banner__pets-top {
    font-size: 12px;
    line-height: 22px;
  }

  .banner__pets-title {
    margin-top: -80px;
  }

  .banner__pets-title h1 {
    font-size: 31px;
    line-height: 40px;
    margin: 0;
  }

  .banner__pets-bottom {
    font-size: 8px;
    line-height: 16px;
    letter-spacing: 0.75em;
  }

  .banner__plant {
    top: -90px;
    right: -120px;
    transform: rotate(-10deg);
  }

  .banner__plant-desktop {
    display: none;
  }

  .banner__plant-mob {
    display: block;
  }

  .heroes__item-desc {
    margin-top: -140px;
  }

  .heroes__item-img::before {
    width: 600px;
    height: 700px;
  }

  .heroes__item-name h3 {
    font-size: 16px;
    line-height: 20px;
  }

  .heroes__item-advantages {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 20px;
  }

  .heroes__item-link {
    margin-top: 20px;
    height: 40px;
  }

  .footer__copyright,
  .footer__dev {
    font-size: 10px;
    line-height: 15px;
  }

  .hero__name h3 {
    font-size: 16px;
    line-height: 24px;
  }

  .hero__advantages {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 20px;
  }

  .hero__desc {
    margin-top: -200px;
  }

  .hero__img::before {
    width: 600px;
    height: 700px;
  }

  .pedigree__row {
    gap: 10px;
  }

  .pedigree__item-row {
    gap: 10px;
  }

  .pedigree__item-col-row {
    gap: 10px;
    flex-direction: row-reverse;
  }

  .pedigree__item-col-block-name {
    display: none;
  }

  .parent > .pedigree__item-col-block > .pedigree__item-col-block-img {
    height: 168px;
  }

  .pedigree__item-col-block-img {
    height: 108px;
    border-radius: 3px;
  }

  .pedigree__item-col-other {
    gap: 10px;
  }

  .pedigree__item-col-other-block {
    width: 49px;
    height: 49px;
    border-radius: 3px;
  }

  .sub-parents {
    gap: 10px;
  }

  .pedigree__item-col-block-img span {
    font-size: 8px;
    list-style: 8px;
    padding: 0 9px;
    height: 14px;
    left: 7px;
    bottom: 7px;
  }

  .pedigree__row .pedigree__item:last-child .pedigree__item-col-row {
    flex-direction: row;
  }

  .pedigree__desc {
    padding: 20px;
    max-width: 333px;
  }
}
