/* ==========================================================================
   ЭкоЛира — лендинг
   Дизайн: Figma "StartUp'ы" / ЭКОЛИРА #303:974
   Фиксированная сетка 1440px, масштабируется скриптом под ширину окна
   ========================================================================== */

:root {
  --green: #658B03;          /* фирменный зелёный (фон лендинга) */
  --dark:  #012A07;          /* тёмно-зелёный */
  --mid:   #346630;          /* средне-зелёный (карточки) */
  --ink:   #121108;          /* почти чёрный (текст меню) */
  --white: #ffffff;
  --soft:  rgba(255, 255, 255, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  background: var(--green);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* Масштабирование фиксированного макета под ширину экрана */
.page {
  width: 1440px;
  transform-origin: top left;
}

.landing {
  width: 1440px;
  padding: 20px;
  background: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  width: 1400px;
  height: 874px;
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(rgba(34, 34, 34, 0.25), rgba(34, 34, 34, 0.25)),
    url('../assets/hero-bg.jpg') center / cover no-repeat;
}

/* мягкая затемняющая полоса под навигацией (для читаемости логотипа) */
.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 129px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.hero-nav {
  position: relative;
  z-index: 2;
  padding: 40px 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  line-height: 0;
}

.logo {
  width: 209px;
  height: 52px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #F4F4F4;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.nav-btn:hover {
  background: rgba(18, 17, 8, 0.08);
}

.nav-btn img {
  width: 24px;
  height: 24px;
}

/* плавный переход изображения в зелёный фон страницы */
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 356px;
  z-index: 3;
  background: linear-gradient(180deg, rgba(101, 139, 3, 0) 0%, rgba(101, 139, 3, 1) 100%);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 602px;
  transform: translateX(-50%);
  z-index: 4;
  width: 658px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  color: var(--white);
  text-align: center;
}

.hero-title .w700 {
  font-weight: 700;
  font-style: normal;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
  text-align: center;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.8;
  color: var(--white);
  text-decoration: none;
}

.hero-scroll span {
  font-size: 24px;
  font-weight: 500;
}

.hero-scroll img {
  width: 32px;
  height: 32px;
  animation: hero-bounce 2.4s ease-in-out infinite;
}

@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ==========================================================================
   О ПРОЕКТЕ
   ========================================================================== */

.about {
  width: 1400px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-h {
  width: 1102px;
  font-size: 36px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  color: var(--white);
}

.about-h .n {
  font-style: normal;
}

.about-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.about-label {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.about-mission {
  width: 573px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.about-visual {
  position: relative;
  width: 1320px;
  height: 654px;
}

.about-visual-img {
  width: 1320px;
  height: 654px;
  border-radius: 48px;
  object-fit: cover;
}

/* --- карточки преимуществ --- */

.card {
  position: absolute;
  width: 331px;
  height: 470px;
  border-radius: 32px;
  background: var(--mid);
  overflow: hidden;
}

.card-1 { left: 82px;  top: 52px; }
.card-2 { left: 495px; top: 92px; }
.card-3 { left: 908px; top: 132px; }

.card-img {
  position: absolute;
  left: 1px;
  top: 52px;
  width: 329px;
  height: 367px;
  background-size: cover;
  background-position: center;
}

.card-mark {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 92px;
  height: 13px;
}

.card-text {
  position: absolute;
  left: 21px;
  top: 258px;
  width: 186px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-1 .card-text { width: 165px; }
.card-2 .card-text { width: 186px; }
.card-3 .card-text { width: 182px; }

.card-text h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

.card-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--white);
}

.card-dots {
  position: absolute;
  left: 20px;
  top: 438px;
  display: flex;
  gap: 12px;
}

.card-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
}

.card-arrow {
  position: absolute;
  left: 287px;
  top: 432px;
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   ТЕХНОЛОГИЯ
   ========================================================================== */

.tech {
  width: 1440px;
  margin: 0 -20px;
  padding: 60px;
  border-radius: 64px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tech-h {
  width: 1102px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.tech-h em {
  font-style: italic;
}

.tech-sub {
  width: 1102px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
}

.tech-visual {
  position: relative;
  width: 1320px;
  height: 650px;
}

.tech-img {
  position: absolute;
  left: 47px;
  top: 0;
  width: 1266px;
  height: 603px;
  object-fit: cover;
}

/* --- шаги выращивания --- */

.step {
  position: absolute;
}

.step-num {
  position: absolute;
}

.step-card {
  position: absolute;
  z-index: 1;
  padding: 24px;
  border-radius: 32px;
  background: var(--green);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

.step-card p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--white);
}

.step-1 .step-num { left: 47px;  top: 425px; width: 96px;  height: 101px; }
.step-1 .step-card { left: 69px;  top: 500px; width: 314px; }

.step-2 .step-num { left: 699px; top: 427px; width: 86px;  height: 92px; }
.step-2 .step-card { left: 484px; top: 502px; width: 310px; }

.step-3 .step-num { left: 1133px; top: 438px; width: 86px; height: 92px; }
.step-3 .step-card { left: 904px;  top: 500px; width: 315px; }

/* ==========================================================================
   ПРОДУКЦИЯ / КАРУСЕЛЬ
   ========================================================================== */

.products {
  position: relative;
  width: 1440px;
  margin: 0 -20px;
  height: 934px;
}

.products-head {
  position: absolute;
  left: 60px;
  top: 50px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.products-head h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.products-head p {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
}

.products-head em {
  font-style: italic;
}

.slider {
  position: absolute;
  inset: 0;
}

.slider-viewport {
  width: 1440px;
  height: 934px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 934px;
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
  position: relative;
  flex-shrink: 0;
  width: 1440px;
  height: 934px;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.slide-card {
  position: absolute;
  z-index: 2;
  padding: 24px;
  border-radius: 32px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide-card h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

.slide-card p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--white);
}

.slide .line {
  position: absolute;
  z-index: 2;
}

.slide-1 .line { left: 220px; top: 643px; width: 291px; height: 291px; }
.slide-1 .slide-card { left: 125px; top: 555px; width: 355px; }

.slide-2 .line { left: 893px; top: 654px; width: 309px; height: 301px; }
.slide-2 .slide-card { left: 888px; top: 559px; width: 349px; }

.slide-3 .line { left: 836px; top: 713px; width: 234px; height: 227px; }
.slide-3 .slide-card { left: 778px; top: 581px; width: 393px; }

/* --- стрелки карусели --- */

.slider-arrow {
  position: absolute;
  top: 434px;
  z-index: 6;
  width: 66px;
  height: 66px;
  border: none;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.slider-arrow img {
  width: 66px;
  height: 66px;
}

.slider-arrow:hover {
  transform: scale(1.06);
}

.slider-arrow.prev { left: 70px; }
.slider-arrow.prev img { transform: scaleX(-1); }
.slider-arrow.prev:hover img { transform: scaleX(-1) scale(1.06); }

.slider-arrow.next { right: 70px; }

.slider-arrow.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* рваный край снизу слайдов, переходящий в зелёный фон */
.torn-edge {
  position: absolute;
  left: 0;
  top: 811px;
  z-index: 3;
  width: 1440px;
  height: 181px;
  background-color: var(--green);
  background-image: url('../assets/torn-green.png');
  background-size: 1440px 181px;
  background-repeat: no-repeat;
  background-position: center bottom;
  pointer-events: none;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  width: 1400px;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-card {
  position: relative;
  width: 1320px;
  height: 552px;
  border-radius: 48px;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/cta-bg.jpg') center / cover no-repeat;
}

.cta-content {
  position: absolute;
  left: 290px;
  top: 186px;
  width: 727px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cta-content h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.cta-content p {
  width: 869px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 16px;
  background: var(--white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.cta-btn:hover {
  transform: scale(1.03);
}

.cta-btn img {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */

.footer {
  width: 1400px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-top {
  width: 1372px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contacts h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
}

.contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact:hover {
  color: var(--white);
}

.contact img {
  width: 24px;
  height: 24px;
}

/* баннер фонда */
.footer-fasie {
  width: 1372px;
  height: 126px;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 230, 202, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  backdrop-filter: blur(12.5px);
}

.footer-fasie .fasie {
  width: 139px;
  height: 66px;
  flex-shrink: 0;
}

.footer-fasie p {
  width: 1069px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--white);
}

.footer-bottom {
  width: 1340px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--soft);
}

.footer-bottom .dev {
  text-decoration: underline;
}
