:root {
  --background: #121212;
  --background-secondary: #1c1c1c;
  --foreground: #ffffff;
  --primary: #e8392c;
  --primary-text: #ff5c49;
  --secondary: #b8291c;
  --body-text: #9a9a9a;
  --black: #000000;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--body-text);
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

h1, h2, h3 {
  font-family: 'Sen', sans-serif;
  color: var(--foreground);
  margin: 0 0 10px;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.btn {
  display: inline-block;
  margin-top: 14px;
  background-color: var(--primary);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 35px;
  border-radius: 9999px;
}
.btn:hover { background-color: var(--secondary); }

/* Topbar */
.topbar {
  background-color: var(--background-secondary);
  padding: 10px 20px;
}
.topbar-inner {
  max-width: 1370px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
}
.topbar-item img { width: 18px; filter: invert(1) sepia(1) saturate(5) hue-rotate(330deg); }

.social-links { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-links a {
  width: 24px; height: 24px;
  border-radius: 9999px;
  background-color: var(--foreground);
  color: var(--background);
  display: flex; align-items: center; justify-content: center;
}
.social-links svg { width: 14px; height: 14px; fill: currentColor; }
.social-links.light a { background-color: #ffffff; color: #000; }

/* Hero */
.hero {
  position: relative;
  padding: 8vw 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}
.hero::before {
  background-image: var(--hero-img);
  background-size: cover;
  background-position: 50% 100%;
  filter: grayscale(1);
}
.hero::after {
  background: linear-gradient(90deg, rgba(12,11,11,0.92) 32%, rgba(0,0,0,0.34) 61%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 750px;
  text-align: center;
  padding: 45px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.19;
}
.hero p {
  font-size: 22px;
  color: var(--foreground);
  margin: 20px 0 0;
}
.hero .btn { text-align: left; }

/* Section headers */
.kicker {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 10px;
}
.kicker-line { width: 100px; height: 2px; background-color: var(--primary); }
.kicker span:last-child { color: var(--primary-text); font-size: 15px; font-weight: 700; }
.services h2, .gallery h2 { font-size: clamp(28px, 3vw, 32px); margin-bottom: 30px; }

/* Services */
.services { background-color: var(--foreground); padding: var(--wp-spacing) 40px; padding-top: 100px; padding-bottom: 100px; }
.services-inner { max-width: 1370px; margin: 0 auto; }
.services .kicker-line { background-color: var(--background); }
.services .kicker span:last-child { color: var(--background); }
.services h2 { color: var(--background); }
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.service-box {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: 4px;
}
.service-box.dark { background-color: var(--primary); }
.service-box.dark h3, .service-box.dark p { color: var(--black); }
.service-box.light { background-color: var(--background-secondary); }
.service-box.light h3, .service-box.light p { color: var(--foreground); }
.service-box img { width: 50px; margin-bottom: 20px; }
.service-box h3 { font-size: 20px; }
.service-box p { margin: 0; flex-grow: 1; }
.more {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-text);
  font-weight: 700;
  margin-top: 16px;
}
.service-box.dark .more { color: var(--black); }

/* Gallery */
.gallery { background-color: var(--background-secondary); padding: 100px 40px; }
.gallery-inner { max-width: 1370px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.gallery-item {
  min-height: 400px;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}
.gallery-item:hover img {
  filter: grayscale(0);
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
}
.gallery-item span {
  position: relative;
  z-index: 2;
  color: var(--foreground);
  font-family: 'Sen', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Contact form */
.contact-form { background-color: var(--foreground); padding: 100px 40px; }
.contact-form-inner { max-width: 750px; margin: 0 auto; }
.contact-form .kicker-line { background-color: var(--background); }
.contact-form .kicker span:last-child { color: var(--background); }
.contact-form h2 { color: var(--background); }
.contact-intro { color: var(--background); margin: 0 0 30px; }
.form-message {
  padding: 14px 18px;
  border-radius: 4px;
  margin: 0 0 24px;
  font-weight: 600;
}
.form-message-ok { background-color: #d6f5e8; color: #0a7a4d; }
.form-message-error { background-color: #fbdcd8; color: #b3261e; }
.form-row { margin-bottom: 20px; }
.form-row-split { display: flex; gap: 20px; }
.form-row-split > div { flex: 1; }
.form-row-hidden { position: absolute; left: -9999px; top: -9999px; }
.poptavka-form label {
  display: block;
  color: var(--background);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.poptavka-form input,
.poptavka-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--background);
}
.poptavka-form input:focus,
.poptavka-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.poptavka-form button.btn {
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

/* Footer */
.site-footer { background-color: var(--background-secondary); padding-top: 40px; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  padding: 40px;
}
.footer-col { flex: 1 1 220px; }
.footer-col h2, .footer-col h3 { font-size: 20px; font-weight: 500; color: var(--foreground); }
.footer-col p { color: var(--body-text); margin: 0 0 20px; }
.plain-list, .footer-col .plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--foreground);
  line-height: 2;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 24px 20px;
  max-width: 1180px;
  margin: 40px auto 0;
}
.footer-bottom p { margin: 0; color: var(--foreground); font-size: 17px; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .services, .gallery, .contact-form { padding: 60px 20px; }
  .services-grid, .gallery-grid, .footer-inner { gap: 20px; }
  .form-row-split { flex-direction: column; }
  .hero-inner { padding: 20px; }
  .hero p { font-size: 18px; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-contacts { justify-content: center; }
}

/* Error pages */
.error-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  text-align: center;
  padding: 20px;
}
.error-page { max-width: 520px; }
.error-code {
  font-family: 'Sen', sans-serif;
  font-size: clamp(80px, 15vw, 140px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}
.error-page h1 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.error-page p { margin-bottom: 24px; }
