:root {
  --bg-main: #f5f5f5;
  --bg-soft: #ffffff;
  --bg-card: #f0f0f0;
  --red: #d61f26;
  --red-dark: #a3151b;
  --yellow: #f5c518;
  --text-main: #0d0d0d;
  --text-muted: #444444;
  --border-soft: #ddd;
}

[data-theme="dark"] {
  --bg-main: #0d0d0d;
  --bg-soft: #161616;
  --bg-card: #1c1c1c;
  --text-main: #f5f5f5;
  --text-muted: #b3b3b3;
  --border-soft: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background: var(--bg-main);
  transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; }

header {
  background: var(--bg-main);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background 0.3s;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  position: relative;
}
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: 1px; color: var(--text-main); }
.logo span { color: var(--red); }
nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }
nav a { color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; padding-bottom: 4px; }
nav a:hover, nav a.active { color: var(--red); border-bottom: 2px solid var(--yellow); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 1.8rem; cursor: pointer; padding: 0; line-height: 1; }

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--red); }

.hero {
  background: radial-gradient(circle at 50% 30%, var(--bg-soft) 0%, var(--bg-main) 70%);
  color: var(--text-main);
  padding: 100px 24px;
  text-align: center;
  border-bottom: 3px solid var(--yellow);
}
.hero.small { padding: 70px 24px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 18px; font-weight: 800; color: var(--red); }
.hero.small h1 { font-size: 2.2rem; }
.hero p { font-size: 1.5rem; max-width: 650px; margin: 0 auto 32px; color: var(--text-muted); }

.btn {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); background: var(--red); color: white; box-shadow: 0 6px 18px rgba(214,31,38,0.4); }

.cta-center {
  text-align: center;
  margin-top: 24px;
  width: 100%;
}

section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.1rem; margin-bottom: 12px; color: var(--red); font-weight: 800; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 50px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }

.service-card {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 260px;
  border-top: 4px solid var(--yellow);
  transition: border-color 0.2s;
}
.service-card:hover { border-top-color: var(--red); }
.service-card-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-bg { transform: scale(1.08); }
.service-overlay {
  position: relative;
  height: 100%;
  padding: 34px 28px 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  pointer-events: none;
}
.service-overlay .icon { font-size: 2.4rem; margin-bottom: 14px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); }
.service-overlay h3 { color: var(--yellow); margin-bottom: 0; font-size: 1.2rem; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }
.service-overlay p { color: #f5f5f5; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }
.service-overlay ul { text-align: left; color: #f5f5f5; margin-top: 14px; padding-left: 20px; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }
.service-overlay ul li { margin-bottom: 6px; }

.service-card.blurred { min-height: 300px; }
.service-card.blurred .service-card-bg {
  filter: blur(6px) brightness(0.55);
  transform: scale(1.1);
}
.service-card.blurred:hover .service-card-bg { transform: scale(1.18); }
.service-card.blurred .service-overlay {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.service-card.blurred .service-overlay ul {
  text-align: center;
  padding-left: 0;
  list-style: none;
}

.about { background: var(--bg-soft); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { color: var(--red); font-size: 1.9rem; margin-bottom: 18px; }
.about-text p { color: var(--text-muted); margin-bottom: 14px; }

.stats {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.stat { text-align: center; flex: 1; min-width: 0; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--red); white-space: nowrap; }
.stat .label { font-size: 0.9rem; color: var(--text-muted); }

.about-img-placeholder {
  background: linear-gradient(135deg, var(--red-dark), var(--yellow));
  height: 320px;
  width: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
  object-fit: cover;
}

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; margin-top: 50px; }
.value-card { background: var(--bg-card); padding: 28px 22px; border-radius: 10px; border-left: 4px solid var(--red); }
.value-card h4 { color: var(--red); margin-bottom: 8px; }
.value-card p { color: var(--text-muted); font-size: 0.95rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; margin-top: 50px; }
.team-card { background: var(--bg-card); padding: 26px; border-radius: 10px; text-align: center; }
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  margin: 0 auto 14px;
  object-fit: cover;
}
.team-card h4 { color: var(--text-main); }
.team-card span { color: var(--red); font-size: 0.85rem; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}
.partner-logo {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px solid var(--border-soft);
  transition: transform 0.2s, border-color 0.2s;
}
.partner-logo:hover { transform: translateY(-4px); border-color: var(--red); }
.partner-logo img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info div { margin-bottom: 22px; display: flex; gap: 14px; align-items: flex-start; }
.contact-info .icon { font-size: 1.4rem; color: var(--red); }
.contact-info h4 { color: var(--red); margin-bottom: 4px; }
.contact-info p, .contact-info a { color: var(--text-muted); }

form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; }
input, textarea, select {
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-soft);
  color: var(--text-main);
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); }
textarea { resize: vertical; min-height: 120px; }
.error-msg { color: var(--red); font-size: 0.85rem; display: none; margin-top: -10px; }
.field.invalid .error-msg { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.submit-btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover { background: var(--yellow); color: #111; }
.form-success {
  display: none;
  background: #16321a;
  border: 1px solid #2e7d32;
  color: #a5d6a7;
  padding: 16px;
  border-radius: 6px;
  margin-top: 16px;
}
.form-success.show { display: block; }

.quote-summary { background: var(--bg-card); padding: 24px; border-radius: 10px; margin-top: 20px; display: none; }
.quote-summary.show { display: block; }
.quote-summary h4 { color: var(--red); margin-bottom: 10px; }
.quote-summary p { color: var(--text-muted); margin-bottom: 6px; }
.quote-summary .price { color: var(--red); font-size: 1.6rem; font-weight: 800; }

footer {
  background: var(--bg-main);
  color: var(--text-muted);
  text-align: center;
  padding: 30px 24px;
  font-size: 0.9rem;
  border-top: 2px solid var(--red);
}
footer .social { margin-top: 14px; display: flex; justify-content: center; gap: 20px; }
footer a { color: var(--red); }
footer a:hover { color: var(--yellow); }

@media (max-width: 768px) {
  .nav-container { flex-wrap: wrap; }
  .logo { order: 1; }
  .menu-toggle { display: block; order: 3; margin-left: 10px; }
  .theme-toggle { order: 2; margin-left: auto; }
  nav { order: 4; flex-basis: 100%; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    flex-direction: column;
    padding: 20px;
    gap: 18px;
    border-bottom: 2px solid var(--red);
  }
  nav ul.open { display: flex; }
  .about-content, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .form-row { flex-direction: column; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }

  .stats { gap: 8px; }
  .stat .num { font-size: 1.4rem; }
  .stat .label { font-size: 0.7rem; }
}
