/* =====================================================
   АГРОМАШ ТЕХНОЛОГІЯ — style.css
   Theme: Dark Navy #0d1b2e + Orange #e8640a
   ===================================================== */

/* ── Variables ── */
:root {
  --navy:       #0d1b2e;
  --navy-mid:   #162540;
  --navy-light: #1e3354;
  --orange:     #e8640a;
  --orange-l:   #f47c2a;
  --orange-dark:#c4520a;
  --white:      #ffffff;
  --gray:       #f4f5f7;
  --gray-mid:   #dde1e7;
  --text:       #1a1a2e;
  --text-muted: #7a8394;
  --black:      #111827;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(13,27,46,0.10);
  --transition: 0.25s ease;
  --header-h:   120px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; letter-spacing: 0.02em;
  border-radius: var(--radius); transition: all var(--transition);
  padding: 0.75rem 1.5rem; font-size: 0.9rem; line-height: 1;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-l); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,100,10,0.35); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.65); }
.btn--outline:hover { border-color: var(--orange); color: var(--orange); }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--lg { padding: 0.95rem 2rem; font-size: 0.95rem; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Section head ── */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 900; color: var(--navy); line-height: 1.15; margin-bottom: 0.5rem; }
.section-sub { font-size: 1rem; color: var(--text-muted); }
.section-head::after { content: ''; display: block; width: 48px; height: 3px; background: var(--orange); margin: 1.25rem auto 0; border-radius: 2px; }


/* ====================================================
   HEADER
   ==================================================== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: box-shadow var(--transition); }

.header__topbar {
  background: var(--navy);
  padding: 0.55rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.header__top-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.header__top-address {
  display: flex; align-items: center; gap: 0.4rem;
}
.header__top-contacts { display: flex; align-items: center; gap: 1.5rem; }
.header__top-link { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.header__top-link:hover { color: var(--orange); }
.header__top-phone { color: var(--orange); font-weight: 700; font-size: 0.88rem; }

.header__main {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  transition: box-shadow var(--transition);
}
.header--scrolled .header__main { box-shadow: 0 4px 20px rgba(13,27,46,0.12); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 72px;
}

/* Logo */
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo__main { font-size: 1.05rem; font-weight: 900; color: var(--navy); letter-spacing: -0.01em; }
.logo__accent { color: var(--orange); }
.logo__sub { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; }
.logo--footer .logo__main { font-size: 0.95rem; color: var(--white); }

/* Nav */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  padding: 0.5rem 0.9rem; font-size: 0.875rem; font-weight: 600;
  color: var(--text); border-radius: 6px; transition: all var(--transition);
}
.nav__link:hover, .nav__link--active { color: var(--orange); background: rgba(232,100,10,0.07); }

.header__cta .btn { white-space: nowrap; }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; padding: 6px; border-radius: 6px;
  background: var(--gray); transition: background var(--transition);
}
.burger:hover { background: rgba(232,100,10,0.12); }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--transition); }


/* ====================================================
   HERO
   ==================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
}
.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,27,46,0.92) 0%,
    rgba(13,27,46,0.80) 50%,
    rgba(13,27,46,0.45) 100%
  );
}
.hero__content {
  position: relative; z-index: 1;
  padding: 4rem 1.5rem;
  max-width: 740px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,100,10,0.6); }
  50%       { box-shadow: 0 0 0 8px rgba(232,100,10,0); }
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900; color: var(--white);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero__title em { color: var(--orange); font-style: normal; }
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.78); line-height: 1.6;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero__stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 1.25rem 2rem;
  backdrop-filter: blur(8px);
  width: fit-content;
}
.hero__stat { text-align: center; padding: 0 2rem; }
.hero__stat-num { font-size: 1.3rem; font-weight: 900; color: var(--orange); line-height: 1; }
.hero__stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-top: 0.3rem; letter-spacing: 0.04em; }
.hero__stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

/* Scroll hint */
.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); z-index: 1;
}
.hero__scroll-arrow {
  width: 1.5px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%       { opacity: 1; transform: scaleY(1) translateY(0); }
  50%      { opacity: 0.4; transform: scaleY(0.5); }
  100%     { opacity: 1; transform: scaleY(1) translateY(0); }
}


