@font-face {
  font-family: "inter-regular";
  src: url(/fonts/Inter-Regular.otf);
  font-display: swap;
}

@font-face {
  font-family: "inter-bold";
  src: url(/fonts/Inter-SemiBold.otf);
  font-display: swap;
}

@font-face {
  font-family: "karla";
  src: url(/fonts/Karla-VariableFont_wght.ttf);
  font-display: swap;
}

:root {
  --color-primary: #3f7736;
  --color-primary-hover: #315f2b;
  --color-text: #111;
  --color-muted: #777;
  --color-surface: #fbf7f4;
  --color-surface-light: #fbf6f3;
  --color-surface-dark: #f7f2ed;
  --color-border: #ddd;
  --color-error: #b33a3a;
  --color-white: #fff;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06);
  --transition-base: 0.2s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
p {
  line-height: 1.7;
}
body {
  font-family: "inter-regular", sans-serif;
  color: var(--color-text);
  background: #fff;
}
h2,
h3 {
  font-family: "inter-bold";
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  height: 76px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a5d4d;
  font-size: 22px;
  font-weight: 600;
}
.logo img {
  width: 170px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 76px;
  margin-left: 90px;
}
.nav__link {
  font-size: 14px;
  color: #171717;
  transition: 0.2s;
}
.nav__link:hover,
.nav__link--active {
  font-size: 14px;

  color: var(--color-primary);
}
.header__icons {
  display: flex;
  align-items: center;
  gap: 40px;
}

.user-menu {
  position: relative;
}

.user-menu__button img {
  width: 25px;
}

.user-menu__dropdown {
  width: 185px;
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 900;
  display: none;
  padding: 8px;
  border: 1px solid #e3ddd8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.user-menu--active .user-menu__dropdown {
  display: block;
}

.user-menu__dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: #171717;
  font-size: 14px;
  transition: 0.2s;
}

.user-menu__dropdown a:hover {
  background: #fbf7f4;
  color: #3f7736;
}

.icon-link.icon-button.js-open-cart img {
  width: 35px;
}

.icon-link.icon-button.js-open-auth img {
  width: 25px;
}

.icon-button {
  position: relative;
  border: 0;
  background: none;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
}

.hero {
  padding-top: 0;
}
.hero__box {
  height: 615px;
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  background: #f8f4ef;
}
.hero__content {
  position: absolute;
  left: 86px;
  top: 71px;
  z-index: 2;
}
.hero h1 {
  font-size: 48px;

  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
}
.hero p {
  font-size: 20px;

  margin-bottom: 185px;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  height: 78px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 9px;
  font-size: 20px;
  transition: 0.2s;
}
.btn:hover {
  background: var(--color-primary-hover);
}

.features {
  padding: 55px 0 65px;
}
.features__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 22px;
}
.feature img {
  width: 44px;
}
.feature p {
  font-size: 18px;
}

