* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ВАЖНО: Убираем overflow-x: hidden с html */
html {
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: #68594A;
  background-image:
    linear-gradient(0deg, rgba(255, 241, 227, 0.55), rgba(255, 241, 227, 0.55)),
    url(/static/home/images/background.jpg);
  background-size: cover;
  height: 100%;
  background-attachment: fixed;
  overflow-x: hidden; /* Оставляем только на body */
  width: 100%;
}

/* Navigation Bar */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem 0 !important;
}

nav {
  width: 100%;
}

ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  height: 2.875rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.left-items {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.right-items {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background-color: #FFC358;
  border: 1px solid #68594A;
  border-radius: 50%;
}

.left-items a, .right-items a {
  text-decoration: none;
  border: 1px solid #DDD5CD;
  border-radius: 30px;
  padding: 6px 21px;
  color: #68594A;
  background-color: #FDF7F1;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.left-items a:focus, .right-items a:focus {
  border: 1px solid #68594A;
  border-radius: 30px;
}

.nickname:hover {
  text-decoration: underline;
}

.nickname i {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 4px;
}

nav .nickname {
  display: none;
  position: absolute;
  right: 20px;
  top: 20px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: #68594A;
  font-weight: 600;
  white-space: nowrap;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.image-container .nickname {
  display: block;
  font-family: "Caveat", sans-serif;
  font-size: 18px;
  color: #FDF7F1;
  position: absolute;
  right: 20px;
  top: 20px;
  text-decoration: none;
  white-space: nowrap;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.left-items a:hover, .right-items a:hover {
  background-color: #F7EADD;
  border-color: #68594A;
  box-shadow: 0 2px 8px rgba(104, 89, 74, 0.15);
}

.left-items a.active, .right-items a.active {
  background-color: #FFC358;
  border-color: #68594A;
  box-shadow: 0 2px 8px rgba(255, 195, 88, 0.3);
}

/* Mobile menu trigger */
.mobile-menu-trigger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav--open {
  transform: translateX(0) !important;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 665px;
  grid-template-rows: auto 300px;
  gap: 20px;
}

.col_row1 {
  grid-column: 1;
  grid-row: 1;
}

.col_row2 {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: 20px;
}

.left,
.right {
  flex: 1;
  display: flex;
}

.left img,
.right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.col2 {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 1.5rem;
}

.start_right {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Text and Button*/
.header {
  font-family: "Inter", sans-serif !important;
  font-size: 80px !important;
  color: #68594A;
  font-weight: 700 !important;
  margin-bottom: 0;
  line-height: 1 !important;
}

.subheader {
  font-family: "Caveat", cursive !important;
  font-size: 50px !important;
  color: #EFB348;
  font-weight: 400 !important;
  line-height: 1 !important;
}

.quiz_desc {
  max-width: 488px;
  margin-top: 30px;
  margin-bottom: 40px;
  flex-shrink: 1;
}

.start_bold {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #68594A;
  font-weight: 600;
}

.srart_regular {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #68594A;
  font-weight: 400;
}

.quiz_btn {
  width: 230px;
  padding: 12px;
  background-color: #EFB348;
  color: #68594A;
  border: none;
  border-radius: 20px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 40px;
}

.quiz_btn:hover {
  background-color: #e6a73d;
}

.image-container {
  position: relative;
  display: block;
  height: 100%;
}

.left_text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border: none;
  border-radius: 20px;
  padding: 16px 20px ;
  margin: 20px;
}

.greeting {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #68594A;
}

.greeting_sub {
  margin-top: 6px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #68594A;
}

/* About Cats */
.about_cats_container {
  margin-left: 40px;
  margin-right: 40px;
  height: 700px;
  margin-top: 110px;
  padding: 24px;
  background: #fff;
  border-radius: 20px;
  position: relative;
  overflow: hidden; /* Добавляем для контроля вложенных элементов */
}

.about_cats {
  display: flex;
  gap: 8px;
}

.about_cats_header {
  display: flex;
  flex-wrap: wrap;
  /* flex-direction: column; */
  font-family: "Inter", sans-serif;
  font-size: 80px;
  color: #FFC358;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1;
  gap: .8rem;
}

.fish {
  transform: rotate(-30deg);
  animation: fishSwing 2s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes fishSwing {
  0%, 100% {
    transform: rotate(-40deg);
  }
  50% {
    transform: rotate(-20deg);
  }
}

.about_cats_desc {
  margin-top: 1rem;
  width: 470px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #68594A;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1;
}

.about_cats_btn {
  width: 230px;
  background: #68594A;
  color: #FDF7F1;
  padding: 12px;
  border-radius: 20px;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Photo blocks */
.about_cat_photo1 {
  position: absolute;
  padding: 12px;
  left: 600px;
  top: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 244px;
  height: 285px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 4px rgba(189, 177, 164, 0.25);
  transform: rotate(-15deg);
  z-index: 1;
}

.about_cat_photo1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.about_left {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat_hashtag1 {
  position: absolute;
  left: 750px;
  top: 410px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  background: #FFD2EE;
  padding: 10px 12px;
  border-radius: 20px;
  border: 6px solid #FDF7F1;
  z-index: 2;
}

.hashtag {
  color: #68594A;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #68594A;
  font-weight: 500;
}

.about_cat_photo2 {
  position: absolute;
  padding: 12px;
  left: 1000px;
  top: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 215px;
  height: 250px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 4px rgba(189, 177, 164, 0.25);
  transform: rotate(8deg);
  z-index: 1;
}

.about_cat_photo2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cat_hashtag2 {
  position: absolute;
  left: 860px;
  top: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  background: #D5FFA9;
  padding: 10px 12px;
  border-radius: 20px;
  border: 6px solid #FDF7F1;
  z-index: 2;
}

.about_cat_photo3 {
  position: absolute;
  padding: 12px;
  left: 930px;
  top: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 215px;
  height: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 4px rgba(189, 177, 164, 0.25);
  transform: rotate(3deg);
  z-index: 1;
}

.about_cat_photo3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cat_hashtag3 {
  position: absolute;
  left: 1090px;
  top: 570px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  background: #FFC358;
  padding: 10px 12px;
  border-radius: 20px;
  border: 6px solid #FDF7F1;
  z-index: 2;
}

/* Background elements */
.ribborn1 {
  left: -50px;
  top: 300px;
  position: absolute;
  display: block;
  width: 640px;
}

.ribborn2 {
  left: 600px;
  top: 230px;
  position: absolute;
  display: block;
  width: 450px;
  transform: rotate(-190deg);
}

.ribborn3 {
  left: 850px;
  top: 300px;
  position: absolute;
  display: block;
  width: 400px;
  transform: rotate(-60deg);
}

.ribborn4 {
  left: 1100px;
  top: 400px;
  position: absolute;
  display: block;
  width: 400px;
}

.paws_back_up {
  position: relative;
  top: 80px;
  left: 100px;
}

.paw1 {
  position: absolute;
  top: 90px;
  left: 100px;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-name: pawAnimation3;
}

.paw2 {
  top: 30px;
  position: absolute;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-name: pawAnimation1;
}

.paw3 {
  left: 80px;
  position: absolute;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-name: pawAnimation2;
}

.paws_back_down {
  position: relative;
  top: 200px;
  left: 320px;
}

.paw4 {
  position: absolute;
  top: 90px;
  left: 100px;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-name: pawAnimation5;
}

.paw5 {
  top: 95px;
  position: absolute;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-name: pawAnimation4;
}

.paw6 {
  left: 130px;
  position: absolute;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-name: pawAnimation6;
}

.paws_back_side {
  position: relative;
  top: -200px;
  left: 50px;
}

.paw7 {
  position: absolute;
  right: 250px;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-name: pawAnimation7;
}

.paw8 {
  top: 80px;
  right: 100px;
  position: absolute;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-name: pawAnimation9;
}

.paw9 {
  right: 150px;
  position: absolute;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-name: pawAnimation8;
}

@keyframes pawAnimation1 {
  0% { opacity: 0; transform: rotate(100deg) ; }
  5.55% { opacity: 1; transform: rotate(100deg); }
  11.11% { opacity: 0; transform: rotate(100deg) ; }
  100% { opacity: 0; transform: rotate(100deg) ; }
}

@keyframes pawAnimation2 {
  0%, 11.11% { opacity: 0; transform: rotate(100deg) ; }
  16.66% { opacity: 1; transform: rotate(100deg); }
  22.22% { opacity: 0; transform: rotate(100deg) ; }
  100% { opacity: 0; transform: rotate(100deg) ; }
}

@keyframes pawAnimation3 {
  0%, 22.22% { opacity: 0; transform: rotate(100deg) ; }
  27.77% { opacity: 1; transform: rotate(100deg); }
  33.33% { opacity: 0; transform: rotate(100deg) ; }
  100% { opacity: 0; transform: rotate(100deg) ; }
}

@keyframes pawAnimation4 {
  0%, 33.33% { opacity: 0; transform: rotate(70deg) ; }
  38.88% { opacity: 1; transform: rotate(70deg); }
  44.44% { opacity: 0; transform: rotate(70deg) ; }
  100% { opacity: 0; transform: rotate(70deg) ; }
}

@keyframes pawAnimation5 {
  0%, 44.44% { opacity: 0; transform: rotate(70deg) ; }
  50% { opacity: 1; transform: rotate(70deg); }
  55.55% { opacity: 0; transform: rotate(70deg) ; }
  100% { opacity: 0; transform: rotate(70deg) ; }
}

@keyframes pawAnimation6 {
  0%, 55.55% { opacity: 0; transform: rotate(70deg) ; }
  61.11% { opacity: 1; transform: rotate(70deg); }
  66.66% { opacity: 0; transform: rotate(70deg) ; }
  100% { opacity: 0; transform: rotate(70deg) ; }
}

@keyframes pawAnimation7 {
  0%, 66.66% { opacity: 0; transform: rotate(140deg) ; }
  72.22% { opacity: 1; transform: rotate(140deg); }
  77.77% { opacity: 0; transform: rotate(140deg) ; }
  100% { opacity: 0; transform: rotate(140deg) ; }
}

@keyframes pawAnimation8 {
  0%, 77.77% { opacity: 0; transform: rotate(140deg) ; }
  83.33% { opacity: 1; transform: rotate(140deg); }
  88.88% { opacity: 0; transform: rotate(140deg) ; }
  100% { opacity: 0; transform: rotate(140deg) ; }
}

@keyframes pawAnimation9 {
  0%, 88.88% { opacity: 0; transform: rotate(140deg) ; }
  94.44% { opacity: 1; transform: rotate(140deg); }
  100% { opacity: 0; transform: rotate(140deg) ; }
}

/* Quiz section*/
.quiz_header {
  font-family: "Inter", sans-serif !important;
  color: #68594A;
  font-weight: 700 !important;
  margin-bottom: 0;
  line-height: 1 !important;
}

/* Dialog windows */
.bubble {
  position: absolute;
  animation: float 3s ease-in-out infinite;
}

.bubble-left::after {
  content: "";
  position: absolute;
  bottom: 25px;
  left: 85%;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 25px solid transparent;
  border-top: 30px solid #D5FFA9;
}

.bubble-right::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 85%;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 40px solid #FFD2EE;
  transform: rotate(160deg);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 1280px) and (min-width: 1025px) {


  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 15px;
  }
  
  .col_row1 {
    grid-column: 1;
    grid-row: 1;
  }

  .col_row2 {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    gap: 15px;
  }

  .col2 {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    height: 100%;
  }

  .header {
    font-size: 50px !important;
  }

  .subheader {
    font-size: 35px !important;
  }


  .about_cats_container {
    margin-left: 20px;
    margin-right: 20px;
  }

  .about_cats_header {
    font-size: 60px;
    gap: 12px;
  }

  /* Корректируем позиции фото для среднего экрана */
  .about_cat_photo1 {
    left: 150px;
    top: 350px;
    width: 220px;
    height: 260px;
  }

  .cat_hashtag1 {
    left: 350px;
    top: 520px;
  }

  .about_cat_photo2 {
    left: 460px;
    top: 200px;
    width: 200px;
    height: 235px;
  }

  .cat_hashtag2 {
    left: 600px;
    top: 360px;
  }

  .about_cat_photo3 {
    left: 750px;
    top: 440px;
    width: 200px;
    height: 225px;
  }

  .cat_hashtag3 {
    left: 650px;
    top: 580px;
  }

  .ribborn1 {
    width: 550px;
  }

  .ribborn2 {
    top: 300px;
    left: 500px;
    width: 400px;
    transform: rotate(260deg);
  }

  .ribborn3 {
    transform: rotate(340deg);
    top: 380px;
    left: 800px;
    width: 500px;
  }

  .ribborn4 {
    display: none;
  }

  .paw1, .paw2, .paw3, .paw4, .paw5, .paw6, .paw7, .paw8, .paw9 {
    display: none;
  }

  .fish {
    width: 70px;
  }
}

/* Планшеты (901px - 1024px) */
@media (max-width: 1024px) and (min-width: 901px) {
  .grid-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 15px;
  }
  
  .col_row1 {
    grid-column: 1;
    grid-row: 1;
  }

  .col_row2 {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    gap: 15px;
  }

  .col2 {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    height: 100%;
  }

  .header {
    font-size: 50px !important;
  }

  .subheader {
    font-size: 35px !important;
  }

  .about_cats_container {
    padding: 40px;
    height: 800px;
    margin-left: 0;
    margin-right: 0;
  }

  .about_cats {
    gap: 0;
    flex-wrap: wrap;
  }

  .about_cats_header {
    font-size: 50px;
  }

  .fish {
    width: 60px;
    margin-left: 8px;
  }

  .about_cats_desc {
    margin-top: 20px;
    width: 100%;
  }

  .about_cat_photo1 {
    left: 8%;
    top: 45%;
    width: 200px;
    height: 240px;
    transform: rotate(-8deg);
  }

  .cat_hashtag1 {
    left: 30%;
    top: 65%;
  }

  .about_cat_photo2 {
    left: 37%;
    top: 30%;
    width: 200px;
    height: 235px;
    transform: rotate(5deg);
  }

  .cat_hashtag2 {
    left: 57%;
    top: 38%;
  }

  .about_cat_photo3 {
    left: 60%;
    top: 50%;
    width: 200px;
    height: 225px;
    transform: rotate(-3deg);
  }

  .cat_hashtag3 {
    left: 77%;
    top: 70%;
  }

  .about_cats_btn {
    width: calc(100% - 80px);
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 10;
  }

  .paws_back_up {
    top: 50px;
    left: 60px;
  }

  .paws_back_down {
    top: 160px;
    left: 220px;
  }

  .paws_back_side {
    top: -160px;
    left: 30px;
  }

  .ribborn1 {
    width: 450px;
    left: 0;
    top: 35%;
    transform: rotate(180deg);
  }

  .ribborn2 {
    width: 350px;
    left: 75%;
    top: 37%;
  }

  .ribborn3 {
    width: 320px;
    left: 40%;
    top: 50%;
    transform: rotate(30deg);
  }

  .ribborn4 {
    display: none;
  }

  .paw1, .paw2, .paw3, .paw4, .paw5, .paw6, .paw7, .paw8, .paw9 {
    display: none;
  }
}

/* Мобильное меню (до 900px) */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
    width: 100%;
  }

  header {
    justify-content: flex-end;
    padding: 1rem 0 !important;
    position: relative;
    margin-top: 24px !important;
  }

  nav .nickname {
    display: block;
    position: static;
    transform: none;
    order: 2;
    margin: 16px 0;
    font-size: 20px;
    padding-top: 2rem !important;
    width: 100%;
    text-align: center;
    color: #68594A;
    text-shadow: none;
  }

  .image-container .nickname {
    display: none;
  }

  .nickname:hover {
    color: #4a3c2a;
  }

  .mobile-menu-trigger {
    display: flex;
  }

  .mobile-menu-trigger .logo {
    margin: 0 !important;
    transition: transform 0.3s ease;
  }

  .mobile-menu-trigger .logo:hover {
    transform: scale(1.1);
  }

  nav {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(253, 247, 241, 0.95);
    backdrop-filter: blur(10px);
    margin: 0 !important;
    padding: 80px 2rem 2rem !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  ul {
    flex-direction: column;
    height: auto;
    min-height: auto;
    align-items: center;
    gap: 0;
    justify-content: center;
  }
  
  .left-items {
    flex-direction: column;
    gap: 0;
    margin-top: 2rem !important;
    width: 100%;
    align-items: center;
  }
  
  .right-items {
    flex-direction: column;
    gap: 0;
    margin-left: 0 !important;
    width: 100%;
    align-items: center;
  }

  .right-items .logo {
    display: none;
  }
  
  nav a {
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    text-align: center;
    min-width: 200px;
    margin: 8px 0 !important;
    display: block;
    background: none;
  }
  
  nav a:focus {
    border: none;
    outline: 2px solid #68594A;
    outline-offset: 2px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 15px;
  }
  
  .col_row1 {
    grid-column: 1;
    grid-row: 1;
  }

  .col_row2 {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    gap: 15px;
  }

  .col2 {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    height: 100%;
  }

  .about_cats_container {
    padding: 40px;
    height: 800px;
    position: relative;
    margin-left: 0;
    margin-right: 0;
  }

  .about_cats {
    gap: 0;
    flex-wrap: wrap;
  }

  .about_cats_header {
    font-size: 50px;
  }

  .fish {
    width: 60px;
    margin-left: 8px;
  }

  .about_cats_desc {
    margin-top: 20px;
    width: 100%;
  }

  .about_cat_photo1 {
    left: 8%;
    top: 45%;
    width: 200px;
    height: 240px;
    transform: rotate(-8deg);
  }

  .cat_hashtag1 {
    left: 30%;
    top: 65%;
  }

  .about_cat_photo2 {
    left: 37%;
    top: 30%;
    width: 200px;
    height: 235px;
    transform: rotate(5deg);
  }

  .cat_hashtag2 {
    left: 57%;
    top: 38%;
  }

  .about_cat_photo3 {
    left: 60%;
    top: 50%;
    width: 200px;
    height: 225px;
    transform: rotate(-3deg);
  }

  .cat_hashtag3 {
    left: 77%;
    top: 70%;
  }

  .about_cats_btn {
    width: calc(100% - 80px);
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 10;
  }

  .paws_back_up {
    top: 50px;
    left: 60px;
  }

  .paws_back_down {
    top: 160px;
    left: 220px;
  }

  .paws_back_side {
    top: -160px;
    left: 30px;
  }

  .ribborn1 {
    width: 450px;
    left: 0;
    top: 35%;
    transform: rotate(180deg);
  }

  .ribborn2 {
    width: 350px;
    left: 75%;
    top: 37%;
  }

  .ribborn3 {
    width: 320px;
    left: 40%;
    top: 50%;
    transform: rotate(30deg);
  }

  .ribborn4 {
    display: none;
  }

  .paw1, .paw2, .paw3, .paw4, .paw5, .paw6, .paw7, .paw8, .paw9 {
    display: none;
  }
}

@media (max-width: 730px) and (min-width: 521px) {
  body {
    background-attachment: scroll;
    width: 100%;
  }

  header {
    justify-content: flex-end;
    padding: 1rem 0 !important;
    position: relative;
    margin-top: 24px !important;
  }

  nav .nickname {
    display: block;
    position: static;
    transform: none;
    order: 2;
    margin: 16px 0;
    font-size: 20px;
    padding-top: 2rem !important;
    width: 100%;
    text-align: center;
    color: #68594A;
    text-shadow: none;
  }

  .image-container .nickname {
    display: none;
  }

  .nickname:hover {
    color: #4a3c2a;
  }

  .mobile-menu-trigger {
    display: flex;
  }

  .mobile-menu-trigger .logo {
    margin: 0 !important;
    transition: transform 0.3s ease;
  }

  .mobile-menu-trigger .logo:hover {
    transform: scale(1.1);
  }

  nav {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(253, 247, 241, 0.95);
    backdrop-filter: blur(10px);
    margin: 0 !important;
    padding: 80px 2rem 2rem !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  ul {
    flex-direction: column;
    height: auto;
    min-height: auto;
    align-items: center;
    gap: 0;
    justify-content: center;
  }
  
  .left-items {
    flex-direction: column;
    gap: 0;
    margin-top: 2rem !important;
    width: 100%;
    align-items: center;
  }
  
  .right-items {
    flex-direction: column;
    gap: 0;
    margin-left: 0 !important;
    width: 100%;
    align-items: center;
  }

  .right-items .logo {
    display: none;
  }
  
  nav a {
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    text-align: center;
    min-width: 200px;
    margin: 8px 0 !important;
    display: block;
    background: none;
  }
  
  nav a:focus {
    border: none;
    outline: 2px solid #68594A;
    outline-offset: 2px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 15px;
  }
  
  .col_row1 {
    grid-column: 1;
    grid-row: 1;
  }

  .col_row2 {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    gap: 15px;
  }

  .col2 {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    height: 100%;
  }

  .about_cats_container {
    padding: 16px;
    height: 800px;
    position: relative;
    margin-left: 0;
    margin-right: 0;
  }

  .about_cats {
    gap: 0;
    flex-wrap: wrap;
  }

  .about_cats_header {
    font-size: 45px;
  }

  /* УБИРАЕМ РЫБКУ на 520-730px */
  .fish {
    display: none;
  }

  .about_cats_desc {
    margin-top: 20px;
    width: 100%;
  }

  .about_cat_photo1 {
    left: 5%;
    top: 45%;
    width: 190px;
    height: 230px;
    transform: rotate(-8deg);
  }

  .cat_hashtag1 {
    left: 30%;
    top: 65%;
  }

  .about_cat_photo2 {
    left: 37%;
    top: 30%;
    width: 190px;
    height: 225px;
    transform: rotate(5deg);
  }

  .cat_hashtag2 {
    left: 57%;
    top: 38%;
  }

  .about_cat_photo3 {
    left: 60%;
    top: 50%;
    width: 190px;
    height: 215px;
    transform: rotate(-3deg);
  }

  .cat_hashtag3 {
    display: none;
  }

  .about_cats_btn {
    width: calc(100% - 80px);
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 10;
  }

  .paws_back_up {
    top: 50px;
    left: 60px;
  }

  .paws_back_down {
    top: 160px;
    left: 220px;
  }

  .paws_back_side {
    top: -160px;
    left: 30px;
  }

  .ribborn1 {
    width: 400px;
    left: 0;
    top: 35%;
    transform: rotate(180deg);
  }

  .ribborn2 {
    width: 300px;
    left: 72%;
    top: 37%;
  }

  .ribborn3 {
    width: 280px;
    left: 38%;
    top: 50%;
    transform: rotate(30deg);
  }

  .ribborn4 {
    display: none;
  }

  .paw1, .paw2, .paw3, .paw4, .paw5, .paw6, .paw7, .paw8, .paw9 {
    display: none;
  }
}

/* Мобильные устройства (до 520px) */
@media (max-width: 520px) {
  body {
    background-attachment: scroll;
    width: 100%;
  }

  header {
    justify-content: flex-end;
    padding: 1rem 0 !important;
    margin: 1.5rem 0 !important;
    position: relative;
  }

  .mobile-menu-trigger {
    display: flex;
  }

  .mobile-menu-trigger .logo {
    margin: 1rem 0 !important;
    transition: transform 0.3s ease;
  }

  .mobile-menu-trigger .logo:hover {
    transform: scale(1.1);
  }

  nav {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(253, 247, 241, 0.95);
    backdrop-filter: blur(10px);
    margin: 0 !important;
    padding: 80px 2rem 2rem !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  ul {
    flex-direction: column;
    height: auto;
    min-height: auto;
    align-items: center;
    gap: 0;
    justify-content: center;
  }
  
  .left-items {
    flex-direction: column;
    gap: 0;
    margin-top: 2rem !important;
    width: 100%;
    align-items: center;
  }
  
  .right-items {
    flex-direction: column;
    gap: 0;
    margin-left: 0 !important;
    width: 100%;
    align-items: center;
  }

  .right-items .logo {
    display: none;
  }
  
  nav a {
    border: none;
    font-size: 18px;
    text-align: center;
    min-width: 200px;
    margin: 8px 0 !important;
    display: block;
    background: none;
  }
  
  nav a:focus {
    border: none;
    outline: 2px solid #68594A;
    outline-offset: 2px;
  }
  
  .grid-container {
    height: auto;
    overflow: visible;
    gap: 20px;
    grid-template-rows: auto auto auto;
  }
  
  .header {
    font-size: 40px !important;
  }
  
  .subheader {
    font-size: 30px !important;
  }
  
  .quiz_desc {
    margin-top: 20px !important;
    margin-bottom: 40px !important;
  }
  
  .start_bold, .srart_regular {
    font-size: 16px;
  }
  
  .quiz_btn {
    width: 100%;
  }
  
  .col_row2 {
    flex-direction: column;
    height: auto;
    gap: 15px;
  }
  
  .col2 {
    display: none;
  }

  /* About cats mobile */
  .about_cats_container {
    margin-left: 0;
    margin-right: 0;
    padding: 40px 16px 80px;
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .about_cats {
    align-items: center;
  }

  .about_cats_header {
    font-size: 30px;
  }

  .fish {
    display: none;
  }

  .about_cats_desc {
    margin-bottom: 40px;
    order: 1;
  }

  .about_cat_photo1 {
    align-self: flex-start;
    position: static;
    transform: none;
    width: 240px;
    height: auto;
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 40px;
    order: 2;
  }

  .about_cat_photo1 img {
    width: 100%;
    height: auto;
  }

  .cat_hashtag1 {
    position: absolute;
    top: 50%;
    right: 25%;
    left: auto;
    border-radius: 30px;
    padding: 8px 16px;
    border: 4px solid #fdf7f1;
  }

  .about_cat_photo2 {
    align-self: flex-end;
    position: static;
    transform: none;
    width: 212px;
    height: auto;
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 55px;
    order: 3;
  }

  .about_cat_photo2 img {
    width: 100%;
    height: auto;
  }

  .cat_hashtag2 {
    position: absolute;
    left: 25%;
    bottom: 17%;
    top: auto;
    border-radius: 30px;
    padding: 8px 16px;
    border: 4px solid #fdf7f1;
  }

  .about_cat_photo3,
  .cat_hashtag3 {
    display: none;
  }

  .ribborn1, .ribborn2, .ribborn3, .ribborn4 {
    display: none;
  }

  .paw3, .paw4, .paw5, .paw6 {
    display: none;
  }

  .paws_back_up {
    position: absolute;
    top: auto !important;
    left: auto !important;
    bottom: auto;
    width: 100%;
    height: 100%;
    margin-top: 40px;
  }

  .paw1, .paw2, .paw7, .paw8, .paw9 {
    display: block !important;
    width: 35px;
    height: 35px;
    position: absolute;
    left: auto !important;
    bottom: auto !important;
    animation-duration: 6s;
  }
  
  .paw1 {
    top: 20% !important;
    right: 11%;
    animation-name: pawAnimationMobile1;
  }

  .paw2 {
    top: 26% !important;
    right: 10%;
    animation-name: pawAnimationMobile2;
  }
  
  @keyframes pawAnimationMobile1 {
    0% { opacity: 0; transform: rotate(150deg); }
    10% { opacity: 1; transform: rotate(150deg); }
    20% { opacity: 0; transform: rotate(150deg); }
    100% { opacity: 0; transform: rotate(150deg); }
  }

  @keyframes pawAnimationMobile2 {
    0%, 20% { opacity: 0; transform: rotate(200deg); }
    30% { opacity: 1; transform: rotate(200deg); }
    40% { opacity: 0; transform: rotate(200deg); }
    100% { opacity: 0; transform: rotate(200deg); }
  }
  
  .paws_back_side {
    position: absolute;
    top: auto !important;
    left: auto !important;
    bottom: auto;
    width: 100%;
    height: 100%;
    margin-top: 40px;
  }

  .paw7 {
    bottom: 43% !important;
    left: 10% !important;
    animation-name: pawAnimationMobile7;
  }
  
  .paw8 {
    top: auto !important;
    right: auto !important;
    bottom: 40% !important;
    left: 5% !important;
    animation-name: pawAnimationMobile8;
  }
  
  .paw9 {
    bottom: 36% !important;
    left: 8% !important;
    animation-name: pawAnimationMobile9;
  }

  @keyframes pawAnimationMobile7 {
    0% { opacity: 0; transform: rotate(210deg); }
    8% { opacity: 1; transform: rotate(210deg); }
    16% { opacity: 0; transform: rotate(210deg); }
    100% { opacity: 0; transform: rotate(210deg); }
  }

  @keyframes pawAnimationMobile8 {
    0%, 16% { opacity: 0; transform: rotate(210deg); }
    24% { opacity: 1; transform: rotate(210deg); }
    32% { opacity: 0; transform: rotate(210deg); }
    100% { opacity: 0; transform: rotate(210deg); }
  }

  @keyframes pawAnimationMobile9 {
    0%, 32% { opacity: 0; transform: rotate(180deg); }
    40% { opacity: 1; transform: rotate(180deg); }
    48% { opacity: 0; transform: rotate(180deg); }
    100% { opacity: 0; transform: rotate(180deg); }
  }

  /* Quiz section mobile */
  .bubble {
    font-size: 16px !important;
    padding: 8px 16px !important;
  }

  .bubble-left {
    left: 2% !important;
    top: 5% !important;
  }

  .bubble-right {
    right: 2% !important;
    top: 20% !important;
  }
}

/* Очень маленькие экраны */
@media (max-width: 410px) {
  nav a {
    padding: 14px 20px;
    font-size: 16px;
    min-width: 180px;
    margin: 6px 0;
  }

  .about_cats_header {
    font-size: 26px;
  }

  .cat_hashtag1 {
    position: absolute;
    top: 52%;
    right: 10%;
    left: auto;
    border-radius: 30px;
    padding: 8px 16px;
    border: 4px solid #fdf7f1;
  }

  .cat_hashtag2 {
    position: absolute;
    left: 10%;
    bottom: 16%;
    top: auto;
    border-radius: 30px;
    padding: 8px 16px;
    border: 4px solid #fdf7f1;
  }
}

@media (max-width: 359px) {
  .cat_hashtag1 {
    position: absolute;
    top: 52%;
    right: 5%;
    left: auto;
    border-radius: 30px;
    padding: 8px 16px;
    border: 4px solid #fdf7f1;
  }

  .cat_hashtag2 {
    position: absolute;
    left: 5%;
    bottom: 15%;
    top: auto;
    border-radius: 30px;
    padding: 8px 16px;
    border: 4px solid #fdf7f1;
  }
}