/* ====================================================
   SERVICES — editorial row list
   ==================================================== */
.services { background: var(--white); padding: 0 0 4rem; }

.services__head {
  background: var(--navy);
  padding: 3.5rem 0;
  margin-bottom: 0;
}
.services__head-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.services__overline {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem;
}
.services__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900; color: var(--white); line-height: 1.1;
}
.services__intro {
  max-width: 380px; font-size: 0.95rem;
  color: rgba(255,255,255,0.55); line-height: 1.7;
  text-align: right;
}

/* Row list */
.svc-list { border-top: 1px solid var(--gray-mid); }

.svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 280px 48px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--gray-mid);
  color: var(--navy);
  border-left: 4px solid transparent;
  padding-left: 1rem;
  margin-left: -1rem;
  transition: border-color var(--transition), background var(--transition), padding-left var(--transition);
}
.svc-row:hover {
  border-left-color: var(--orange);
  background: rgba(232,100,10,0.03);
  padding-left: 1.5rem;
}
.svc-row__num {
  font-size: 2.2rem; font-weight: 900;
  color: rgba(13,27,46,0.1);
  line-height: 1;
  transition: color var(--transition);
}
.svc-row:hover .svc-row__num { color: var(--orange); }
.svc-row__title {
  font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.3;
}
.svc-row__desc {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
}
.svc-row__arrow {
  font-size: 1.4rem; color: var(--text-muted); text-align: right;
  transition: color var(--transition), transform var(--transition);
}
.svc-row:hover .svc-row__arrow { color: var(--orange); transform: translateX(4px); }

.services__cta-bar {
  display: flex; justify-content: center;
  padding-top: 2.5rem;
}


/* ====================================================
   ABOUT — full-width split
   ==================================================== */
.about { padding: 0; }

.about__split {
  display: flex; min-height: 560px;
}

/* Left dark panel */
.about__dark {
  flex: 0 0 42%;
  background: var(--navy);
  padding: 5rem 3.5rem 4rem;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 0;
}
.about__overline {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 1rem; display: block;
}
.about__dark-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900; color: var(--white);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.about__dark-title em { color: var(--orange); font-style: normal; }

.about__dark-stats {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.about__dark-stat {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.about__dark-stat-val {
  font-size: 1.1rem; font-weight: 800; color: var(--orange);
  line-height: 1; margin-bottom: 0.2rem;
}
.about__dark-stat-key {
  font-size: 0.75rem; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.07em;
}

.about__dark-director {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}
.about__dark-director-label {
  display: block; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 0.3rem;
}
.about__dark-director-name {
  font-size: 0.9rem; font-weight: 600; color: var(--white);
}

/* Right light panel */
.about__light {
  flex: 1;
  background: var(--gray);
  padding: 5rem 4rem 4rem;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
}
.about__desc {
  font-size: 1rem; line-height: 1.8; color: #444;
  max-width: 540px;
}
.about__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.about__fact {
  display: flex; align-items: flex-start; gap: 0.8rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--orange);
}
.about__fact-icon {
  color: var(--orange); flex-shrink: 0; margin-top: 2px;
}
.about__fact-title {
  font-size: 0.88rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.2rem;
}
.about__fact-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

.about__light-contacts {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--gray-mid);
}
.about__light-contact-link {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; font-weight: 600; color: var(--navy);
  transition: color var(--transition);
}
.about__light-contact-link:hover { color: var(--orange); }
.about__light-contact-link svg { color: var(--orange); flex-shrink: 0; }
.about__light-address {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
}
.about__light-address svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }


/* ====================================================
   WHY US
   ==================================================== */
.why-us { background: var(--navy); }
.why-us .section-title { color: var(--white); }
.why-us .section-sub   { color: rgba(255,255,255,0.5); }
.why-us .section-head::after { background: var(--orange); }

