:root {
  --black: #1f1f1f;
  --secondary: #3d3d3d;
  --white: #fafafa;
  --accent: #1582ce;
  --gray: #fafafa;
  --section-bg: #fcfcfc;
  --footer-bg: #0e69aa;
}

@font-face {
  font-family: "Lobster-Regular_bt";
  font-style: normal;
  font-weight: 400;
  src: url("/template/fonts/Lobster-Regular.woff2") format("woff2");
}

.hero__title {
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: clamp(32px, 4vw, 44px);
  text-align: center;
  opacity: 0.9;
  font-family: "Lobster-Regular_bt", cursive;
}

.hero__subtitle {
  color: var(--white);
  font-size: clamp(16px, 4vw, 20px);
  text-align: center;
  opacity: 0.6;
}

.section__title {
  margin-bottom: 2rem;
  color: var(--accent);
  font-size: 2rem;
  font-family: "Lobster-Regular_bt", cursive;
}

/* ========== body ========== */

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.lock {
  overflow: hidden;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
}

/* ========== hero header ========== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

header {
  position: absolute;
  left: 50%;
  z-index: 1300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  padding: 1.5rem;
  transform: translateX(-50%);
  border-bottom: 2px solid var(--white);
  mix-blend-mode: difference;
}

.header__logo {
  display: block;
}

.header__logo img {
  display: block;
  width: auto;
  height: 56px;
}

.header__nav.open {
  right: 0;
}

.header__list {
  display: flex;
  gap: 1.5rem;
}

.header__link {
  color: var(--white);
}

.header__link:hover {
  outline: 2px solid;
  outline-offset: 8px;
  border-radius: 2px;
}

.hero__content {
  position: absolute;
  bottom: 22%;
  left: 18%;
  z-index: 1;
}

.hero__banner {
  position: relative;
  top: 0;
  z-index: 0;
  width: 100dvw;
  height: 100dvh;
  object-fit: cover;
}

/* ========== burger ========== */
.header__burger {
  z-index: 1300;
  display: none;
  flex-direction: column;
  width: 25px;
  height: 20px;
  background-color: transparent;
  cursor: pointer;
}

