@font-face {
  font-family: "Fira-Sans";
  src: url(../fonts/FiraSans/FiraSans-Regular.ttf) format("truetype"),
    url(../fonts/FiraSans/FiraSans-Regular.woff2) format("woff2");
}
@font-face {
  font-family: "Gentium";
  src: url(../fonts/Gentium/GentiumPlus-R.ttf) format("truetype"),
    url(../fonts/Gentium/GentiumPlus-R.woff2) format("woff2");
}
:root {
  --font-color: #fff;
  --blocks-bgcolor: #020718;
  --orange-font-color: #ff0000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
html {
  overflow-x: hidden;
  overscroll-behavior: none;
}
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
body {
  background-color: #131c3b;
  font-family: "Fira-Sans", sans-serif;
}
/* Стилизация шапки */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: max-content;
}
.header-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}
.header-tel-location-block {
  max-width: 1440px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  align-items: center;
}
.location-block {
  display: flex;
}
.location-block {
  cursor: pointer;
}
.location-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--font-color);
  font-size: 20px;
}
.number-link {
  color: var(--font-color);
  font-size: 24px;
  white-space: nowrap;
}
.header-main-block {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blocks-bgcolor);
  width: 100%;
  border-bottom: 1px solid var(--font-color);
}
.header-main-container {
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 30px 10px;
}
.logo-block {
  width: max-content;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-text {
  color: var(--font-color);
  text-transform: uppercase;
  font-weight: normal;
  font-size: 56px;
  white-space: nowrap;
  letter-spacing: 0;
}
.logo-text span {
  color: var(--orange-font-color);
  font-weight: bold;
}

.search-block {
  max-width: 720px;
  width: 100%;
  height: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px 15px;
}
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 65px;
  font-size: 32px;
  padding-left: 20px;
  padding-right: 50px;
  border-radius: 10px;
  border: none;
  outline: none;
}
.search-input::placeholder {
  color: #383131;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.menu {
  width: max-content;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.menu-link {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  color: var(--font-color);
  font-size: 16px;
  font-weight: normal;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.3s ease;
}
.menu-link:hover {
  color: var(--orange-font-color);
}

/* Стилизация верхних категорий */
.products-head {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.product-head-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-type-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}

.product-type-block {
  background-color: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.product-type-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.product-type-block img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.product-type-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
/* Адаптив */
@media (max-width: 768px) {
  .product-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .head-title {
    font-size: 26px;
  }

  .product-type-block {
    padding: 12px;
  }

  .product-type-title {
    font-size: 14px;
  }

  .product-type-block img {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .head-title {
    font-size: 22px;
  }

  .product-type-container {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .product-type-block {
    padding: 10px;
  }
}

/* Стилизация каталога */

.products-body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: max-content;
  padding: 50px 0;
}
.products-container {
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
  max-width: 1440px;
  width: 100%;
  height: max-content;
  padding: 20px 10px;
}
.products-body-head {
  font-size: 48px;
  color: var(--font-color);
  font-family: "Gentium", serif;
  font-weight: normal;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.products-body-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  row-gap: 35px;
  width: 100%;
  height: max-content;
}
.product-card {
  background-color: var(--font-color);
  border-radius: 10px;
  max-width: 450px;
  min-width: 150px;
  width: 100%;
  max-height: 250px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 0;
  cursor: pointer;
  transition: .3s ease-in-out;
}
.product-card:hover{
  transform:scale(1.03)
}
.card-text-info {
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
  gap: 30px;
  padding: 50px 0px 40px 10px;
}
.card-title {
  font-size: 40px;
  font-weight: normal;
  text-wrap: balance;
  min-height: 96px;
}
.count-and-reviews {
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
  gap: 6px;
}
.count-text {
  color: #606060;
  font-size: 16px;
}
.reviews-text {
  color: #606060;
  font-size: 16px;
}
.card-img {
  transition: .3s ease-in-out;
  padding: 40px 10px 50px 0px;
}
.card-img:hover{
  transform: scale(1.1)

}
.to-fav {
  display: flex;
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 10px;
  cursor: pointer;
}
.to-fav.active path {
  fill: #ff0000;
}
.to-fav path {
  fill: transparent;
}
/* Исправленный только адаптив */
@media screen and (max-width: 1400px) {
  .product-card {
    max-width: 400px;
  }
}

@media screen and (max-width: 1240px) {
  .product-card {
    max-width: 350px;
  }
  .card-title {
    font-size: 30px;
  }
  .card-img {
    width: 40%;
  }
}

@media screen and (max-width: 1100px) {
  .product-card {
    max-width: calc(48% - 20px);
  }
  .card-title {
    font-size: 30px;
  }
}

/* Новый адаптив для планшетов 992px-500px */
@media screen and (max-width: 992px) {
 
  .product-card {
    max-width: calc(48% - 10px); /* 2 карточки в строке с отступами */
    width: 100%;
  }
  .card-title {
    font-size: 28px;
    min-height: auto;
  }
}

@media screen and (max-width: 768px) {
  .product-card {
    max-width: calc(48% - 15px);
  }
  .card-title {
    font-size: 20px;
  }
  .card-text-info {
    gap: 10px;
    padding: 30px 0px 25px 10px;
  }
  .card-img{
    max-width: 100px;
  }
  .count-text{
    font-size: 12px;
  }
  .reviews-text{
    font-size: 12px;
  }
}

@media screen and (max-width: 500px) {
  .product-card {
    max-width: 100%;
  }
  .products-body-head {
    font-size: 36px;
  }
  .card-text-info{
    gap: 40px;
  }
  .card-img{
    max-width: 130%;
  }
}

@media screen and (max-width: 480px) {
  .products-body-head {
    font-size: 24px;
  }
  .product-card {
    max-width: 100%;
    min-height: 200px;
  }
  .card-title {
    font-size: 22px;
    min-height: 50px;
  }
  .count-text,
  .reviews-text {
    font-size: 14px;
  }
}
/* Стилизация футера */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: max-content;
  border-top: 1px solid var(--font-color);
  box-shadow: 10px 10px 30px #fff;
}
.footer-container {
  max-width: 1440px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 50px 10px;
}
.fast-link-title {
  font-size: 32px;
  color: var(--font-color);
  font-weight: normal;
  margin-bottom: 30px;
}
.fast-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.fast-link {
  color: #b1b1b1;
  font-size: 28px;
  transition: 0.3s ease;
}
.fast-link:hover,
.contacts-link:hover {
  color: var(--font-color);
}
.footer-logo-block {
  width: max-content;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: left;
}
.footer-logo-text {
  color: var(--font-color);
  text-transform: uppercase;
  font-weight: normal;
  font-size: 56px;
  white-space: nowrap;
  letter-spacing: 0;
}
.footer-logo-text span {
  color: var(--orange-font-color);
  font-weight: bold;
}
.contacts-title {
  font-size: 32px;
  color: var(--font-color);
  font-weight: normal;
  margin-bottom: 30px;
}
.contacts-links {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 14px;
  flex: 1;
}
.contacts-link {
  color: #b1b1b1;
  font-size: 28px;
  transition: 0.3s ease;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}
.politic-text {
  color: var(--font-color);
  font-size: 28px;
}
/* Адаптив */

@media screen and (max-width: 1024px) {
  .header-main-container {
    flex-direction: column;
    gap: 20px;
  }

  .search-block {
    max-width: 100%;
    margin: 10px 0;
  }

  .menu {
    gap: 50px;
    padding: 0;
  }

  .menu-link {
    font-size: 14px;
  }
  .footer-logo-text {
    font-size: 46px;
  }
}

@media screen and (max-width: 768px) {
  .reg-title {
    font-size: 42px;
    text-align: center;
  }

  .reg-container {
    padding: 30px 20px;
  }

  .tel-input,
  .password-input {
    height: 45px;
    font-size: 16px;
  }

  .captcha-text {
    font-size: 16px;
  }

  .custom-checkbox .checkmark {
    width: 30px;
    height: 30px;
  }

  .send-btn {
    max-width: 100%;
    height: 50px;
    font-size: 20px;
  }
  .btn-acc-create {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .qr-text,
  .create-acc,
  .create-acc a {
    font-size: 15px;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-logo-block {
    order: 1;
  }

  .fast-links {
    order: 2;
    margin-bottom: 30px;
  }

  .contacts-links {
    align-items: start;
    order: 3;
  }

  .social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .politic-text {
    text-align: center;
    width: 100%;
  }
  .custom-checkbox input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 1px;
    width: 5px;
    height: 15px;
    border: solid white;
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
  }
}

@media screen and (max-width: 480px) {
  .logo-text {
    font-size: 32px;
  }
  .location-text {
    display: none;
  }

  .footer-logo-text {
    font-size: 32px;
  }

  .fast-link,
  .contacts-link {
    font-size: 20px;
  }

  .fast-link-title,
  .contacts-title {
    font-size: 24px;
    margin-bottom: 0px;
  }

  .politic-text {
    font-size: 18px;
    text-align: center;
    padding: 10px;
  }

  .search-input {
    font-size: 20px;
    height: 50px;
  }

  .search-icon {
    width: 24px;
    right: 8px;
  }

  .menu-link img {
    width: 24px;
    height: 24px;
  }
  .number-link {
    font-size: 20px;
  }
  .number-link {
    font-size: 20px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .menu-link:hover,
  .fast-link:hover,
  .contacts-link:hover,
  .product-card:hover,
  .card-img:hover,
  .product-type-block:hover {
    transform: none !important;
    box-shadow: none !important;
    color: inherit !important;
  }
  
  .to-fav:hover path,
  .search-icon:hover {
    fill: inherit !important;
  }
}