:root {
  --bg: #090909;
  --bg-soft: #141414;
  --fg: #f5f5f5;
  --muted: #c8c8c8;
  --red: #c60f1a;
  --red-deep: #8f0e16;
  --line: #2b2b2b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #090909e6;
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  width: 185px;
  height: auto;
}

.menu {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.menu a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
}

.menu a:hover {
  color: var(--red);
}

.lang-switcher {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #000;
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--red);
  border-color: var(--red);
}

.hero {
  padding: 70px 0 50px;
  background: radial-gradient(circle at 20% 20%, #2a0c10 0%, #090909 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: center;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--fg);
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(180deg, var(--red), var(--red-deep));
}

.btn-outline {
  border-color: #fff;
  background: transparent;
}

.section {
  padding: 58px 0;
}

.dark {
  background: var(--bg-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #0f0f0f;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  margin-top: 0;
}

.service-card ul {
  margin: 10px 0;
  padding-left: 20px;
  color: var(--muted);
}

.service-card li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.service-ideal {
  margin-bottom: 0;
  color: #e4e4e4;
}

.guarantee-card {
  margin-top: 16px;
  border-color: #6f151b;
  background: linear-gradient(135deg, #15090b, #1b1b1b);
}

.guarantee-card h3 {
  margin-bottom: 8px;
}

.metric-card h3 {
  margin-bottom: 5px;
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 14px;
}

.ph {
  min-height: 200px;
  border-radius: 12px;
  border: 1px dashed #6f6f6f;
  background: linear-gradient(135deg, #1b1b1b, #333);
  display: grid;
  place-items: center;
  text-align: center;
  color: #ddd;
  padding: 12px;
}

.viz-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.color-swatches {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #fff;
  cursor: pointer;
}

.swatch.active {
  outline: 3px solid #fff;
  outline-offset: 1px;
}

canvas {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
}

.form {
  display: grid;
  gap: 10px;
  max-width: 680px;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #404040;
  background: #0d0d0d;
  color: #fff;
}

.quick-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.quick-contact a,
p a {
  color: #fff;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-links {
  display: flex;
  gap: 10px;
}

.legal-btn {
  border: 1px solid var(--line);
  background: #0f0f0f;
  color: #fff;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}

dialog {
  border: 1px solid var(--line);
  background: #111;
  color: #fff;
  border-radius: 12px;
  width: min(680px, 92%);
}

#legalBody {
  white-space: pre-line;
  max-height: 62vh;
  overflow: auto;
  padding-right: 6px;
}

dialog::backdrop {
  background: #000a;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  border: 1px solid var(--line);
  background: #0d0d0df2;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  max-width: 760px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
