/* ===================== Custom Properties ===================== */
:root {
  --blue:       #1e40af;
  --blue-dark:  #0f172a;
  --blue-mid:   #1e3a5f;
  --amber:      #f59e0b;
  --green:      #16a34a;
  --bg:         #ffffff;
  --bg-light:   #f8fafc;
  --border:     #e2e8f0;
  --text:       #0f172a;
  --text-muted: #64748b;
  --radius:     8px;
  --shadow:     0 1px 4px rgba(0,0,0,0.06);
  --container:  1100px;
}

/* ===================== Reset ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===================== Nav ===================== */
.nav { background: var(--blue); position: sticky; top: 0; z-index: 100; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--container); margin: 0 auto; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-name { color: #fff; font-weight: 800; font-size: 17px; line-height: 1; }
.nav__logo-tag { color: rgba(255,255,255,0.55); font-size: 8px; letter-spacing: 3px; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: opacity .2s;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav__links a:hover, .nav__links a.active { color: #fff; }

/* ===================== Buttons ===================== */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity .2s; border: none; }
.btn:hover { opacity: .88; }
.btn--amber   { background: var(--amber); color: #000; }
.btn--outline { border: 1.5px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn--blue    { background: var(--blue); color: #fff; }

/* ===================== Section base ===================== */
.section { padding: 72px 0; }
.section--light { background: var(--bg-light); }
.section--dark  { background: var(--blue-dark); }
.section__header { text-align: center; margin-bottom: 44px; }
.section__label { font-size: 11px; color: var(--blue); letter-spacing: 2.5px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.section__label--amber { color: var(--amber); }
.section__title { font-size: 28px; font-weight: 900; color: var(--text); line-height: 1.2; }
.section__title--white { color: #fff; }

/* ===================== Hero ===================== */
.hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 55%, var(--blue) 100%); padding: 100px 24px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg,#fff 0,#fff 1px,transparent 0,transparent 50%); background-size: 22px 22px; opacity: .05; pointer-events: none; }
.hero__inner { position: relative; max-width: 640px; margin: 0 auto; }
.hero__badge { display: inline-block; background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.4); color: var(--amber); font-size: 11px; letter-spacing: 2px; padding: 5px 16px; border-radius: 20px; margin-bottom: 22px; }
.hero__title { color: #fff; font-size: 44px; font-weight: 900; line-height: 1.12; margin-bottom: 18px; }
.hero__title span { color: var(--amber); }
.hero__desc { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.75; max-width: 480px; margin: 0 auto 34px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== Sectors ===================== */
.sectors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.sector-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; border-top: 3px solid var(--blue); }
.sector-card__icon { display: flex; justify-content: center; margin-bottom: 14px; }
.sector-card__title { font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 8px; }
.sector-card__desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ===================== Why us ===================== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why-card { background: var(--bg); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); }
.why-card__icon { background: var(--blue); width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-card__title { font-weight: 700; font-size: 13px; color: var(--text); margin-bottom: 3px; }
.why-card__desc { font-size: 12px; color: var(--text-muted); }

/* ===================== Products grid ===================== */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.product-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; display: block; }
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.product-card__img { width: 100%; height: 200px; object-fit: contain; background: var(--bg-light); }
.product-card__img--placeholder { display: flex; align-items: center; justify-content: center; }
.product-card__body { padding: 14px 16px; }
.product-card__name { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 9px; line-height: 1.35; }
.product-card__badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.product-card__link { font-size: 12px; color: var(--blue); font-weight: 600; }

/* ===================== Badges ===================== */
.badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge--blue  { background: #eff6ff; color: var(--blue); }
.badge--green { background: #f0fdf4; color: var(--green); }
.badge--gray  { background: #f1f5f9; color: var(--text-muted); }

/* ===================== Filters ===================== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-btn { padding: 7px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); transition: background .2s, color .2s, border-color .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===================== About ===================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__label { font-size: 11px; color: var(--amber); letter-spacing: 2.5px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.about__title { font-size: 26px; font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 16px; }
.about__text { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.85; margin-bottom: 10px; }
.about__text strong { color: var(--amber); }
.stats { display: flex; flex-direction: column; gap: 12px; }
.stat-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 18px; }
.stat-card__number { font-size: 30px; font-weight: 900; color: var(--amber); line-height: 1; }
.stat-card__label  { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ===================== Contact ===================== */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; margin: 0 auto; }
.contact-form__full { grid-column: 1 / -1; }
.form-label { display: block; font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.form-input, .form-textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; font-family: inherit; background: var(--bg-light); color: var(--text); transition: border-color .2s; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-textarea { height: 114px; resize: vertical; }
.contact-emails { display: flex; justify-content: center; gap: 30px; margin-top: 22px; flex-wrap: wrap; }
.contact-email { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.form-msg { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; margin-top: 14px; display: none; grid-column: 1 / -1; }
.form-msg--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; display: block; }
.form-msg--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; display: block; }

/* ===================== Page header ===================== */
.page-header { background: var(--blue-dark); padding: 40px 0; }
.page-header__label { font-size: 11px; color: var(--amber); letter-spacing: 2.5px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.page-header__title { font-size: 30px; font-weight: 900; color: #fff; line-height: 1.2; }
.page-header__title span { color: rgba(255,255,255,.45); font-size: 18px; font-weight: 400; }

/* ===================== Breadcrumb ===================== */
.breadcrumb { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb__inner { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb__sep { color: var(--text-muted); }
.breadcrumb__current { color: var(--text-muted); }

/* ===================== Product detail ===================== */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 52px 0; }
.gallery__main { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; background: var(--bg-light); }
.gallery__main img { width: 100%; height: 340px; object-fit: contain; cursor: pointer; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.gallery__thumb { border: 2px solid var(--border); border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color .2s; background: var(--bg-light); }
.gallery__thumb img { width: 100%; height: 72px; object-fit: cover; }
.gallery__thumb.active, .gallery__thumb:hover { border-color: var(--blue); }
.product-info__badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.product-info__name { font-size: 24px; font-weight: 900; color: var(--text); line-height: 1.25; margin-bottom: 14px; }
.product-info__desc { font-size: 13px; color: var(--text-muted); line-height: 1.85; margin-bottom: 22px; }
.specs-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.specs-table__head { background: var(--bg-light); padding: 10px 16px; font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.specs-row { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.specs-row:last-child { border-bottom: none; }
.specs-row__key { color: var(--text-muted); }
.specs-row__val { font-weight: 700; color: var(--text); }
.product-info__emails { text-align: center; margin-top: 10px; font-size: 12px; color: var(--text-muted); }

/* ===================== Tractor section ===================== */
.tractor-section { background: var(--blue-dark); padding: 44px 0; }
.tractor-section__label { font-size: 11px; color: var(--amber); letter-spacing: 2.5px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.tractor-section__img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08); }

/* ===================== CTA banner ===================== */
.cta-banner { background: var(--bg-light); border-top: 1px solid var(--border); padding: 28px 0; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-banner__title { font-weight: 700; font-size: 16px; color: var(--text); }
.cta-banner__sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===================== Footer ===================== */
.footer { background: var(--blue-dark); padding: 22px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 12px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer__links a:hover { color: rgba(255,255,255,.7); }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero__title { font-size: 30px; }
  .sectors-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 16px;
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 24px; }
  .contact-emails { flex-direction: column; align-items: center; }
}
