:root {
  --bg: #0a0f1e;
  --bg-2: #0d1428;
  --card: #141e3a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef2fb;
  --muted: #97a4c6;
  --soft: #c7d0e6;
  --accent: #ff8a4c;
  --accent-2: #7b5cff;
  --radius: 16px;
  --header-h: 64px;
  --container: 1180px;
  --shadow-accent: 0 14px 34px rgba(255, 138, 76, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(255, 138, 76, 0.35);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 600px) {
  .container {
    padding-inline: 28px;
  }
}

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.header.is-scrolled {
  background: rgba(8, 12, 24, 0.92);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.logo__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: none;
}

.header__tel {
  display: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 10px 6px;
  transition: color 0.2s;
}

.header__tel:hover {
  color: var(--accent);
}

/* Nav (mobile panel) */

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.28s, opacity 0.28s;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 20px 30px;
  background: rgba(10, 14, 26, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  overflow-y: auto;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__link {
  display: block;
  padding: 15px 8px;
  font-size: 1.12rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s, padding-left 0.2s;
}

.nav__link:hover {
  color: var(--accent);
  padding-left: 14px;
}

.nav__tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 22px;
  border: 1px solid rgba(255, 138, 76, 0.5);
  border-radius: 14px;
  font-weight: 700;
  color: var(--accent);
  transition: background 0.2s;
}

.nav__tel:hover {
  background: rgba(255, 138, 76, 0.1);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.18s, box-shadow 0.25s, background 0.2s, border-color 0.2s;
}

.btn--accent {
  background: linear-gradient(135deg, #ff9354, #ff7a3c);
  color: #1c0f05;
  box-shadow: 0 8px 24px rgba(255, 138, 76, 0.25);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn--lg {
  min-height: 58px;
  padding: 0 42px;
  font-size: 1.08rem;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 36px) 0 56px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 420px at 85% 0%, rgba(123, 92, 255, 0.28), transparent 65%),
    radial-gradient(600px 400px at 10% 100%, rgba(255, 138, 76, 0.14), transparent 60%),
    linear-gradient(165deg, #182348 0%, #0b1122 60%, #0a0f1e 100%);
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero__media.is-loaded img {
  opacity: 1;
}

.hero__media-hint {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.7);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.4s;
}

.hero__media.is-loaded .hero__media-hint {
  opacity: 0;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.93), rgba(6, 9, 18, 0.87) 60%, var(--bg) 100%);
  pointer-events: none;
}

.hero h1,
.hero__lead,
.hero__tag {
  text-shadow: 0 2px 22px rgba(3, 5, 12, 0.85);
}

.hero__content {
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--soft);
}

.hero__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.3rem, 7.5vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.accent-text {
  background: linear-gradient(92deg, var(--accent), #ffd08a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 22px 0 0;
  max-width: 640px;
  color: var(--soft);
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Stats */

.stats {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 14px;
  padding-block: 38px;
}

@media (min-width: 720px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-block: 46px;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__num {
  font-size: clamp(2rem, 6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #9fb0d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Sections */

.section {
  padding-block: clamp(60px, 10vw, 110px);
}

.section__kicker {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
}

.section__title {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 4.6vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.section__lead {
  margin: 0 0 30px;
  max-width: 760px;
  color: var(--soft);
  font-size: 1.03rem;
}

@media (min-width: 800px) {
  .section__lead {
    font-size: 1.08rem;
  }
}

/* About */

.about__grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 920px) {
  .about__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
  }
}

.about__text p {
  margin: 0 0 16px;
  color: var(--soft);
}

.about__text p:last-of-type {
  margin-bottom: 0;
}

.about__principles {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.about__principles li {
  position: relative;
  padding: 12px 16px 12px 42px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
}

.about__principles li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.values {
  display: grid;
  gap: 14px;
}

.value {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.value__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.2), rgba(255, 138, 76, 0.16));
  color: #ffd7b8;
}

.value__icon svg {
  width: 23px;
  height: 23px;
}

.value h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Services */

.services {
  background: var(--bg-2);
}

.services__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}

@media (hover: hover) {
  .service:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 138, 76, 0.45);
  }
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.22), rgba(255, 138, 76, 0.18));
  color: #ffffff;
}

.service__icon svg {
  width: 25px;
  height: 25px;
}

.service h3 {
  margin: 0;
  font-size: 1.14rem;
}

.service p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.94rem;
}

.service__time {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Projects */

.projects__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 680px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}

@media (hover: hover) {
  .project:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 92, 255, 0.5);
  }
}

.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(320px 200px at 80% 0%, rgba(123, 92, 255, 0.25), transparent 70%),
    linear-gradient(160deg, #1a2547, #101a36);
}

.project__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.5s ease;
}

.project__media.is-loaded img {
  opacity: 1;
}

@media (hover: hover) {
  .project:hover .project__media img {
    transform: scale(1.03);
  }
}

.media-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: calc(100% - 24px);
  transform: translate(-50%, -50%);
  padding: 7px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.72);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.35s;
}

.project__media.is-loaded .media-hint {
  opacity: 0;
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 24px;
  flex: 1;
}

.project__meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.project__body h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.3;
}

.project__logline {
  margin: 4px 0 14px;
  color: var(--soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge--amber {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.badge--cyan {
  background: rgba(56, 189, 248, 0.14);
  color: #67d0f7;
}

.badge--gray {
  background: rgba(255, 255, 255, 0.09);
  color: #c3cde4;
}

/* Locations */

.locations {
  background: var(--bg-2);
}

.locations__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

@media (min-width: 720px) {
  .locations__metrics {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.metric__num {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(92deg, var(--accent), #ffc48f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric__label {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.location-chips {
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .location-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .location-chips {
    grid-template-columns: repeat(3, 1fr);
  }
}

.location-chips li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: none;
}

.location-chips small {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
  line-height: 1.35;
}

/* Stack */

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

.stack__list li {
  padding: 13px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.18s, border-color 0.18s;
}

@media (hover: hover) {
  .stack__list li:hover {
    transform: translateY(-2px);
    border-color: rgba(123, 92, 255, 0.55);
  }
}

/* Contacts */

.contacts {
  text-align: center;
  background:
    radial-gradient(640px 420px at 50% 115%, rgba(123, 92, 255, 0.18), transparent 70%),
    linear-gradient(180deg, transparent, rgba(255, 138, 76, 0.05));
}

.contacts .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacts .section__lead {
  margin-inline: auto;
}

.contacts__phone {
  display: inline-block;
  margin: 10px 0 8px;
  font-size: clamp(1.9rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  background: linear-gradient(180deg, #ffffff, #b7c3e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.2s;
}

@media (hover: hover) {
  .contacts__phone:hover {
    filter: drop-shadow(0 0 22px rgba(255, 138, 76, 0.45));
  }
}

.contacts__info {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

@media (min-width: 700px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__logo {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__tel {
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}

@media (hover: hover) {
  .footer__tel:hover {
    color: var(--accent);
  }
}

/* Desktop nav */

@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .header__inner {
    gap: 20px;
  }

  .header__tel {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
  }

  .nav__list {
    flex-direction: row;
    gap: 4px;
  }

  .nav__link {
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 0;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
  }

  .nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    padding-left: 14px;
  }

  .nav__tel {
    display: none;
  }
}

@media (min-width: 1180px) {
  .nav__link {
    padding-inline: 16px;
  }
}

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