:root {
  color-scheme: dark;
  font-family: "Manrope", "Segoe UI", sans-serif;
  --bg-top: #070a12;
  --bg-mid: #0a1020;
  --bg-bottom: #070a12;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.93);
  --muted: rgba(255, 255, 255, 0.68);
  --danger: #ff7f7f;
  --success: #34d399;
  --brand: #6ee7ff;
  --brand-2: #8ea2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 8% 0%, rgba(110, 231, 255, 0.17), transparent 55%),
    radial-gradient(900px 600px at 82% 12%, rgba(142, 162, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 56%, var(--bg-bottom));
  min-height: 100dvh;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 100px;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(9, 12, 22, 0.65);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding-top: 0;
  padding-bottom: 0;
}

.nav strong {
  letter-spacing: 0.02em;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  line-height: 1;
}

.site-logo {
  height: 100%;
  width: auto;
  max-height: 64px;
  max-width: 260px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .nav {
    height: 58px;
  }

  .site-logo {
    max-height: 58px;
    max-width: 210px;
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero,
.card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  padding: 20px;
  margin-top: 16px;
}

.hero {
  margin-top: 24px;
  background:
    radial-gradient(900px 420px at 25% 0%, rgba(110, 231, 255, 0.2), transparent 62%),
    radial-gradient(650px 300px at 85% 20%, rgba(142, 162, 255, 0.18), transparent 62%),
    rgba(255, 255, 255, 0.05);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  min-height: clamp(3.8rem, 7.8vw, 6.2rem);
}

.hero-points {
  margin: 14px 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.hero-process {
  margin-top: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  border: 1px solid rgba(110, 231, 255, 0.45);
  border-radius: 14px;
  padding: 11px 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.24), rgba(142, 162, 255, 0.2));
  color: var(--text);
  transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  border-color: rgba(110, 231, 255, 0.65);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.32), rgba(142, 162, 255, 0.24));
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.btn.secondary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.11);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--muted);
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
}

.field-control {
  padding-left: 14px;
  padding-right: 14px;
  line-height: 1.25;
}

.field-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

select option {
  background: #0f172a;
  color: #e2e8f0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(110, 231, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.12);
}

textarea {
  min-height: 88px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.small {
  font-size: 13px;
}

.status {
  margin-top: 8px;
  font-size: 14px;
  white-space: pre-wrap;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.route {
  display: none;
}

.route.active {
  display: block;
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.faq-item button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  color: var(--text);
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 12px 12px;
  display: none;
  color: var(--muted);
}

.faq-item.open p {
  display: block;
}

.quiz-wrap {
  display: grid;
  gap: 10px;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
}

.compact-contacts {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.compact-contacts p {
  margin: 0 0 6px;
  font-weight: 700;
}

.compact-contacts a {
  margin-right: 10px;
  font-weight: 600;
  color: #88eaff;
  text-decoration: none;
}

.pain {
  border-left: 4px solid var(--brand-2);
  padding-left: 10px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.catalog-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.catalog-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.2), rgba(142, 162, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.catalog-image-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-image-photo-card {
  height: 180px;
}

.catalog-body {
  padding: 12px;
}

.portfolio-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.fence-detail-image {
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.carousel-controls,
.portfolio-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.portfolio-pagination {
  margin-top: 12px;
  margin-bottom: 0;
}

.portfolio-carousel .card {
  margin-top: 0;
}

.steps {
  display: grid;
  gap: 10px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.offer {
  background:
    radial-gradient(650px 280px at 20% 0%, rgba(110, 231, 255, 0.25), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.offer .btn.secondary {
  color: var(--text);
}

.contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line);
  background: rgba(9, 12, 22, 0.75);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 30;
}

.hidden {
  display: none !important;
}

@media (max-width: 700px) {
  .container {
    padding-bottom: 120px;
  }

  .nav {
    min-height: 58px;
  }

  .nav-links {
    justify-content: flex-end;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn,
  .contact-bar .btn {
    width: auto;
    flex: 1 1 100%;
  }
}
