:root {
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-accent: #f97316;
  --color-accent-strong: #f45b2c;
  --gradient-accent: linear-gradient(135deg, #f45b2c, #fd9474);
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Кнопки (общие) ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px; 
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 14px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  background-color: var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  background-color: #cbd5e1;
}

.btn-compare.is-active {
  background-color: #f45b2c;
  color: #ffffff;
}

[data-cart-add].is-in-cart {
  background-color: #16a34a;
  color: #ffffff;
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
  background: var(--gradient-accent);
  color: white;
}

.text-center {
  text-align: center;
  margin-top: 40px;
}

/* ===== Шапка (общая) ===== */
.header {
  background-color: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-spacer {
  display: block;
  height: 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.header-left,
.header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo__text {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo__img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo__img img {
  width: 100%;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
}

.header-lead-open {
  margin-left: 16px;
}

.header-burger-btn {
  display: none;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-accent);
  cursor: pointer;
}

.header-menu-overlay {
  display: none;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input {
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 190px;
}

.header-search button {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--gradient-accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-search button img,
.header-search-mobile-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.header-nav-close {
  display: none;
}

.header-search-mobile-btn {
  display: none;
  border: 1px solid #dbe4ef;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 16px;
  line-height: 1;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.header-cart-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #dbe4ef;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-cart-btn img {
  width: 16px;
  height: 16px;
}

.header-cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-catalog {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-catalog__toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.nav__link--icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.nav__link--icon img {
  width: 18px;
  height: 18px;
}

.nav-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav__link--compare {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 12px;
}

.nav-catalog__arrow {
  font-size: 12px;
}

.nav-catalog__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  list-style: none;
  padding: 8px;
  display: none;
  z-index: 120;
}

.nav-catalog__dropdown.is-open {
  display: block;
}

.nav-catalog__dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
}

.nav-catalog__dropdown a:hover {
  background: #f8fafc;
  color: #f97316;
}

@media (min-width: 769px) {
  .nav-catalog::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }

  .nav-catalog__dropdown {
    display: block;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-catalog:hover .nav-catalog__dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-catalog:focus-within .nav-catalog__dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-search-mobile-btn {
    display: none !important;
  }
}

.header-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 130;
  padding: 0;
}

.header-search-modal.is-active {
  display: flex;
}

.header-search-modal__dialog {
  width: 100%;
  max-width: min(100%, 760px);
  background: #fff;
  border-radius: 0 0 16px 16px;
  border: 1px solid #e2e8f0;
  border-top: none;
  padding: 14px 14px 16px;
  position: relative;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.header-search-modal.is-active .header-search-modal__dialog {
  transform: translateY(0);
  opacity: 1;
}

.header-search-modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 28px;
  color: #334155;
}

.header-search-modal__form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.header-search-modal__form input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
}

.header-search-modal__form button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--gradient-accent);
  color: #fff;
}

.header-lead-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.header-lead-modal.is-active {
  display: flex;
}

.header-lead-modal__dialog {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.header-lead-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #64748b;
}

.header-lead-modal__title {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #1e293b;
}

.header-lead-modal__subtitle {
  color: #64748b;
  margin-bottom: 18px;
}

.header-lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-lead-form input:not([type="checkbox"]),
.header-lead-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: #1e293b;
}

.header-lead-form textarea {
  resize: vertical;
  min-height: 90px;
}

.header-lead-form input:not([type="checkbox"]):focus,
.header-lead-form textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.header-lead-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.header-lead-form__status {
  margin-top: 12px;
  min-height: 20px;
  font-size: 14px;
}

.header-lead-form__status.is-success {
  color: #16a34a;
}

.header-lead-form__status.is-error {
  color: #dc2626;
}

/* ===== Заголовки секций (общие) ===== */
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  font-size: 18px;
}

