:root {
  --bg: #111419;
  --bg-soft: #171d24;
  --panel: #202733;
  --panel-strong: #2d3643;
  --text: #f4f7fb;
  --muted: #aeb8c5;
  --line: rgba(244, 247, 251, 0.13);
  --cyan: #48d7ff;
  --amber: #ffb84c;
  --red: #ff5d5d;
  --green: #7be495;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(72, 215, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 85% 4%, rgba(255, 184, 76, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 20, 25, 0.82);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.language-switcher,
.hero-actions,
.hero-facts,
.chat-panel-header {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 780;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(72, 215, 255, 0.55);
  background: linear-gradient(145deg, rgba(72, 215, 255, 0.18), rgba(255, 184, 76, 0.1));
  color: var(--text);
  font-size: 0.86rem;
  border-radius: 8px;
}

.nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.language-switcher {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.lang-button {
  min-width: 40px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--text);
  color: var(--bg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: clamp(42px, 6vw, 74px) clamp(18px, 4vw, 56px) 34px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4.2vw, 4.35rem);
  line-height: 0.98;
  font-weight: 860;
  max-width: none;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.05;
  font-weight: 820;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
}

.hero-text {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 780;
  cursor: pointer;
}

.button-primary {
  border-color: rgba(72, 215, 255, 0.6);
  background: var(--cyan);
  color: #071116;
}

.button.is-disabled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

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

.hero-facts {
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.hero-facts div {
  min-width: 132px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(255, 184, 76, 0.32);
  border-radius: 8px;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(62px, 8vw, 112px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.audience-grid article,
.service-card,
.case-panel,
.contact-section {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
}

.audience-grid article {
  min-height: 190px;
  padding: 24px;
}

.audience-grid p,
.service-card p,
.process-list p,
.case-panel p,
.contact-copy p,
.chat-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.services-section {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035), transparent);
}

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

.service-card {
  min-height: 236px;
  padding: 24px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 184, 76, 0.42);
  border-radius: 8px;
  color: var(--amber);
  font-weight: 800;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 254px;
  padding: 24px;
  border-left: 2px solid var(--cyan);
  background: rgba(72, 215, 255, 0.055);
  border-radius: 0 8px 8px 0;
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 34px;
  background: rgba(72, 215, 255, 0.16);
  color: var(--cyan);
  border-radius: 8px;
  font-weight: 800;
}

.case-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 93, 93, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.05);
}

.case-panel p {
  font-size: 1.12rem;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(18px, 4vw, 56px) clamp(42px, 6vw, 80px);
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(120deg, rgba(72, 215, 255, 0.14), rgba(255, 184, 76, 0.1));
}

.contact-copy {
  max-width: 760px;
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(72, 215, 255, 0.7);
  background: var(--cyan);
  color: #071116;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 40;
  width: min(380px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(23, 29, 36, 0.98);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.chat-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-panel-header {
  justify-content: space-between;
  gap: 16px;
}

.chat-panel h2 {
  font-size: 1.3rem;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.35rem;
}

.chat-telegram {
  width: 100%;
  margin-top: 20px;
}

.chat-note {
  font-size: 0.86rem;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  background: rgba(0, 0, 0, 0.42);
}

.scrim.is-open {
  display: block;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
  }

  .audience-grid,
  .service-grid,
  .process-list,
  .case-panel {
    grid-template-columns: 1fr 1fr;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 14px;
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-switcher {
    gap: 2px;
  }

  .lang-button {
    min-width: 34px;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.72rem, 9vw, 2.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-facts {
    display: none;
  }

  .hero-visual img {
    max-height: 210px;
  }

  .hero-visual::before {
    inset: 10px -8px -10px 8px;
  }

  .audience-grid,
  .service-grid,
  .process-list,
  .case-panel {
    grid-template-columns: 1fr;
  }

  .audience-grid article,
  .service-card,
  .process-list li {
    min-height: auto;
  }

  .contact-section {
    margin-left: 16px;
    margin-right: 16px;
  }

  .chat-launcher {
    right: 16px;
    bottom: 16px;
  }

  .chat-panel {
    right: 16px;
    bottom: 86px;
  }
}
