/* ==========================================================================
   Гранулированный навоз КРС — Landing Page Styles
   Mobile-first, high-conversion design
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --color-accent: #E60000;
  --color-accent-bright: #FF0000;
  --color-gold: #FFD700;
  --color-orange: #FFAA00;
  --color-green-dark: #1a3d1a;
  --color-green-mid: #2d5a27;
  --color-earth: #3d2914;
  --color-earth-light: #5c3d1e;
  --color-text: #ffffff;
  --color-text-dark: #1a1a1a;
  --color-bg-section: #1e3318;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow-btn: 0 4px 20px rgba(230, 0, 0, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  /* --header-height задаётся в logos.css под размер logo.png */
  --header-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-green-dark) 0%, var(--color-earth) 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* logo.png и maxlogo.png — не сжимать глобальным правилом выше */
img.file-logo,
img.file-maxlogo {
  max-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Typography --- */
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.section__subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.section {
  padding: 64px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Красная кнопка звонка */
.btn--call {
  background: linear-gradient(135deg, var(--color-accent-bright), var(--color-accent));
  color: #fff;
  box-shadow: var(--shadow-btn);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn--call:hover {
  background: linear-gradient(135deg, #ff3333, var(--color-accent-bright));
  box-shadow: 0 6px 28px rgba(255, 0, 0, 0.6);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn--outline:hover {
  background: var(--color-gold);
  color: var(--color-text-dark);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.875rem;
  margin-top: 8px;
  width: 100%;
}

.btn--lg {
  padding: 18px 32px;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
}

/* Пульсация CTA */
.btn--pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(230, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 0, 0, 0.8), 0 0 0 8px rgba(255, 0, 0, 0.15);
  }
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 61, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-gold);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}


.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: 24px;
}

.nav__link {
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-gold);
}

.header__phone {
  display: none;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-gold);
  font-size: 1rem;
}

/* Бургер-меню */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Мобильное меню открыто */
.nav.open {
  display: flex;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(26, 61, 26, 0.98);
  align-items: center;
  justify-content: center;
}

.nav.open .nav__list {
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.nav.open .nav__link {
  font-size: 1.25rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 32px) 0 48px;
  background:
    linear-gradient(135deg, rgba(26, 61, 26, 0.88) 0%, rgba(61, 41, 20, 0.85) 100%),
    url('../img/foto1.jfif') center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 170, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(255, 170, 0, 0.4);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-bottom: 40px;
}

.hero__cta .btn {
  width: 100%;
  max-width: 340px;
  padding: 18px 24px;
  font-size: 1.05rem;
}


.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.hero__stat {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-gold);
}

.hero__stat span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

/* --- Benefits --- */
.benefits {
  background: var(--color-bg-section);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.benefit-card {
  background: linear-gradient(145deg, rgba(45, 90, 39, 0.6), rgba(30, 51, 24, 0.8));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
}

.benefit-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Gallery --- */
.gallery {
  background: linear-gradient(180deg, var(--color-earth) 0%, var(--color-green-dark) 100%);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
  aspect-ratio: 4 / 3;
}

.gallery__item:hover {
  border-color: var(--color-gold);
  transform: scale(1.02);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover::after {
  opacity: 1;
}

/* --- Steps --- */
.steps {
  background: var(--color-bg-section);
}

.steps__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.step-card {
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.step-card__num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 12px;
}

.step-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.step-card__arrow {
  font-size: 1.5rem;
  color: var(--color-gold);
  transform: rotate(90deg);
}

.steps__cta {
  text-align: center;
}

/* --- Reviews --- */
.reviews {
  background: linear-gradient(180deg, var(--color-green-dark), var(--color-earth-light));
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.review-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.review-card__stars {
  color: var(--color-gold);
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card__text {
  font-style: italic;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-green-mid), var(--color-earth));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--color-gold);
}

.review-card__author strong {
  display: block;
  color: var(--color-gold);
}

.review-card__author span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* До/После блок */
.results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.results__item {
  width: 100%;
  text-align: center;
}

.results__label {
  display: block;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.results__box {
  padding: 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

.results__box--before {
  background: rgba(100, 60, 40, 0.5);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.results__box--after {
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.8), rgba(26, 61, 26, 0.9));
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 1.1rem;
}

.results__arrow {
  font-size: 2rem;
  color: var(--color-accent);
}

/* --- Delivery --- */
.delivery {
  background: linear-gradient(180deg, var(--color-earth), var(--color-green-dark));
}

.delivery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.delivery-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.delivery-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.delivery-card h3 {
  font-family: var(--font-heading);
  color: var(--color-gold);
  margin-bottom: 8px;
}

.delivery-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Contacts --- */
.contacts {
  background: var(--color-bg-section);
  padding-bottom: 100px;
}

.contacts__info--centered {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.contacts__info--centered .contacts__buttons {
  align-items: center;
}

.contacts__phone {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 8vw, 2.5rem);
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.contacts__phone:hover {
  color: var(--color-accent-bright);
}

.contacts__schedule {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.contacts__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contacts__buttons .btn {
  width: 100%;
}

.contacts__address {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Footer --- */
.footer {
  background: var(--color-earth);
  border-top: 2px solid var(--color-gold);
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__phone {
  font-weight: 700;
  color: var(--color-gold);
}

.footer__phone:hover {
  color: var(--color-accent-bright);
}

/* --- Fixed Call Button (mobile) --- */
.fixed-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, var(--color-accent-bright), var(--color-accent));
  color: #fff;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 -4px 20px rgba(230, 0, 0, 0.5);
  animation: pulse 2s infinite;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.fixed-call-btn .icon-phone {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}


/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--transition);
}

.lightbox__close:hover {
  background: var(--color-accent-bright);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive — Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .burger {
    display: none;
  }

  .nav {
    display: block;
  }

  .header__phone {
    display: block;
  }

  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }

  .hero__cta .btn {
    width: auto;
    min-width: 240px;
  }

  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps__grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .step-card__arrow {
    transform: none;
    align-self: center;
  }

  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .delivery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts__buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contacts__buttons .btn {
    width: auto;
    flex: 1;
    min-width: 200px;
  }

  .results {
    flex-direction: row;
    max-width: 700px;
  }

  .results__arrow {
    align-self: center;
  }

  /* На планшетах скрываем нижнюю фиксированную кнопку */
  .fixed-call-btn {
    display: none;
  }

  .contacts {
    padding-bottom: 64px;
  }
}

/* ==========================================================================
   Responsive — Desktop (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .delivery__grid {
    grid-template-columns: repeat(4, 1fr);
  }

}

/* Уменьшенная анимация для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
