:root {
  --primary:   #2C353E;
  --accent:    #E03216;
  --text-primary:      #DCDDDD;
  --text-secondary: #000000; 
  --bg:        #ffffff;
  --white:     #fff;
  --max-w:     1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; margin: 0; padding: 0; overflow-x: hidden; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; margin: 0; padding: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.container { margin: 0 auto; max-width: var(--max-w); padding: 0 2rem; }

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #eae9ea;
    border-bottom: 3px solid var(--accent);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

nav ul {
    display: flex; list-style: none; margin: 0; padding: 0;
}

nav ul a {
    display: block;
    padding: .5rem 1.1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #121212;
    text-transform: uppercase;
    transition: color .15s;
}

.logo img {
    height: 85px;
    padding: 8px 12px;
}

nav ul a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #121212;
    transition: transform .25s, opacity .25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* main thing */
#hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 78px;
  background: var(--primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('public/header.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,.80) 20%, rgba(0,0,0,.4) 80%);
}

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

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.hero-content h1 em { font-style: normal; color: var(--accent); }

.hero-content p {
  font-size: 1.2rem;
  color: var(--white);
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-box {
  padding: 2.5rem;
  background: #f5f5f5;
  border-radius: 8px;
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.service-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.service-box h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-box p {
  color: #666;
  font-size: .95rem;
  line-height: 1.6;
}

/* Price List */
.section {
  padding: 4rem 0;
  position: relative;
}

.section:not(:first-of-type)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--accent);
}

#about::before {
  display: none;
}

/* Machines */
.machines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.machine-card {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
}

.machine-card img {
  flex: 0 0 40%;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.machine-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.machine-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  font-weight: 600;
}

.specs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs li {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.specs li::before {
  content: '●';
  color: var(--accent);
  position: absolute;
  left: 0;
}

.price-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.price-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}

.price-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

.price-val {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.price-note {
  text-align: center;
  color: #666;
  font-size: .9rem;
  margin-top: 2rem;
  font-style: italic;
}

/* Pricing categories */
.pricing-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-category {
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.pricing-category h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.pricing-category p {
  color: #666;
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pricing-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-category li {
  color: #444;
  font-size: .95rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .pricing-content {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #fafafa;
}

.detail strong {
  color: var(--primary);
  font-weight: 600;
}

.detail a, .detail span {
  color: #555;
}

.detail a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

.detail a:hover {
  text-decoration: underline;
}

.map-wrap {
  margin-top: 3rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* Form */
.form-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.form-wrap h2 {
  margin-bottom: 0.5rem;
}

.form-wrap > p {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.field label {
  font-weight: 600;
  color: var(--primary);
  font-size: .95rem;
}

.field input,
.field textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 50, 22, .1);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #c91f0f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 50, 22, .3);
}

.form-msg {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-msg.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-msg.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--text-primary);
  padding-top: 2rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

footer strong {
  font-size: 1.1rem;
}

footer a {
  color: var(--text-primary);
  transition: color .15s;
}

footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  background: var(--primary);
  text-align: center;
  padding: 1.5rem 0;
}

.footer-bottom p {
  color: var(--text-primary);
  font-size: .9rem;
  margin: 0;
}

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

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

  .machine-card {
    flex-direction: column;
  }

  .machine-card img {
    flex: 0 0 auto;
    width: 100%;
    height: 250px;
  }

  .machine-content {
    justify-content: flex-start;
  }

  .nav-toggle { display: flex; }

  nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 75px;
    align-content: center;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: .5rem 0 1rem;
  }

  nav ul.open { display: flex; }
}

