:root {
    --bg-color: #fef6e3;
    --primary-color: #ee6902;
    --secondary-color: #1483ba;
    --text-color: #000000;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--bg-color);
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, #fff5d9 100%);
}

.hero-title {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #ff7b1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(238, 105, 2, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1a9dd9;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 131, 186, 0.4);
}

.btn-icon {
    height: 0px;
    width: auto;
    filter: brightness(0) invert(1);
}

.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hits {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    animation: fadeIn 0.5s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    background: var(--bg-color);
}

.product-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
    margin-bottom: 15px;
}

.product-features li {
    padding: 5px 0;
    font-size: 0.9em;
}

.product-features li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
}

.product-buttons {
    display: flex;
    gap: 10px;
}

.product-buttons .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9em;
}

.center-button {
    text-align: center;
}

.category-header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, #fff5d9 100%);
}

.category-header h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.category-image {
    height: 200px;
    width: auto;
}

.filters {
    padding: 30px 0;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 20px;
    border: 2px solid var(--secondary-color);
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.chip:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.chip.active {
    background: var(--secondary-color);
    color: var(--white);
}

.where-to-buy {
    padding: 60px 0;
}

.where-to-buy h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 40px;
}

.marketplace-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.marketplace-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.marketplace-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.marketplace-icon {
    font-size: 2.5em;
}

.marketplace-name {
    font-size: 1.2em;
    font-weight: 600;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 30px;
}

.faq-item {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.faq-item p {
    color: #666;
    line-height: 1.8;
}

.contacts {
    padding: 60px 0;
}

.contacts h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    font-size: 2.5em;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-color);
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

footer {
    background-color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-icon {
        height: 40px;
    }
}
.hero {
    position: relative;
    background: none; /* убери или замени плотный фон */
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1; /* текст будет сверху */
}

.hero .heroimg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 650px;
    object-fit: contain;
    opacity: 0.15; /* чтобы не мешало тексту */
    z-index: 0; /* картинка под текстом */
}
.btn {
    position: relative; /* чтобы картинки позиционировались относительно кнопки */
    overflow: visible; /* чтобы лапки не обрезались */
    margin-top: 70px; /* отступ между кнопкой и картинкой */
}

.btn-animal {
    position: absolute;
    bottom: 90%; /* сидят сверху */
    left: 50%;
    transform: translateX(-50%);
    height: 100px; /* подгони под размер */
    pointer-events: none; /* чтобы не мешали клику */
}

.btn-animal.cat {
    transform: translateX(-50%) rotate(-5deg); /* немного наклоним */
}

.btn-animal.dog {
    transform: translateX(-50%) rotate(5deg);
}
.product-flex {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-main-image {
  width: 300px;
  object-fit: contain;
}

.product-weight {
  width: 150px;
  object-fit: contain;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.ingredients-grid img {
  width: 100%;
  object-fit: contain;
}

.extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.extra-card img {
  width: 100%;
  object-fit: contain;
  margin-top: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}

.hero-title {
  animation: slideIn 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-buttons {
  animation: fadeUp 1.2s ease-in-out 0.3s forwards;
  opacity: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.product-card {
  opacity: 0;
  transform: translateY(30px);
  animation: floatUp 0.8s ease-out forwards;
}

@keyframes floatUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.heroimg {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-15px); }
}
.faq-item {
  transition: all 0.4s ease;
}
.faq-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.slide-in {
  transform: translateX(100%);
  opacity: 0;
}
.slide-in-active {
  transform: translateX(0);
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.hero {
  background: linear-gradient(135deg, var(--bg-color) 0%, #fff5d9 100%);
  background-attachment: fixed;
  background-size: cover;
}
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(238, 105, 2, 0.6);
}

.btn-secondary:hover {
  box-shadow: 0 0 20px rgba(20, 131, 186, 0.5);
}
* {
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
body {
  opacity: 0;
  animation: fadeInBody 0.6s ease forwards;
}

@keyframes fadeInBody {
  to { opacity: 1; }
}
.feature-card:hover img,
.product-card:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
.product-card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.product-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
a, button, input {
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}
.btn-primary:hover {
  filter: brightness(1.05) saturate(1.2);
}
html {
  scroll-behavior: smooth;
}
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
body {
  background: linear-gradient(180deg, #fff9ef 0%, #fff5d9 100%);
  background-attachment: fixed;
}
.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}
.tooltip {
  opacity: 0;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-color);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8em;
  transition: opacity 0.3s;
}

.btn:hover .tooltip {
  opacity: 1;
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.contact-icon:hover {
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}
.btn {
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.btn.tilt-left  { transform: rotate(-1deg) scale(1.02); }
.btn.tilt-right { transform: rotate(1deg) scale(1.02); }
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff5d9 0%, #fff9ef 100%);
}

.about .section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1em;
    color: #444;
    line-height: 1.8;
}
/* === Улучшенный стиль features === */
.features {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, #fffaf0 0%, #fff6e3 100%);
  position: relative;
  overflow: hidden;
}

.features::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, rgba(255, 246, 227, 1), rgba(255, 246, 227, 0));
  pointer-events: none;
}

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

.feature-card {
  background: var(--white);
  border-radius: 25px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 25px 25px 0 0;
  opacity: 0.8;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-card p {
  color: #555;
  font-size: 1em;
  line-height: 1.6;
}

/* Лёгкая анимация появления */
.feature-card {
  opacity: 0;
  transform: translateY(20px);
  animation: riseUp 0.8s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes riseUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === Product page: мобильная адаптация (финальный штиль, всё ниже) === */
@media (max-width: 768px) {
  .product-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 48px !important; /* общий вертикальный отступ между всеми блоками */
  }

  /* сбросим все безумные transform и top */
  .product-grid > * {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    z-index: auto !important;
    width: 100% !important;
  }

  /* заголовки и контейнер */
  .product-title,
  .section-title {
    text-align: center !important;
  }

  .card {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  /* название и вес */
  .name-and-weight {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 28px !important;
  }

  .name-img {
    width: 90% !important;
    max-width: 320px !important;
  }

  .weight-img {
    width: 25% !important;
    max-width: 80px !important;
    margin: 0 auto !important;
  }

  /* пачка — ровно посередине, спокойно живёт */
  .pack-area {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 30px 0 !important;
  }

  .pack-img {
    width: 85% !important;
    max-width: 340px !important;
    height: auto !important;
  }

  /* ингредиенты — опустить ниже пачки */
  .ingredients-area {
    width: 100% !important;
    margin-top: 60px !important; /* было 30px — опускаем ниже */
  }

  .ingredients-col {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    gap: 16px !important;
    padding-left: 0 !important;
    border: none !important;
  }

  .ingredients-col img {
    width: 70% !important;
    max-width: 220px !important;
    height: auto !important;
  }

  /* состав и кормление — ниже ингредиентов */
  .composition-area,
  .feeding-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .composition-area {
    margin-top: 80px !important; /* состав — ниже ингредиентов */
    margin-bottom: 80px !important;
  }

  .feeding-area {
    margin-top: 10px !important; /* кормление — ещё ниже */
  }

  .composition-img,
  .feeding-img {
    width: 90% !important;
    max-width: 440px !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* мелкие экраны: чуть плотнее, но те же пропорции */
@media (max-width: 420px) {
  .product-grid { gap: 40px !important; }
  .pack-img { max-width: 300px !important; }
  .weight-img { max-width: 70px !important; }
  .ingredients-col img { width: 80% !important; }
  .composition-area { margin-top: 70px !important; margin-bottom: 70px !important; }
  .feeding-area { margin-top: 90px !important; }
}
