:root {
  --bg: #05070a;
  --text: #f0f4ff;
  --muted: rgba(240, 244, 255, 0.65);
  --accent: #3b82f6;
  --accent-secondary: #22d3ee;
  --container: 1120px;
  --text-gap: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #05070a;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.2px, transparent 1.2px);
  background-size: 50px 50px;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: 
    radial-gradient(circle at 10% 20%, rgba(59,130,246,0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(34,211,238,0.06) 0%, transparent 40%);
  z-index: 0;
}

.section--light {
  background: #f8fafc;
  color: #1e293b;
  position: relative;
  overflow: hidden;
}

.section--light::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(circle, rgba(30,41,59,0.25) 1.2px, transparent 1.2px);
  background-size: 50px 50px;
  opacity: 1;
}

.section--light .title {
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section--light .lead {
  color: #475569;
}

.section--light .list {
  color: #334155;
}

.section--light .card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(30, 41, 59, 0.15);
}

.section--light .card:hover {
  box-shadow: 0 10px 40px rgba(30,41,59,0.25);
  border-color: #1e40af;
}

.section--light .card__text {
  color: #475569;
}

.section--light .contacts__list {
  color: #475569;
}

.section--light .contacts {
  background: transparent;
  border: none;
}

.section--light .contacts__list a {
  text-decoration-color: rgba(59, 130, 246, 0.5);
}

.section--light .contacts__list a:hover {
  text-decoration-color: rgba(59, 130, 246, 1);
}

.section--light .subtitle {
  color: #1e293b;
}

.section--light .lead__accent {
  color: #0f172a;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 18px rgba(148, 163, 184, 0.45);
}

.section--light .lead--highlight {
  color: #0f172a;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 24px rgba(148, 163, 184, 0.4);
}

