:root {
  --bg: #0b0f17;
  --card: #111827;
  --muted: #9ca3af;
  --text: #e5e7eb;
  --brand: #7c3aed;
  --brand2: #22c55e;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background:
    radial-gradient(
      900px 500px at 15% 0%,
      rgba(124, 58, 237, 0.35),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 85% 0%,
      rgba(34, 197, 94, 0.25),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* =========================
   HEADER / NAV (NO BURGER)
========================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 15, 23, 0.62);
  backdrop-filter: blur(12px);
}

.nav-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      700px 120px at 20% 0%,
      rgba(124, 58, 237, 0.28),
      transparent 70%
    ),
    radial-gradient(
      700px 120px at 80% 0%,
      rgba(34, 197, 94, 0.18),
      transparent 70%
    );
  opacity: 0.9;
}

.nav-inner {
  position: relative;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* brand | menu | actions */
  align-items: center;
  gap: 14px;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  justify-self: start;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-subtitle {
  font-size: 12px;
  color: rgba(229, 231, 235, 0.7);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  justify-self: center;
}

.nav-links a {
  font-size: 14px;
  color: #e5e7eb;
  opacity: 0.82;
  padding: 10px 12px;
  border-radius: 999px;
  transition: 0.15s ease;
}

.nav-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: 0.15s ease;
  font-weight: 700;
  gap: 10px;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 1),
    rgba(34, 197, 94, 0.9)
  );
  border: none;
  box-shadow: 0 10px 35px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  filter: saturate(1.05);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.w100 {
  width: 100%;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 44px 0 20px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.h1 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #d1d5db;
  font-size: 13px;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.hero-note {
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   CARDS
========================= */
.card {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card-title {
  font-weight: 800;
  font-size: 18px;
}
.card-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.card-form {
  padding: 18px;
}
.card-mini {
  margin-top: 12px;
}

/* =========================
   FORM
========================= */
.form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field span {
  font-size: 12px;
  color: #cbd5e1;
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(229, 231, 235, 0.55);
}

input:focus,
textarea:focus {
  border-color: rgba(124, 58, 237, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.form-status {
  margin-top: 4px;
  font-size: 13px;
}
.form-status.info {
  color: #93c5fd;
}
.form-status.ok {
  color: #86efac;
}
.form-status.bad {
  color: #fca5a5;
}

/* =========================
   MINI INFO
========================= */
.mini-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mini-row:first-child {
  border-top: none;
  padding-top: 0;
}

.mini-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-title {
  font-weight: 700;
}
.mini-text {
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 34px 0;
}
.h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.muted {
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

/* =========================
   SERVICES
========================= */
.service-ico {
  font-size: 22px;
}
.service-title {
  font-weight: 800;
  margin-top: 10px;
}
.service-text {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
  font-size: 14px;
}

/* =========================
   WORKS (STRETCHED)
========================= */
.work {
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  overflow: hidden;
}

.work-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(34, 197, 94, 0.15)),
    rgba(255, 255, 255, 0.03);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.work-title {
  padding: 12px 12px 0;
  font-weight: 800;
}
.work-text {
  padding: 6px 12px 12px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   CONTACTS
========================= */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.contact-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-row:first-of-type {
  border-top: none;
}

.contact-label {
  color: var(--muted);
  font-size: 13px;
}
.contact-value {
  font-weight: 700;
}

.map {
  height: 100%;
}
.map-placeholder {
  height: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--muted);
  text-align: center;
  padding: 16px;
  
  iframe {
    width: 100% !important;
  }
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }

  body {
    background:
      radial-gradient(
        700px 360px at 20% 0%,
        rgba(124, 58, 237, 0.28),
        transparent 62%
      ),
      radial-gradient(
        700px 360px at 85% 0%,
        rgba(34, 197, 94, 0.18),
        transparent 62%
      ),
      var(--bg);
  }

  /* NAV */
  .nav-inner {
    grid-template-columns: 1fr;
    padding: 10px 0;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }
  .brand-subtitle {
    display: none;
  }
  .nav-links {
    display: none;
  }

  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* HERO */
  .hero {
    padding: 22px 0 8px;
  }
  .hero-grid {
    gap: 14px;
  }
  .h1 {
    font-size: 30px;
    line-height: 1.06;
    margin-bottom: 10px;
  }
  .subtitle {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .hero-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0;
  }

  .pill {
    border-radius: 14px;
    padding: 10px 10px;
    font-size: 12px;
    text-align: left;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0;
  }

  .card {
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
  }

  .card-form {
    padding: 16px;
    background: rgba(17, 24, 39, 0.82);
  }

  input,
  textarea {
    padding: 13px 12px;
    border-radius: 16px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.18);
  }

  .card-mini {
    margin-top: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }

  .mini-row {
    border-top: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
  }

  .mini-ico {
    width: 34px;
    height: 34px;
    border-radius: 14px;
  }

  .mini-title {
    font-size: 12px;
    color: #cbd5e1;
  }
  .mini-text {
    font-size: 12px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-img {
    height: 210px;
  }

  .contacts {
    gap: 12px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }

  .map-placeholder {
    min-height: 200px;
  }

  .footer {
    padding: 18px 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .hero-pills {
    grid-template-columns: 1fr;
  }
  .card-mini {
    grid-template-columns: 1fr 1fr;
  }
  .h1 {
    font-size: 27px;
  }
}

@media (min-width: 900px) {
  .work-img {
    height: 260px;
  }
}

/* =========================
   ANIMATIONS
========================= */
.btn,
.nav-links a,
.work,
.card,
.pill,
.brand-mark {
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.btn:active {
  transform: translateY(0px) scale(0.98);
}

.card:hover {
  transform: translateY(-2px);
}
.work:hover {
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    filter 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal-in {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .btn,
  .nav-links a,
  .work,
  .card,
  .pill,
  .brand-mark {
    transition: none !important;
  }
}