.animals {
  padding: 0 0 75px;
}
.animals h2,
.reasons h2 {
  font-size: 34px;
  text-align: center;
  margin-bottom: 75px;
  margin-top: 40px;
}
.animals__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 61px;
}
.animal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
.animal-card__img {
  width: 215px;
  height: 215px;
  border-radius: 50%;
  background: var(--color-surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.animal-card__img img {
  width: 165px;
  height: 165px;
  object-fit: contain;
}
.animal-card span {
  font-size: 20px;
  font-weight: 700;
  color: #6b625d;
}

.reasons {
  padding: 0 0 75px;
}
.reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.reason-card {
  height: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 9px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 25px 34px;
  gap: 15px;
  background: #fff;
}
.reason-card strong {
  font-size: 120px;
  font-family: "karla";

  color: var(--color-primary);
}
.reason-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.reason-card p {
  font-size: 17px;
}

.care-banner__box {
  height: 230px;
  background: var(--color-surface-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 31px;
}
.care-banner__box img {
  width: 250px;
  object-fit: contain;
}
.care-banner__line {
  width: 4px;
  height: 92px;
  background: #db8d54;
  margin-right: 30px;
}
.care-banner__text {
  flex: 1;
}
.care-banner__text h2 {
  font-size: 34px;
  margin-bottom: 14px;
}
.care-banner__text p {
  font-size: 18px;

  padding-right: 50px;
}
.care-banner .btn {
  min-width: 325px;
  height: 76px;
  font-size: 18px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.auth-modal--active {
  display: block;
}

.auth-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.auth-modal__window {
  width: 460px;
  max-height: 90vh;
  overflow: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 34px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: none;
  font-size: 32px;

  cursor: pointer;
  color: var(--color-muted);
}

.auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: 14px;
  background: var(--color-surface-dark);
}

.auth-tab {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: "inter-bold";
  font-size: 16px;
  cursor: pointer;
  color: #6b625d;
}

.auth-tab--active {
  background: var(--color-primary);
  color: #fff;
}

.auth-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.auth-message--error {
  background: #fff1f1;
  color: var(--color-error);
}

.auth-message--success {
  background: #eef4ea;
  color: var(--color-primary);
}

.auth-form {
  display: none;
}

.auth-form--active {
  display: block;
}

.auth-form h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.auth-form p {
  margin-bottom: 22px;
  color: #6b625d;
  font-size: 16px;
}

.auth-form label {
  display: block;
  margin-bottom: 16px;
}

.auth-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: "inter-regular";
  font-size: 16px;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--color-primary);
}

.auth-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.auth-check input {
  margin-top: 4px;
}

.auth-check span {
  margin: 0 !important;
  font-size: 14px;
}

.auth-check a {
  color: var(--color-primary);
  text-decoration: underline;
}

.auth-form button[type="submit"] {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: "inter-bold";
  font-size: 16px;
  cursor: pointer;
}

.auth-form__bottom {
  margin-top: 18px;
  text-align: center;
  color: #6b625d;
  font-size: 14px;
}

.auth-form__bottom button {
  border: 0;
  background: none;
  color: var(--color-primary);
  font-family: "inter-bold";
  font-size: 14px;
  cursor: pointer;
}
.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.cart-modal--active {
  display: block;
}

.cart-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.cart-drawer {
  width: 430px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  animation: cartSlide 0.25s forwards;
}

@keyframes cartSlide {
  to {
    transform: translateX(0);
  }
}

.cart-drawer__head {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
  position: relative;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.cart-drawer__head h2 {
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-drawer__close {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: #fff;
  font-size: 34px;

  cursor: pointer;
}

.cart-drawer__body {
  flex: 1;
  padding: 18px 16px;
  overflow: auto;
  background: #fbf8f5;
}

.cart-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 120px;
  color: var(--color-text);
}

.cart-empty p {
  font-size: 16px;
}

.cart-empty strong {
  color: #c8c8c8;
  font-size: 82px;
  font-weight: 400;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.cart-item__img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--color-surface-dark);
}

.cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cart-item__title {
  font-family: "inter-bold";
  font-size: 16px;
}

.cart-item__remove {
  border: 0;
  background: none;
  color: #999;
  font-size: 22px;

  cursor: pointer;
}

.cart-item__price {
  margin-top: 6px;
  color: var(--color-primary);
  font-family: "inter-bold";
  font-size: 16px;
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.cart-item__qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}

.cart-item__qty span {
  width: 34px;
  text-align: center;
  font-family: "inter-bold";
  font-size: 14px;
}

.cart-item__sum {
  font-family: "inter-bold";
  font-size: 16px;
}

.cart-drawer__footer {
  padding: 18px 18px 22px;
  border-top: 1px solid #e5e1dd;
  background: #fff;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 18px;
}

.cart-total strong {
  color: var(--color-primary);
  font-family: "inter-bold";
  font-size: 22px;
}

.cart-checkout {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 17px;
}

.cart-message {
  padding: 20px;
  text-align: center;
}

.cart-message p {
  margin-bottom: 14px;
  font-size: 16px;
}

.cart-message button {
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}

.cart-page-message {
  min-height: 22px;
  margin-top: -16px;
  margin-bottom: 18px;
  font-size: 14px;
}

.cart-page-message--success {
  color: var(--color-primary);
}

.cart-page-message--error {
  color: var(--color-error);
}

.footer {
  margin-top: 80px;
  border-top: 1px solid #e3e3e3;
  background: var(--color-surface-light);
}

.footer__inner {
  min-height: 110px;
  display: grid;
  grid-template-columns: 180px 1fr 300px;
  align-items: center;
  gap: 40px;
}

.footer__logo {
  color: #7a5d4d;
  font-family: "inter-bold";
  font-size: 22px;
}

.footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.footer__nav a {
  font-size: 14px;
  transition: 0.2s;
}

.footer__nav a:hover,
.footer__policy:hover {
  color: var(--color-primary);
}

.footer__policy {
  text-align: right;
  color: #6b625d;
  font-size: 13px;
  line-height: 1.4;
  transition: 0.2s;
}

.footer__bottom {
  padding: 18px 0;
  border-top: 1px solid #e3ddd8;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1100px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 0;
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 18px 28px;
  }

  .footer__policy {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer {
    margin-top: 50px;
  }

  .footer__nav {
    flex-direction: column;
    gap: 14px;
  }

  .footer__bottom {
    padding: 15px 20px;
    line-height: 1.4;
  }
}

/* ===== Адаптив: общая резиновая сетка, шапка, главная, модалки ===== */
html {
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

.container {
  width: min(1360px, calc(100% - clamp(24px, 4vw, 40px)));
}

.header__inner {
  gap: clamp(14px, 2.5vw, 40px);
}

.nav {
  gap: clamp(18px, 4vw, 76px);
  margin-left: clamp(18px, 5vw, 90px);
}

.nav a {
  font-size: 14px;
}

.hero__box {
  height: clamp(430px, 45vw, 615px);
}

.hero__content {
  left: clamp(28px, 6vw, 86px);
  top: clamp(34px, 5vw, 71px);
  max-width: min(520px, 48vw);
}

.hero h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.hero p {
  margin-bottom: clamp(42px, 1vw, 105px);
  font-size: clamp(17px, 2vw, 20px);
}

.animals__grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: clamp(24px, 4vw, 61px);
}

.animal-card__img {
  width: min(215px, 100%);
  aspect-ratio: 1 / 1;
  height: auto;
}

.reasons__grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.care-banner__box {
  min-height: 230px;
  height: auto;
  gap: 24px;
}

@media (max-width: 1180px) {
  .header {
    height: auto;
  }

  .header__inner {
    min-height: 76px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .logo img {
    width: 150px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-left: 0;
  }

  .header__icons {
    gap: 26px;
    margin-left: auto;
  }

  .features__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .care-banner__box {
    padding: 28px;
  }

  .care-banner .btn {
    min-width: 260px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 28px);
  }

  .header__inner {
    justify-content: center;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .logo img {
    width: 140px;
  }

  .header__icons {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    gap: 34px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav a,
  .nav__link,
  .nav__link--active {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--color-surface-light);
    text-align: center;
    line-height: 1.25;
  }

  .hero__box {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .hero__content {
    position: relative;
    left: auto;
    top: auto;
    max-width: none;
    padding: 34px 22px 10px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .hero p {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .hero__img {
    height: 270px;
    object-position: center bottom;
  }

  .btn {
    width: 100%;
    min-width: 0;
    height: 56px;
    font-size: 17px;
  }

  .features {
    padding: 34px 0 46px;
  }

  .features__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature {
    align-items: flex-start;
  }

  .feature img {
    width: 40px;
  }

  .animals,
  .reasons {
    padding-bottom: 46px;
  }

  .animals h2,
  .reasons h2 {
    margin: 28px 0 34px;
    font-size: 28px;
  }

  .animals__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

  .animal-card {
    gap: 14px;
  }

  .animal-card__img img {
    width: 72%;
    height: 72%;
  }

  .animal-card span {
    font-size: 16px;
    text-align: center;
  }

  .reasons__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reason-card {
    height: auto;
    min-height: 125px;
    padding: 22px;
  }

  .reason-card strong {
    font-size: 82px;
  }

  .care-banner__box {
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    text-align: center;
  }

  .care-banner__box img {
    width: 180px;
  }

  .care-banner__line {
    width: 92px;
    height: 4px;
    margin: 0;
  }

  .care-banner__text p {
    padding-right: 0;
    font-size: 16px;
  }

  .care-banner .btn {
    min-width: 0;
  }

  .auth-modal__window {
    width: calc(100% - 24px);
    padding: 28px 20px;
  }

  .cart-drawer {
    width: min(100%, 430px);
  }
}

@media (max-width: 430px) {
  .container {
    width: calc(100% - 22px);
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .hero__img {
    height: 220px;
  }

  .animals__grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
  }

  .reason-card {
    align-items: flex-start;
  }

  .cart-item {
    grid-template-columns: 74px 1fr;
    padding: 12px;
  }

  .cart-item__img {
    width: 74px;
    height: 74px;
  }

  .cart-item__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== Бургер-меню на телефоне ===== */
.burger-toggle,
.burger-button {
  display: none;
}

.burger-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .header {
    height: auto;
    position: relative;
    z-index: 100;
  }

  .header__inner {
    min-height: 70px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    padding: 10px 0;
  }

  .logo {
    width: auto;
    order: 1;
    justify-content: flex-start;
  }

  .logo img {
    width: 132px;
  }

  .header__icons {
    width: auto;
    order: 2;
    justify-content: flex-end;
    gap: 18px;
    margin-left: auto;
  }

  .burger-button {
    width: 42px;
    height: 42px;
    order: 3;
    display: inline-flex;
    flex: 0 0 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface-light);
    cursor: pointer;
  }

  .burger-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-primary);
    transition: 0.2s;
  }

  .nav {
    width: 100%;
    order: 4;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 8px 0 2px;
  }

  .burger-toggle:checked ~ .nav {
    display: grid;
  }

  .burger-toggle:checked + .burger-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger-toggle:checked + .burger-button span:nth-child(2) {
    opacity: 0;
  }

  .burger-toggle:checked + .burger-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav a,
  .nav__link,
  .nav__link--active {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--color-surface-light);
    text-align: center;
    line-height: 1.25;
  }
}

@media (max-width: 430px) {
  .header__icons {
    gap: 14px;
  }

  .logo img {
    width: 122px;
  }

  .icon-link.icon-button.js-open-cart img {
    width: 30px;
  }

  .icon-link.icon-button.js-open-auth img,
  .user-menu__button img,
  .icon-link[aria-label="Профиль"] img {
    width: 22px;
  }
}
