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

html {
  font-size: clamp(14px, 2.2vw, 18px);
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #f8fafc;
  min-height: 100vh;
  background: #0b1220;
  line-height: 1.45;
}

a {
  color: #cbd5e1;
  text-decoration: none;
}
a:hover { color: #fde68a; }

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}
.container.narrow { width: min(760px, calc(100% - 2rem)); }

/* HERO - 100% Dynamic Viewport Height for Mobile */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: #0c1222;
  background-image: url("/images/hero.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(30, 58, 138, 0.60) 50%,
    rgba(15, 23, 42, 0.95) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 3.8rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.eu-badge__flag { width: 2.4rem; height: 2.2rem; display: block; }

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e2e8f0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero__line--accent {
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  font-weight: 700;
  color: #fde68a;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero__details {
  font-size: clamp(0.85rem, 2.2vw, 0.98rem);
  line-height: 1.45;
  margin: 0 auto 1.1rem;
  color: rgba(248, 250, 252, 0.92);
  max-width: 28rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 22rem;
  padding: 0.9rem 1.4rem;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(250, 204, 21, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(250, 204, 21, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.cta:active { transform: translateY(0); }
.cta:disabled { opacity: 0.65; cursor: wait; transform: none; }

.cta--secondary { max-width: 20rem; }

.hero__hint {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.65);
  min-height: 1.1em;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.8rem;
}
.hero__pills span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

/* SECTIONS */
.section {
  padding: 3.5rem 0;
  background: #0b1220;
}
.section--alt { background: #0f172a; }

.section__title {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.section__lead {
  text-align: center;
  color: #94a3b8;
  margin: 0 auto 1.8rem;
  max-width: 36rem;
  font-size: 0.92rem;
}

/* КАРТОЧКИ С ФОТО-ФОНОМ НА ВЕСЬ КВАДРАТ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  position: relative;
  border-radius: 20px;
  padding: 1.8rem 1.4rem;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Тёмная вуаль поверх фото для идеальной читаемости текста */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.82) 0%,
    rgba(11, 18, 32, 0.94) 100%
  );
  z-index: 1;
}

.card h3,
.card ul {
  position: relative;
  z-index: 2;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.card ul {
  list-style: none;
  color: #e2e8f0;
  font-size: 0.92rem;
}

.card li {
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
}

.card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #facc15;
  font-size: 1.1rem;
  line-height: 1;
}

/* Фоны для каждой карточки */
.card--factory { background-image: url('/images/card-factory.jpg'); }
.card--warehouse { background-image: url('/images/card-warehouse.jpg'); }
.card--farm { background-image: url('/images/card-farm.jpg'); }

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.benefit {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.1rem;
}
.benefit strong { display: block; margin-bottom: 0.3rem; font-size: 0.98rem; }
.benefit p { color: #94a3b8; font-size: 0.88rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.step {
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 1.1rem 0.7rem;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #facc15;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.step p { color: #94a3b8; font-size: 0.85rem; }

.cta-wrap { display: flex; justify-content: center; margin-top: 1.8rem; }

.info-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1.2rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}
.info-box p + p { margin-top: 0.6rem; }

/* FOOTER */
.footer {
  background: #070b14;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 0 1rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.footer__brand { font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.footer__text { color: #94a3b8; font-size: 0.85rem; max-width: 22rem; }
.footer__title { font-weight: 700; margin-bottom: 0.5rem; color: #e2e8f0; font-size: 0.9rem; }
.footer a { display: block; font-size: 0.85rem; margin: 0.25rem 0; color: #94a3b8; }
.footer__bottom {
  text-align: center;
  color: #64748b;
  font-size: 0.78rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* RESPONSIVE OPTIMIZATION */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 0.8rem 0.8rem 1.2rem; }
  .eu-badge { width: 3.2rem; height: 3.2rem; margin-bottom: 0.5rem; }
  .eu-badge__flag { width: 2rem; height: 2rem; }
  .hero__title { font-size: 1.65rem; }
  .hero__line--accent { font-size: 1.1rem; margin-bottom: 0.4rem; }
  .hero__details { font-size: 0.82rem; margin-bottom: 0.9rem; line-height: 1.38; }
  .cta { padding: 0.8rem 1.2rem; font-size: 0.95rem; }
  .hero__pills { margin-top: 0.6rem; gap: 0.3rem; }
  .hero__pills span { font-size: 0.68rem; padding: 0.25rem 0.55rem; }
  .steps { grid-template-columns: 1fr; }
}