a {
  color: inherit;
  text-decoration: none;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  background: rgba(5, 7, 10, 0.85);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__logo {
  width: 80px;
  height: 80px;
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand__kicker {
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__name {
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--text);
}

.nav {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-top: 0;
}

body.nav-open .nav {
  max-height: 300px;
  padding-top: 8px;
}

.nav__link {
  display: block;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.nav__link:hover {
  color: #fff;
}

.nav__link[aria-current="page"] {
  color: #fff;
}

.nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
}

.section {
  padding: 28px 0;
  position: relative;
  z-index: 1;
}

.section--tight {
  padding-top: 20px;
}

.title {
  margin: 0 0 20px;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.title--sm {
  font-size: clamp(20px, 2.5vw, 28px);
}

.lead {
  margin: 0 0 var(--text-gap);
  color: rgba(231, 236, 255, 0.92);
  position: relative;
  z-index: 1;
}

.lead__accent {
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.45),
    0 0 22px rgba(59, 130, 246, 0.25);
}

.lead--highlight {
  display: block;
  max-width: 920px;
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 0;
  font-size: clamp(16px, 1.75vw, 22px);
  line-height: 1.45;
  font-weight: 700;
  color: #ffffff;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.85),
    0 0 28px rgba(255, 255, 255, 0.45);
}

.copy-stack {
  max-width: 940px;
}

.copy-stack .lead {
  margin: 0;
  line-height: 1.75;
}

.copy-stack .lead + .lead {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.list {
  margin: 0 0 var(--text-gap);
  padding-left: 18px;
  color: rgba(231, 236, 255, 0.9);
  position: relative;
  z-index: 1;
}

.list li {
  margin: 0 0 var(--text-gap);
  padding-left: 4px;
}

.list li:last-child {
  margin-bottom: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #22d3ee 100%);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.button--primary:hover {
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.36);
}

.button--ghost {
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.26);
}

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

.card {
  display: grid;
  gap: 16px;
  align-content: start;
  animation: fadeIn 0.8s ease-out forwards;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.card__media {
  display: grid;
  place-items: center;
  min-height: 120px;
}

.card__media img {
  width: 85%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.card__media img:hover {
  transform: scale(1.15) rotate(-3deg);
}

.card__text {
  margin: 0;
  color: rgba(231, 236, 255, 0.92);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.card__media--gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.card__media--gallery img {
  width: 100%;
  height: auto;
  min-height: 140px;
  max-height: 140px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.card__media--gallery img.visible {
  opacity: 1;
  transform: translateY(0);
}

.card__media--gallery img:hover {
  transform: scale(1.15) rotate(-3deg);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal--left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal--right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal--right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal--bottom {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal--bottom.visible {
  opacity: 1;
  transform: translateY(0);
}

.examples {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}

.example {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  position: relative;
  z-index: 1;
}

.example:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.example--split {
  align-items: center;
}

.example--right {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.example--gallery {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.example__media {
  display: grid;
  place-items: center;
  align-items: center;
  width: 100%;
  max-width: 360px;
  min-height: 260px;
}

.example__media--featured {
  max-width: 400px;
  min-height: 320px;
}

.example__media img {
  width: 100%;
  max-width: 260px;
  max-height: 260px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.example__media--featured img {
  max-width: 320px;
  max-height: 320px;
}

.example__media img:hover {
  transform: scale(1.15) rotate(3deg);
}

.example__media--featured > img:hover {
  transform: scale(1.15) rotate(-3deg);
}

.example__media--gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.example-media-item {
  display: grid;
  place-items: center;
  min-height: 250px;
  transition: transform 0.35s ease;
}

.example-media-item:nth-child(1) { transform: translateY(22px); }
.example-media-item:nth-child(2) { transform: translateY(-40px); }
.example-media-item:nth-child(3) { transform: translateY(34px); }

.example__media--gallery img {
  width: auto;
  height: 210px;
  max-width: 100%;
  object-fit: contain;
}

.example__media--gallery img:hover {
  transform: scale(1.15) rotate(-3deg);
}

.example__text {
  max-width: 680px;
}

.example__text .lead {
  color: #0f172a;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.8;
  font-weight: 600;
}

.example__text .lead:last-child {
  margin-bottom: 0;
}

.contacts {
  display: grid;
  gap: 20px;
  padding: 0;
  background: transparent;
  border: none;
  position: relative;
  z-index: 1;
}

.contacts::before {
  display: none;
}

.contacts__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: rgba(231, 236, 255, 0.92);
  position: relative;
  z-index: 1;
}

.contact-group {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-group + .contact-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.contacts__list li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
}

.contacts__list li + li {
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.contacts__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e293b;
}

.contacts__value {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

.contacts__list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(59, 130, 246, 0.6);
  transition: all 0.3s ease;
}

.contacts__list a:hover {
  color: rgb(0, 0, 0);
  text-decoration-color: rgba(34, 211, 238, 1);
}

.subtitle {
  margin: 0 0 var(--text-gap);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}

@media (min-width: 740px) {
  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    grid-column: auto;
    max-height: none;
    overflow: visible;
    padding-top: 0;
    gap: 10px;
    align-items: center;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .contacts {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: 92px;
  }

  .section {
    padding: 40px 0;
  }

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

@media (max-width: 740px) {
  .lead--highlight {
    margin-top: 20px;
    font-size: 16px;
  }

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

  .section {
    padding: 32px 0;
  }
  
  .company-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .example,
  .example--right,
  .example--gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .example__media {
    max-width: 240px;
    min-height: 200px;
    margin: 0 auto;
  }

  .example__media--featured {
    max-width: 300px;
    min-height: 280px;
  }

  .example--right .example__media {
    order: -1;
  }

  .example__media img {
    max-width: 200px;
    max-height: 200px;
  }

  .example__media--featured img {
    max-width: 280px;
    max-height: 280px;
  }

  .example__media--gallery {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
  }

  .example-media-item {
    min-height: 170px;
    transform: none;
  }

  .example__media--gallery img {
    height: 150px;
  }

  .example__text .lead {
    font-size: 16px;
    line-height: 1.7;
  }
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.company-content {
  display: grid;
  gap: 16px;
}

.company-form .title {
  margin-bottom: 0;
}

.contact-form {
  margin-top: 20px;
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(240, 244, 255, 0.85);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 15px;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(240, 244, 255, 0.4);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.section--light .form-label {
  color: #475569;
}

.section--light .form-input,
.section--light .form-textarea {
  background: rgba(30, 41, 59, 0.03);
  border-color: rgba(30, 41, 59, 0.15);
  color: #1e293b;
}

.section--light .form-input:focus,
.section--light .form-textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
}

.section--light .form-input::placeholder,
.section--light .form-textarea::placeholder {
  color: rgba(71, 85, 105, 0.5);
}