﻿:root {
  --bg: #f4efe6;
  --bg-soft: #fffaf1;
  --ink: #1f2518;
  --earth: #5c3f2f;
  --grain: #d59a2a;
  --leaf: #4f6c3e;
  --line: #dacdb8;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(20, 25, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(213, 154, 42, 0.14), transparent 34%),
    radial-gradient(circle at 90% 85%, rgba(79, 108, 62, 0.14), transparent 32%),
    var(--bg);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
}

img,
iframe {
  max-width: 100%;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(14, 16, 11, 0.3);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: 250ms ease;
}

.site-header.scrolled {
  background: rgba(24, 30, 20, 0.85);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  min-width: 0;
}

.logo-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  margin-left: 0;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.logo span {
  color: var(--grain);
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 20px;
  transition: background-color 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: transparent;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
}

.hero {
  background-image: url("images/JD_pole.jpeg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
  padding: 40px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(10deg, rgba(20, 25, 14, 0.88), rgba(33, 41, 27, 0.48)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 18px 0 8px;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
}

.hero-text {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 190ms ease, background-color 190ms ease, border-color 190ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grain);
  color: #1d1a0f;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #e0aa43;
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.17);
}

.facts {
  margin-top: -46px;
  position: relative;
  z-index: 3;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.fact-card h2 {
  margin: 0;
  color: var(--earth);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.fact-card p {
  margin: 8px 0 0;
  font-weight: 600;
}

.section {
  padding: clamp(74px, 12vw, 120px) 0;
}

.section-label {
  font-family: "Rajdhani", sans-serif;
  color: var(--leaf);
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.1;
  max-width: 750px;
}

.about p {
  max-width: 860px;
  font-size: 1.06rem;
}

.machines {
  background: var(--bg-soft);
}

.machines-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.machine-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--white);
}

.machine-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.machine-card p {
  margin: 8px 0 0;
}

.info-panel {
  margin-top: 26px;
  border-radius: 16px;
  padding: 26px;
  background: linear-gradient(120deg, #31472a, #5c3f2f);
  color: #f5f1e7;
}

.info-panel h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.info-panel ul {
  margin: 0;
  padding-left: 20px;
}

.gallery-title {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 22px;
}

.gallery-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}

.gallery-item img {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease;
  cursor: zoom-in;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.04);
}

.video-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.video-card h3 {
  margin: 0 0 10px;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ads {
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.7), rgba(244, 239, 230, 0.98));
}

.ads-board {
  margin-top: 28px;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.ads-empty {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--earth);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
}

.contact-list p {
  margin: 0 0 6px;
}

.contact-form {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cdbfa7;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(79, 108, 62, 0.34);
  border-color: var(--leaf);
}

.contact-form .btn {
  margin-top: 18px;
  cursor: pointer;
}

.site-footer {
  background: #1f281a;
  color: #dfe7d5;
  padding: 18px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer a {
  color: #f2c970;
  text-decoration: none;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  background: rgba(8, 10, 8, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  margin: 0;
  width: min(1100px, calc(100vw - 160px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.lightbox-caption {
  color: #f8f4ea;
  font-weight: 700;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 980px) {
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 22px 16px;
    gap: 12px;
  }

  .lightbox-figure {
    width: min(100%, calc(100vw - 104px));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100%, 92vw);
  }

  .site-header {
    background: rgba(24, 30, 20, 0.92);
  }

  .nav-wrap {
    min-height: 72px;
    gap: 10px;
  }

  .logo {
    font-size: 1.35rem;
    gap: 10px;
    max-width: calc(100% - 110px);
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .logo-text {
    line-height: 1;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    background: rgba(19, 23, 15, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 10px;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 190ms ease, opacity 190ms ease;
  }

  .site-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    min-height: 100svh;
    padding: 120px 18px 60px;
    background-position: center;
  }

  .hero-kicker {
    font-size: 0.72rem;
    padding: 6px 12px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.4rem);
    line-height: 0.95;
    margin: 16px 0 12px;
  }

  .hero-text {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn {
    width: min(100%, 320px);
  }

  .facts {
    margin-top: -20px;
  }

  .facts-grid,
  .machines-grid,
  .gallery-grid,
  .video-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .fact-card,
  .machine-card,
  .video-card,
  .contact-form {
    padding: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .gallery-title {
    font-size: 1.2rem;
  }

  .gallery-grid img {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .video-grid iframe {
    height: 220px;
  }

  .ads-board {
    padding: 24px 18px;
  }

  .lightbox {
    padding: 16px 10px 24px;
    align-items: center;
  }

  .lightbox-figure {
    width: calc(100vw - 20px);
    gap: 10px;
  }

  .lightbox-image {
    max-height: 72vh;
    border-radius: 14px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 1.45rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-caption {
    font-size: 0.95rem;
    max-width: 90vw;
  }

  .footer-wrap {
    justify-content: center;
    text-align: center;
  }
}

.contact-list a {
  color: var(--leaf);
  text-decoration: none;
  font-weight: 700;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  text-decoration: underline;
}

.site-footer {
  background: #2b2b2b;
  color: #ddd;
  padding: 40px 20px;
  font-size: 15px;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer h3 {
  color: #fff;
  margin-bottom: 20px;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: bold;
  font-size: 13px;
}

.social {
  margin-top: 20px;
}

.social span {
  display: block;
  margin-bottom: 10px;
}

.social a {
  margin-right: 10px;
  font-size: 18px;
}

.copyright {
  margin-top: 30px;
  font-size: 13px;
  color: #aaa;
}