.why-us__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.benefit-card {
  background: var(--navy-mid); border-radius: var(--radius); padding: 2rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition), border-color var(--transition);
}
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(232,100,10,0.4); }
.benefit-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border: 2.5px solid var(--orange); border-radius: 10px;
  font-size: 1.75rem; font-weight: 900; color: var(--orange);
  line-height: 1; margin-bottom: 1rem;
}
.benefit-card__title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.benefit-card__desc { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6; }


/* ====================================================
   CONTACTS
   ==================================================== */
.contacts { background: var(--gray); }
.contacts__grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 3rem; align-items: start;
}
.contacts__info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-block__label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); margin-bottom: 0.25rem;
}
.contact-block__value { font-size: 1.05rem; font-weight: 600; color: var(--navy); line-height: 1.5; }
.contact-block__value--link:hover { color: var(--orange-dark); text-decoration: underline; }
.contact-block__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

.contacts__form {
  background: var(--white); border-radius: 12px; padding: 2rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--orange);
}
.form__title { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 0.25rem; }
.form__note { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.form__group { margin-bottom: 1rem; }
.form__label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.form__input {
  width: 100%; padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-mid); border-radius: var(--radius);
  font: inherit; font-size: 0.925rem; color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form__input::placeholder { color: #bbb; }
.form__input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,100,10,0.15); }
.form__input.error { border-color: #e74c3c; }
.form__textarea { resize: vertical; min-height: 110px; }

.form__status {
  margin-top: 0.75rem; font-size: 0.875rem; padding: 0.6rem 0;
  border-radius: var(--radius); text-align: center;
}
.form__status--ok    { color: #27ae60; }
.form__status--error { color: #e74c3c; }


/* ====================================================
   FOOTER
   ==================================================== */
.footer { background: var(--navy); padding: 3.5rem 0 0; }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__desc { font-size: 0.875rem; color: rgba(255,255,255,0.4); margin-top: 0.75rem; line-height: 1.6; }
.footer__nav-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.footer__nav-link { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.55); margin-bottom: 0.5rem; transition: color var(--transition); }
.footer__nav-link:hover { color: var(--orange); }
.footer__address { line-height: 1.6; cursor: default; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; }
.footer__copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer__back { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer__back:hover { color: var(--orange); }


/* ====================================================
   SCROLL REVEAL
   ==================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1100px) {
  .svc-row { grid-template-columns: 60px 1fr 200px 40px; gap: 1rem; }
  .about__dark  { flex: 0 0 45%; padding: 4rem 2.5rem 3rem; }
  .about__light { padding: 4rem 2.5rem 3rem; }
  .why-us__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .header__topbar { display: none; }
  :root { --header-h: 72px; }

  .nav { display: none; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 1rem 0; border-bottom: 3px solid var(--orange); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  .nav.open { display: flex; }
  .nav__link { padding: 0.75rem 1.5rem; border-radius: 0; font-size: 1rem; color: var(--navy); }
  .header__cta { display: none; }
  .burger { display: flex; }

  .hero__stats { flex-wrap: wrap; gap: 0.5rem; padding: 1rem; }
  .hero__stat-divider { display: none; }
  .hero__stat { padding: 0.5rem 1rem; }

  /* Services rows: stack desc under title */
  .services__head { padding: 2.5rem 0; }
  .services__head-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .services__intro { text-align: left; max-width: 100%; }
  .svc-row { grid-template-columns: 48px 1fr 36px; }
  .svc-row__desc { display: none; }

  /* About split: stack vertically */
  .about__split    { flex-direction: column; }
  .about__dark     { flex: none; padding: 3rem 1.5rem 2.5rem; }
  .about__light    { padding: 2.5rem 1.5rem; }
  .about__facts    { grid-template-columns: 1fr; }

  .why-us__grid      { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid    { grid-template-columns: 1fr; }
  .footer__inner     { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero__title  { font-size: 2rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .why-us__grid { grid-template-columns: 1fr; }
  .contact-block__actions { flex-direction: column; }
  .btn--full { width: 100%; justify-content: center; }
  .svc-row { grid-template-columns: 40px 1fr 30px; gap: 0.75rem; }
  .svc-row__num { font-size: 1.5rem; }
}