/* ===== Товары (общие для каталога) ===== */
.products {
  padding: 80px 0;
  background-color: var(--color-surface);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.product-card__image {
  height: 240px;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-card__content {
  padding: 24px;
}

.product-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:visited {
  color: inherit;
}

.product-card__desc {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 14px;
}

.product-card__price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.product-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-card__actions .btn {
  flex: 1 1 140px;
  text-align: center;
  min-width: 0;
}

/* ===== Отзывы (общие) ===== */
.reviews {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.reviews-swiper {
  padding: 20px 0 50px;
}

.review-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.review-card__header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.review-card__avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f97316, #ff8c42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.review-card__info {
  flex: 1;
}

.review-card__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
}

.review-card__rating {
  color: #fbbf24;
  font-size: 14px;
}

.review-card__date {
  color: #94a3b8;
  margin-left: 8px;
  font-size: 12px;
}

.review-card__body {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #334155;
}

.review-card__footer {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.review-card__farm {
  color: var(--color-accent);
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
}

.swiper-pagination-bullet-active {
  background: var(--color-accent) !important;
}


.footer {
  background-color: #1F2732;
  color: white;
  padding: 60px 0 20px;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 100%;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

@media (max-width: 768px) {
  .footer-logo img {
    width: 100%;
    height: 48px;
  }
}

.footer__text {
  margin-top: 12px;
  color: #94a3b8;
}

.footer__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 12px;
  color: #94a3b8;
}

.footer__list a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer__list a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 14px;
}
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.form-consent {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.form-consent a {
  color: inherit;
  text-decoration: underline;
}

.form-consent__check {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: #f97316;
  flex-shrink: 0;
}

.form-consent--dark {
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 18px;
  }
}

@media (max-width: 768px) {
  .header__inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo__text {
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    display: inline-block;
  }
  .logo__img {
    width: 100%;
    height: 100%;
  }
  .logo__img img {
    width: 100%;
    height: 40px;
  }

  .header-left {
    gap: 8px;
  }

  .header-right {
    margin-left: auto;
    gap: 8px;
  }

  .header-burger-btn {
    display: block;
  }

  .header-lead-open {
    display: none;
  }

  .nav {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 340px);
    height: 100vh;
    background: #ffffff;
    z-index: 102;
    padding: 18px 16px;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    transform: translateX(-105%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  }

  .nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .nav__item {
    opacity: 0;
    transform: translateX(-16px);
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.45s ease;
    border-bottom: 1px solid #e2e8f0;
  }

  .nav.is-open .nav__item {
    opacity: 1;
    transform: translateX(0);
  }

  .nav__link,
  .nav-catalog__toggle {
    color: #334155;
    text-align: left;
    width: 100%;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: none;
  }

  .nav__link--icon {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0;
    height: auto;
    gap: 10px;
    padding: 10px 0;
  }

  .nav__link--icon .nav-cart-count {
    position: static;
  }

  .nav__link--compare .nav-cart-count {
    position: static;
    margin-left: 8px;
  }

  .header-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    display: none;
    z-index: 99;
  }

  .header-menu-overlay.is-active {
    display: block;
  }

  .header-nav-close {
    display: block;
    margin-left: auto;
    margin-bottom: 12px;
    background: transparent;
    color: #334155;
    border: none;
    font-size: 34px;
    line-height: 1;
    padding: 0;
  }

  .header-search {
    display: none;
  }

  .header-search-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .header-cart-btn {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .header-search input {
    min-width: 0;
    width: 100%;
  }

  .nav-catalog__dropdown {
    position: static;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0 10px 14px;
    margin-top: 2px;
  }

  .header-search-modal {
    padding: 0;
  }

  .header-search-modal__dialog {
    max-width: 100%;
  }

  .nav-catalog__dropdown a {
    color: #334155;
    padding: 7px 0;
    border-radius: 0;
    border-bottom: 1px solid #eef2f7;
  }

  .nav-catalog__dropdown a:hover {
    background: transparent;
    color: #f97316;
  }

  .section-title {
    font-size: 28px;
  }
  
  .products__grid {
    grid-template-columns: 1fr;
  }
  
  .product-card__actions {
    flex-direction: column;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .container {
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    text-align: center;
  }
  .section-title {
    font-size: 24px;
  }
}