:root {
  --bg: #f8f9fa;
  --bg-alt: #ffffff;
  --accent: #e69500;
  --accent-soft: rgba(230, 149, 0, 0.12);
  --accent-2: #06b6d4;
  --accent-2-soft: rgba(6, 182, 212, 0.14);
  --text: #1a1a1e;
  --muted: #5c5c6b;
  --border: #d1d5db;
  --danger: #dc2626;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px circle at 10% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
    radial-gradient(800px circle at 92% 18%, rgba(230, 149, 0, 0.12) 0%, transparent 52%),
    linear-gradient(180deg, #f0f1f4 0%, #f8f9fa 40%, #ffffff 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background:
    radial-gradient(900px circle at 10% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
    radial-gradient(900px circle at 95% 0%, rgba(230, 149, 0, 0.12) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.97), rgba(248, 249, 250, 0.95));
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.logo-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-subtitle,
.logo-group {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.btn {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb44a 0%, #ff7f3f 35%, #23c7d2 100%);
  color: #181818;
  font-weight: 600;
  box-shadow:
    0 14px 40px rgba(251, 176, 64, 0.38),
    0 14px 55px rgba(6, 182, 212, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 55px rgba(251, 176, 64, 0.52),
    0 18px 65px rgba(6, 182, 212, 0.22);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-alt);
}

.btn-outline:hover {
  border-color: rgba(6, 182, 212, 0.55);
  background: linear-gradient(135deg, rgba(230, 149, 0, 0.14), rgba(6, 182, 212, 0.12));
}

.btn-block {
  width: 100%;
}

.hero {
  padding: 40px 0 56px;
  position: relative;
  background: #e8e9ec url("hero-bg.png") center top / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 182, 212, 0.22) 0%, rgba(230, 149, 0, 0.16) 45%, rgba(255, 255, 255, 0.56) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.52) 0%, rgba(248, 249, 250, 0.68) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-subtitle {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-features li {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hero-features li:hover {
  border-color: rgba(6, 182, 212, 0.6);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(221, 255, 252, 0.85) 58%,
    rgba(255, 243, 222, 0.75) 100%
  );
  box-shadow: 0 14px 50px rgba(6, 182, 212, 0.12);
  transform: translateY(-1px);
}

.hero-form-card {
  background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.hero-form-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.hero-form-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.form-group label {
  color: var(--muted);
}

input,
select,
textarea {
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 9px 10px;
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px var(--accent-soft),
    0 0 0 6px rgba(6, 182, 212, 0.08);
}

.form-note {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.section {
  padding: 40px 0;
}

.section-gray {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.07) 0%, #eef0f3 35%, #f5f6f8 100%);
}

.section h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.section-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 640px;
}

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

.service-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-card,
.project-card,
.adv-card,
.partner-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.service-card:hover,
.project-card:hover,
.adv-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 18px 55px rgba(6, 182, 212, 0.12);
  transform: translateY(-2px);
}

.services-cta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.project-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.project-image {
  height: 180px;
  overflow: hidden;
  background: #e5e7eb;
}

.project-image img,
.project-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 14px 14px 16px;
}

.project-meta {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.project-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

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

.adv-card {
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.adv-card h3 {
  margin: 0 0 8px;
}

.adv-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.partner-card {
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.partner-card:hover {
  border-color: rgba(230, 149, 0, 0.55);
  box-shadow: 0 18px 55px rgba(230, 149, 0, 0.12);
  transform: translateY(-2px);
}

.contacts-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: flex-start;
}

.contacts-phone-email {
  font-size: 1.2rem;
  line-height: 1.5;
}

.contacts-phone-email a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contacts-phone-email a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.contacts-note {
  color: var(--muted);
}

.contacts-form-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.footer {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(900px circle at 20% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
    radial-gradient(900px circle at 85% 10%, rgba(230, 149, 0, 0.12) 0%, transparent 55%),
    #eef0f3;
  padding: 18px 0 22px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-title {
  font-weight: 600;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.footer-legal {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-2);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--text);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-mobile {
  display: none;
}

.nav-mobile.open {
  display: flex;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav--mobile a {
  color: var(--text);
  padding: 8px 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  max-width: 380px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.modal h3 {
  margin: 0 0 8px;
}

.modal p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 50;
}

.toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 8px;
  }

  .logo-block {
    max-width: 65%;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .contacts-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 26px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-form-card {
    padding: 18px 16px 14px;
  }

  .section {
    padding: 28px 0;
  }

  .section h2 {
    font-size: 22px;
  }

  .header-contacts {
    width: 100%;
    justify-content: space-between;
  }

  .header-contacts .btn {
    padding-inline: 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