.header__burger span {
  width: 100%;
  height: 3px;
  margin-bottom: 4px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header__burger span:last-child {
  margin-bottom: 0;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== section beginner ========== */

.beginner__row {
  display: flex;
  gap: 2rem;
  color: var(--secondary);
}

.beginner__row-margin {
  margin-bottom: 5.25rem;
}

.beginner__item {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.beginner__item--lg {
  max-width: 856px;
}

.beginner__item--lg p {
  width: 96%;
}

.beginner__wrapper {
  margin: 3% auto;
}

.beginner__item--sm {
  max-width: 380px;
}

.beginner__item--sm p {
  width: 96%;
}

@media (prefers-reduced-motion: no-preference) {
  .beginner img {
    opacity: 0;
    transform: translateY(200px);
    scale: 0;
    animation: fade-in linear forwards;
    animation-timeline: view();
    animation-range-start: cover;
    animation-range-end: 40%;
  }

  @keyframes fade-in {
    to {
      opacity: 1;
      transform: translateY(0);
      scale: 1;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .beginner p {
    transform: translateY(1000px);
    animation: fade-out linear forwards;
    animation-timeline: view();
    animation-range-start: cover;
    animation-range-end: 40%;
  }

  @keyframes fade-out {
    0% {
      opacity: 0;
      -webkit-transform: translateY(200px);
      transform: translateY(200px);
    }

    100% {
      opacity: 1;
      -webkit-transform: translateY(0);
      transform: translateY(0);
    }
  }
}

/* ========== section gallery ========== */

.owl-carousel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height:620px;
}

.owl-carousel picture,
.owl-carousel img {
  display: block;
  width: auto;
  height: 616px;
  max-width: 100%;
  max-height: 100%;
}

.owl-carousel .owl-item > div {
  width: 100%;
  height: 560px;
  overflow: hidden;
  box-sizing: border-box;
}

.owl-carousel .owl-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owl-prev,
.owl-next {
  position: absolute;
  right: 1rem;
  bottom: 2rem;
  z-index: 2;
}

.owl-prev {
  right: 4rem;
}

.owl-prev span,
.owl-next span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding-bottom: 1.1rem;
  color: #ffffff;
  font-size: 64px;
  background-color: #00000040;
  border-radius: 4px;
}

/* ========== section types-fish ========== */

.types-fish__description {
  max-width: 856px;
  margin-bottom: 7rem;
  color: var(--secondary);
}

.types-fish__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.types-fish__card {
  position: relative;
  min-height: 286px;
  padding: 24px;
  background-color: var(--white);
  transition: transform 0.6s ease;
}

.types-fish__card:hover {
  transform: skew(-1deg, 1deg);
}

.types-fish__image {
  position: absolute;
  top: -4rem;
  left: 50%;
  display: block;
  width: 98%;
  height: auto;
  max-width: 320px;
  transform: translateX(-50%);
}

.types-fish__title {
  margin-top: 72px;
  margin-bottom: 1rem;
  color: var(--black);
  font-size: 20px;
  font-weight: 600;
}

.types-fish__subtitle {
  color: var(--secondary);
}

/* ========== section aquarium selection ========== */

.aquarium,
.gallery {
  background-color: var(--section-bg);
}

.aquarium__content {
  display: flex;
  gap: 24px;
  margin-bottom: 4rem;
}

.aquarium__title {
  flex: 1 1 auto;
}

.aquarium__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
}

.aquarium__row {
  display: flex;
  gap: 24px;
}

.aquarium__item {
  flex: 1;
  min-width: 360px;
}

.aquarium__item--full {
  width: 64%;
}

.aquarium__item-title {
  color: var(--black);
  font-size: 20px;
  font-weight: 600;
}

.aquarium__item-text {
  color: var(--secondary);
}

@media (prefers-reduced-motion: no-preference) {
  .aquarium__item {
    opacity: 0;
    transform: translateY(0);
    scale: 0;
    animation: slide linear forwards;
    animation-timeline: view();
    animation-range-start: cover;
    animation-range-end: 36%;
  }

  @keyframes slide {
    to {
      opacity: 1;
      transform: translateY(600);
      scale: 1;
    }
  }
}

/* ========== section faq ========== */

.faq__row {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.faq__sticky {
  position: sticky;
  top: 80px;
  height: 100%;
  max-width: 480px;
}

.faq__details {
  width: 500px;
  margin-bottom: 0.5rem;
  padding: 1rem 1rem 1rem 0;
  color: var(--black);
  font-weight: 600;
  transition: color 0.3s ease;
  text-wrap: balance;
}

.faq__details:hover {
  color: var(--accent);
}

.faq__details p {
  margin-top: 1rem;
  padding-left: 1rem;
  color: var(--secondary);
  font-weight: 400;
  border-left: 3px solid var(--accent);
}

.faq__images {
  width: 840px;
}

.faq__details summary {
  position: relative;
  padding-right: 60px;
  list-style: none;
}

.faq__details summary::-webkit-details-marker {
  display: none;
}

.faq__details summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  padding-left: 10px;
  font-size: 48px;
  content: "⁺";
  transform: translateY(-36%);
}

.faq__details[open] summary::after {
  content: "⁻";
}

/* ========== footer ========== */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: fit-content;
  padding: 1rem 2rem;
  background-color: var(--footer-bg);
}

.footer__copyright {
  color: var(--white);
}

/* ========== media ========== */

/* ========== 1140 ========== */

@media (max-width: 1140px) {
  .beginner__row-margin {
    margin-bottom: 1rem;
  }

  .beginner__item--lg,
  .beginner__item--sm {
    flex: 1 1 0;
  }

  .beginner__item--lg p {
    width: 100%;
  }

  .beginner__item--sm p {
    width: 320px;
  }

  .types-fish__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .aquarium__item {
    min-width: 300px;
  }
}

/* ========== 960 ========== */

@media (max-width: 960px) {
  .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
  }

  .faq__sticky .section__title {
    text-align: center;
  }

  .faq__sticky,
  .faq__details {
    width: 86%;
    max-width: none;
    margin: auto;
  }

  .faq__images {
    display: none;
  }

  .aquarium__content {
    flex-direction: column;
  }

  .aquarium__item--full {
    width: 100%;
  }

  .aquarium__row {
    flex-direction: column;
  }
}

/* ========== 720 ========== */

@media (max-width: 720px) {
  .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem;
  }

  .beginner__item--lg p {
    width: 100%;
  }

  .beginner__wrapper {
    margin: 0% auto;
  }

  .beginner__item--sm {
    align-items: center;
    max-width: 100%;
  }

  .beginner__item--sm p {
    width: 100%;
  }

  .beginner__row {
    flex-direction: column;
    margin-bottom: 0;
  }

  .beginner__row-margin {
    margin-bottom: 2rem;
  }

  header {
    padding: 0.8rem 1.5rem;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 1200;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background-color: var(--black);
    mix-blend-mode: color;
    transition: right 0.6s ease;
  }

  .header__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 130px;
  }

  .header__burger {
    display: flex;
  }

  .hero__content {
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
  }

  .faq__sticky,
  .faq__details {
    width: 100%;
    max-width: none;
    margin: auto;
  }

  .types-fish__row {
    grid-template-columns: repeat(1, 1fr);
  }

  .types-fish__card {
    height: fit-content;
    min-height: none;
  }

  .footer {
    flex-direction: column;
  }

  .footer__logo {
    margin-bottom: 1rem;
  }

  .owl-carousel .owl-item > div {
    height: 360px;
  }
  
  .owl-carousel {
    max-height: 320px;
  }

  .owl-carousel .owl-item img {
    object-fit: cover;
    display: block;
    width: 100%;
    height: 320px;
  }
}


