:root {
  color-scheme: dark;
  --bg: #0c0f14;
  --bg-soft: #121722;
  --panel: rgba(18, 23, 34, 0.92);
  --panel-strong: #171c27;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #c0c8d6;
  --accent: #c96c2e;
  --accent-soft: rgba(201, 108, 46, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 107, 0, 0.08), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, #0f1115 44%, var(--bg-soft) 100%);
  color: var(--text);
}

body,
html {
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 15, 20, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 18px;
  opacity: 0.82;
}

.site-header nav a:hover {
  opacity: 1;
}

.site-header b {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #0b0e13;
  display: grid;
  place-items: center start;
  padding: 112px clamp(16px, 4vw, 48px) 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.06) brightness(0.54);
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.9) 0%, rgba(6, 8, 12, 0.62) 36%, rgba(6, 8, 12, 0.18) 100%),
    radial-gradient(circle at left center, rgba(201, 108, 46, 0.12), transparent 30%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
  text-align: left;
  padding-left: clamp(0px, 2vw, 12px);
  margin-left: clamp(0px, 2vw, 24px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 8, 12, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eceff5;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 0.96;
  max-width: 12ch;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #f7f8fb;
  text-shadow:
    0 0 0.5px rgba(255, 255, 255, 0.7),
    0 12px 40px rgba(0, 0, 0, 0.28);
}

.hero p {
  max-width: 34rem;
  margin: 0 0 26px;
  color: rgba(244, 246, 251, 0.82);
  line-height: 1.6;
  font-size: 0.98rem;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stat {
  min-width: 132px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(5, 8, 12, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-stat strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  color: #f7f8fb;
}

.hero-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px clamp(20px, 4vw, 48px) 54px;
  width: min(1200px, calc(100% - 40px));
  margin: 24px auto 0;
  border-radius: 30px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(201, 108, 46, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(23, 28, 39, 0.96), rgba(18, 23, 34, 0.96));
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}

.page-hero-copy,
.page-hero-panel {
  position: relative;
  z-index: 1;
}

.page-hero-copy {
  max-width: 760px;
}

.page-hero h1 {
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
}

.page-hero p {
  max-width: 54rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.page-hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.section-lead {
  max-width: 58rem;
  margin: -6px 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.section-kicker {
  margin-bottom: 10px;
  color: rgba(244, 246, 251, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  background: var(--accent);
  color: var(--text);
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(201, 108, 46, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(201, 108, 46, 0.26);
}

.btn:focus-visible,
.site-header nav a:focus-visible,
.form input:focus-visible,
.dropzone:focus-visible {
  outline: 2px solid rgba(201, 108, 46, 0.9);
  outline-offset: 3px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.lead-form-band {
  position: relative;
  z-index: 4;
  width: min(1200px, calc(100% - 40px));
  margin: -34px auto 10px;
}

.lead-form-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 440px);
  gap: 28px;
  align-items: start;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 28, 39, 0.96), rgba(18, 23, 34, 0.94));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.lead-form-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  line-height: 1.08;
}

.lead-form-copy p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.6;
}

.lead-form-illustration {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(201, 108, 46, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(20, 25, 35, 0.9), rgba(16, 20, 28, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lead-form-illustration__caption {
  margin-bottom: 10px;
  color: rgba(244, 246, 251, 0.9);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-form-illustration__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 14px;
  background: #21262f;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 88px;
}

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

.section-title {
  margin: 44px 0 18px;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.88;
}

.card {
  background: var(--panel-strong);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s;
}

.service-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.card.show {
  opacity: 1;
  transform: none;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 108, 46, 0.16), rgba(201, 108, 46, 0.05));
  border: 1px solid rgba(201, 108, 46, 0.24);
  display: grid;
  place-items: center;
  color: #d38a57;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3,
.partner-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.counter {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 0;
}

.partner-card {
  background: var(--panel-strong);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: start;
  min-height: 0;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.partner-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 108, 46, 0.14), rgba(201, 108, 46, 0.04));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.partner-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.partner-mark--cherkizovo {
  background: linear-gradient(135deg, rgba(215, 48, 40, 0.18), rgba(215, 48, 40, 0.05));
}

.partner-mark--letter {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(92, 129, 209, 0.2), rgba(92, 129, 209, 0.06));
}

.partners-title {
  margin-top: 34px;
}

.about-grid,
.about-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.info-card {
  background: var(--panel-strong);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.info-card h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  line-height: 1.08;
}

.info-card h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.info-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-link {
  display: inline-flex;
  margin: 2px 0 0;
  color: #f7f8fb;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.contact-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.requisites {
  display: grid;
  gap: 16px;
  margin: 0;
}

.requisites div {
  display: grid;
  gap: 4px;
}

.requisites dt {
  color: rgba(244, 246, 251, 0.78);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.requisites dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.form {
  display: grid;
  gap: 16px;
  max-width: none;
}

.form-section {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(14, 18, 27, 0.48);
}

.form-section__title {
  padding: 0;
  color: rgba(244, 246, 251, 0.94);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--compact .form input,
.form-grid--compact .form select {
  padding: 12px 14px;
  font-size: 0.95rem;
}

.form-field {
  min-width: 0;
}

.form-field--hidden {
  display: none;
}

.client-type {
  display: grid;
  gap: 10px;
}

.client-type-option {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.client-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.client-type-option span {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(20, 25, 35, 0.92);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.client-type-option input:checked + span {
  border-color: rgba(201, 108, 46, 0.92);
  background: rgba(201, 108, 46, 0.14);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form input,
.form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(20, 25, 35, 0.92);
  color: var(--text);
}

.form select {
  appearance: none;
  cursor: pointer;
}

.form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(20, 25, 35, 0.92);
  color: var(--text);
  resize: vertical;
  min-height: 110px;
  font: inherit;
}

.form input[type="email"] {
  font-family: inherit;
}

.form textarea::placeholder {
  color: rgba(192, 200, 214, 0.6);
}

.form input::placeholder {
  color: rgba(192, 200, 214, 0.6);
}

.dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 25px;
  text-align: center;
  border-radius: 14px;
  cursor: pointer;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.dropzone[role="button"] {
  user-select: none;
}

.dropzone.drag {
  border-color: var(--accent);
  background: rgba(201, 108, 46, 0.08);
}

.form-hint {
  margin: -8px 0 0;
  color: rgba(192, 200, 214, 0.74);
  font-size: 0.88rem;
}

.form-hint--strong {
  margin: 0;
  color: rgba(244, 246, 251, 0.92);
  font-size: 0.94rem;
}

.color-picker {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(20, 25, 35, 0.55);
}

.color-picker-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.color-status {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.color-switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.color-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(12, 16, 24, 0.72);
  color: var(--text);
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.color-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 108, 46, 0.42);
}

.color-switch.is-active {
  border-color: rgba(201, 108, 46, 0.9);
  background: rgba(201, 108, 46, 0.16);
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18) inset;
}

.swatch-red { background: #e34b4b; }
.swatch-green { background: #43b56a; }
.swatch-blue { background: #4b88e3; }
.swatch-black { background: #1c1f25; }
.swatch-white { background: #f2f4f8; }
.swatch-gray { background: #9098a6; }
.swatch-yellow { background: #f1c84c; }
.swatch-orange { background: #ee8a39; }
.swatch-cyan { background: #56c7dd; }
.swatch-purple { background: #8b6adf; }

.form-error {
  margin: -8px 0 0;
  min-height: 1.2em;
  color: #f29a67;
  font-size: 0.88rem;
}

.file-name {
  margin: 0;
  color: var(--muted);
  min-height: 1.2em;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--panel-strong);
  padding: 12px 18px;
  border-radius: 12px;
  display: none;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-section {
  margin-top: 42px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 28, 39, 0.96), rgba(18, 23, 34, 0.94));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-section h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.1;
}

.map-address {
  font-size: clamp(0.9rem, 1.2vw, 1.3rem) !important;
  max-width: 52rem;
}

.map-frame {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #10151f;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 54px 16px 64px;
  }

  .hero-copy {
    text-align: left;
    max-width: 100%;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stat {
    min-width: 0;
    flex: 1 1 calc(50% - 12px);
  }

  .lead-form-band {
    width: calc(100% - 24px);
    margin-top: -20px;
  }

  .lead-form-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .page-hero {
    width: calc(100% - 24px);
    margin-top: 16px;
    padding: 34px 16px 20px;
    border-radius: 22px;
  }

  .page-hero-panel,
  .about-grid,
  .about-details {
    grid-template-columns: 1fr;
  }

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

  .form-section {
    padding: 14px;
  }

  .color-picker-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-section {
    padding: 18px;
  }

  .map-address {
    font-size: clamp(0.84rem, 3.6vw, 1.05rem) !important;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 260px;
  }
}
