﻿:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0e1726;
  --muted: #5c697a;
  --line: #d9e1ee;
  --blue: #0b72e7;
  --cyan: #16c7df;
  --green: #26c281;
  --navy: #101927;
  --dark: #0a111d;
  --shadow: 0 18px 50px rgba(13, 24, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(10, 17, 29, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(22, 199, 223, 0.45);
  border-radius: 8px;
  background: #000;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: #b7c5d8;
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2.2vw, 30px);
  flex-wrap: wrap;
}

.nav a {
  color: #dce7f6;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.contact-copy a:hover {
  color: var(--cyan);
}

.hero {
  position: relative;
  min-height: min(680px, calc(100svh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(5, 11, 21, 0.05) 0%, rgba(5, 11, 21, 0.38) 42%, rgba(5, 11, 21, 0.92) 100%), url("assets/hero-3r-consulting.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 36px));
  margin-left: auto;
  margin-right: clamp(18px, 7vw, 96px);
  padding: 64px 0 88px;
}

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

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

h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-text {
  max-width: 540px;
  margin: 24px 0 0;
  color: #dce7f6;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(124, 233, 244, 0.28);
  border-radius: 8px;
  color: #dce7f6;
  background: rgba(5, 11, 21, 0.42);
  font-size: 0.84rem;
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button svg,
.icon-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0a9fd6);
  box-shadow: 0 12px 28px rgba(11, 114, 231, 0.28);
}

.button.secondary {
  color: #eef7ff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(64px, 9vw, 110px) clamp(18px, 5vw, 72px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro {
  padding-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats-grid div {
  min-height: 154px;
  padding: 28px;
  background: var(--surface);
}

.stats-grid span {
  color: var(--blue);
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
}

.stats-grid p,
.service-card p,
.contact-copy p,
.dark-band p {
  color: var(--muted);
  line-height: 1.65;
}

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

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.12;
}

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

.service-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(13, 24, 38, 0.08);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 22px;
  color: #253247;
  line-height: 1.45;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.dark-band {
  color: #fff;
  background: radial-gradient(circle at top left, rgba(22, 199, 223, 0.18), transparent 36%), var(--dark);
}

.dark-band .eyebrow {
  color: #7ce9f4;
}

.dark-band p {
  color: #d3deea;
  font-size: 1.05rem;
}

.partners-section {
  background: #fff;
}

.partners-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.capability-list {
  display: grid;
  gap: 14px;
}

.capability-list div {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #f8fbff;
}

.capability-list strong,
.capability-list span {
  display: block;
}

.capability-list strong {
  margin-bottom: 7px;
  color: var(--ink);
}

.capability-list span {
  color: var(--muted);
  line-height: 1.55;
}

.split,
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.contact-section {
  background: #eef3f9;
}

.contact-copy a {
  color: var(--blue);
  font-weight: 800;
}

.contact-note {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-left: 18px;
  border-left: 4px solid var(--green);
}

.contact-note span {
  color: var(--muted);
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

label {
  color: #233149;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b9c6d8;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(22, 199, 223, 0.25);
  border-color: var(--blue);
}

.full {
  width: 100%;
  margin-top: 8px;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(124, 233, 244, 0.38);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0b72e7, #0a9fd6);
  box-shadow: 0 18px 40px rgba(5, 11, 21, 0.28);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.chat-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-panel {
  max-height: calc(100vh - 100px);
  width: min(370px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(124, 233, 244, 0.2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(5, 11, 21, 0.32);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: #fff;
  background: var(--navy);
}

.chat-header div {
  display: grid;
  gap: 3px;
}

.chat-header span {
  color: #b7c5d8;
  font-size: 0.82rem;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.35rem;
  cursor: pointer;
}

.chat-body,
.chat-form {
  padding: 16px;
}

.chat-body {
  display: grid;
  gap: 12px;
  max-height: 245px;
  overflow: auto;
  background: #f7faff;
}

.bot-message,
.user-message {
  padding: 12px 13px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 0.92rem;
}

.bot-message {
  color: #26354c;
  background: #fff;
  border: 1px solid var(--line);
}

.user-message {
  justify-self: end;
  color: #fff;
  background: var(--blue);
}

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

.chat-options button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #c8d4e5;
  border-radius: 8px;
  color: #17243a;
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.chat-options button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.chat-form {
  display: grid;
  gap: 9px;
  max-height: 390px;
  overflow: auto;
}

.footer {
  padding: 26px 18px;
  color: #cfdae9;
  text-align: center;
  background: var(--navy);
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 620px;
    background-image: linear-gradient(180deg, rgba(5, 11, 21, 0.38) 0%, rgba(5, 11, 21, 0.72) 48%, rgba(5, 11, 21, 0.95) 100%), url("assets/hero-3r-consulting.png");
    background-position: 40% center;
  }

  .stats-grid,
  .service-grid,
  .partners-layout,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    margin: 0 auto;
    align-self: end;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
  }

  .nav a {
    padding: 8px 0;
    font-size: 0.84rem;
  }

  .hero {
    min-height: min(650px, calc(100svh - 170px));
    background-image: linear-gradient(180deg, rgba(5, 11, 21, 0.34) 0%, rgba(5, 11, 21, 0.74) 42%, rgba(5, 11, 21, 0.96) 100%), url("assets/hero-3r-consulting.png");
    background-position: 76% center;
  }

  h1 {
    font-size: 2.08rem;
  }

  .hero-inner {
    padding: 44px 0 62px;
  }

  .hero-text {
    margin-top: 16px;
    line-height: 1.55;
  }

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

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

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

  .stats-grid div,
  .service-card,
  .contact-form {
    padding: 22px;
  }

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

  .chat-toggle {
    min-height: 48px;
    padding: 0 14px;
  }
}

