:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #182433;
  --muted: #607084;
  --navy: #071321;
  --navy-2: #0d2033;
  --teal: #0d9488;
  --blue: #1f6feb;
  --amber: #b7791f;
  --line: #d8e1ea;
  --line-dark: rgba(158, 181, 204, .24);
  --max: 1240px;
}

* { box-sizing: border-box; }

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

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

html[dir=rtl] body { font-family: Vazirmatn, Tahoma, Arial, sans-serif; }
html[lang=zh-CN] body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Inter, Arial, sans-serif; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .93);
  border-bottom: 1px solid rgba(19, 38, 58, .12);
  backdrop-filter: blur(18px);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand b {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 15px;
}

.brand small {
  display: block;
  color: #64748b;
  font-size: 10px;
}

.logo {
  width: 43px;
  height: 43px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: var(--teal);
  background: #f1fbfa;
  box-shadow: inset 0 0 0 6px rgba(13, 148, 136, .08);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a,
.lang {
  color: #344257;
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

nav a:hover,
.lang:hover { color: var(--teal); }

.contact-link {
  border: 1px solid rgba(13, 148, 136, .5);
  padding: 10px 20px;
  border-radius: 8px;
}

.lang {
  min-width: 104px;
  border: 1px solid rgba(13, 148, 136, .28);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}

.menu {
  display: none;
  background: none;
  color: var(--ink);
  border: 0;
  font-size: 27px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: grid;
  align-items: center;
  background: var(--navy);
  color: #f7fbff;
  border-bottom: 1px solid #dbe5ee;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 19, 33, .98) 0%, rgba(7, 19, 33, .92) 37%, rgba(7, 19, 33, .35) 64%, rgba(7, 19, 33, .8) 100%),
    url("assets/hero-realistic.png") center / cover no-repeat;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy { max-width: 680px; }
.hero-copy,
.hero-media,
.heading > *,
.process-grid > *,
.consulting > *,
.software > *,
.contact-grid > * { min-width: 0; }

.kicker {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 800;
  margin: 0 0 14px;
}

.dark .kicker,
.hero .kicker { color: #4fd1c5; }

.hero h1,
.heading h2,
.process-grid h2,
.architecture h2,
.software h2,
.contact h2 {
  font-size: clamp(38px, 4.1vw, 58px);
  line-height: 1.04;
  margin: 0 0 22px;
}

.hero h1 { white-space: pre-line; }

.lead {
  font-size: 19px;
  color: #d2deea;
  max-width: 650px;
}

.actions {
  display: flex;
  gap: 14px;
  margin: 30px 0 38px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(31, 111, 235, .45);
  color: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.primary {
  background: #0d9488;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 148, 136, .24);
}

.ghost { background: rgba(255, 255, 255, .08); }

.proof {
  display: flex;
  gap: 28px;
}

.proof span {
  border-left: 1px solid rgba(178, 196, 215, .34);
  padding-left: 16px;
}

.proof b {
  font-size: 22px;
  display: block;
}

.proof small {
  color: #b9c8d7;
  display: block;
  max-width: 135px;
}

.hero-media { position: relative; }

.hero-media img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  border: 1px solid rgba(214, 229, 242, .24);
}

.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(7, 19, 33, .42) 0%, transparent 34%);
  pointer-events: none;
}

.hero-chip {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, .92);
  color: #193045;
  border: 1px solid rgba(16, 42, 67, .14);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
  max-width: calc(100% - 36px);
}

.hero-chip span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 8px;
  box-shadow: 0 0 12px var(--teal);
}

.section { padding: 100px 0; }

.dark {
  background: var(--navy);
  color: #f5f9ff;
  border-block: 1px solid #dbe5ee;
}

.heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 38px;
}

.heading h2,
.process-grid h2,
.architecture h2,
.software h2,
.contact h2 { font-size: clamp(32px, 4vw, 55px); }

.heading > p,
.arch-copy > p,
.software p,
.contact p {
  color: var(--muted);
  font-size: 17px;
}

.dark p,
.dark li,
.dark figcaption { color: #c5d2df; }

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

.expert-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(25, 42, 62, .08);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.expert-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 148, 136, .46);
  box-shadow: 0 24px 60px rgba(25, 42, 62, .14);
}

.expert-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  background: #dfe7ef;
}

.expert-grid article > div { padding: 22px; }
.expert-grid small { color: var(--amber); font-weight: 800; }
.expert-grid h3 { font-size: 22px; margin: 9px 0; }
.expert-grid p { color: var(--muted); margin: 0; }

.consulting-section {
  background: #ffffff;
  border-bottom: 1px solid #e2eaf2;
}

.consulting-heading {
  align-items: start;
  margin-bottom: 28px;
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.consulting-grid article {
  position: relative;
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(244, 248, 251, .98)),
    linear-gradient(135deg, rgba(13, 148, 136, .12), rgba(31, 111, 235, .06));
  box-shadow: 0 18px 45px rgba(25, 42, 62, .08);
}

.consulting-grid article:before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 48px;
  height: 3px;
  background: var(--teal);
}

.consulting-grid small {
  color: var(--amber);
  font-weight: 800;
}

.consulting-grid h3 {
  margin: 16px 0 10px;
  font-size: 21px;
}

.consulting-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.process-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.steps div {
  border-top: 3px solid var(--teal);
  padding: 20px 11px;
  background: rgba(255, 255, 255, .055);
  min-height: 170px;
  border-radius: 0 0 8px 8px;
}

.steps b { color: #f2c879; }
.steps h3 { margin: 16px 0 8px; }
.steps p { font-size: 13px; }

.process-grid figure {
  margin: 0;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy-2);
  box-shadow: 0 25px 75px rgba(0, 0, 0, .28);
}

.process-grid figure img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
}

.process-grid figcaption { padding: 18px; }

.architecture {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(25, 42, 62, .1);
}

.arch-copy {
  padding: 44px 44px 0;
  max-width: 760px;
}

.architecture > img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}

.tags span {
  border: 1px solid rgba(13, 148, 136, .32);
  color: #145d56;
  background: #edfafa;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.software {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 45px;
  align-items: center;
}

.software ul {
  padding-left: 20px;
  color: #c3d0de;
}

.software li { margin: 9px 0; }

.software img {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

.course-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border-top: 1px solid #e2eaf2;
}

.course {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.course > * { min-width: 0; }

.course-copy {
  max-width: 560px;
}

.course-copy h2 {
  font-size: clamp(32px, 4vw, 55px);
  line-height: 1.04;
  margin: 0 0 22px;
}

.course-copy p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.course-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.course-list span {
  border-left: 3px solid var(--teal);
  background: #fff;
  color: #243449;
  border-radius: 0 8px 8px 0;
  padding: 14px 14px 14px 16px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(25, 42, 62, .08);
}

.course-media {
  display: grid;
  grid-template-columns: 1fr .58fr;
  gap: 16px;
  align-items: end;
}

.course-media img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(25, 42, 62, .14);
  background: #dfe7ef;
}

.course-main { height: 430px; }

.course-secondary {
  height: 300px;
  margin-bottom: 28px;
}

.contact {
  background:
    linear-gradient(105deg, rgba(246, 248, 251, .98), rgba(246, 248, 251, .88)),
    url("assets/process-realistic.png") center / cover no-repeat;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.contact form {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 55px rgba(25, 42, 62, .1);
}

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

.contact input:focus,
.contact textarea:focus {
  outline: 3px solid rgba(13, 148, 136, .18);
  border-color: var(--teal);
}

.contact textarea { min-height: 135px; }
.contact form small { color: #64748b; }

.footer {
  height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #607084;
  font-size: 12px;
}

#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .42);
  background: #0d9488;
  color: white;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(13, 148, 136, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .25s, visibility .25s, transform .25s, background .25s;
  cursor: pointer;
}

#backToTop:hover { background: #0f766e; }
#backToTop.show { opacity: 1; visibility: visible; transform: none; }

.version {
  position: fixed;
  left: 8px;
  bottom: 8px;
  color: #8aa0b5;
  font-size: 10px;
  z-index: 2;
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .menu { display: block; }

  nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 73px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 20px 60px rgba(25, 42, 62, .16);
  }

  .header.open nav { display: flex; }
  .hero { min-height: auto; padding: 70px 0; }
  .hero-grid,
  .heading,
  .process-grid,
  .course,
  .software,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-media { order: 0; }
  .hero-media img { height: 330px; }
  .hero-media:after { background: linear-gradient(0deg, rgba(7, 19, 33, .48) 0%, transparent 45%); }
  .hero h1 { font-size: 45px; }
  .proof { flex-wrap: wrap; }
  .expert-grid { grid-template-columns: 1fr 1fr; }
  .consulting-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .course-copy { max-width: 760px; }
  .course-media { grid-template-columns: 1fr 1fr; }
  .course-main,
  .course-secondary {
    height: 300px;
    margin-bottom: 0;
  }
  .architecture > img { height: 260px; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .container {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }
  .expert-grid { grid-template-columns: 1fr; }
  .expert-grid img { height: 220px; }
  .consulting-grid { grid-template-columns: 1fr; }
  .consulting-grid article { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .course-list,
  .course-media { grid-template-columns: 1fr; }
  .course-main,
  .course-secondary { height: 235px; }
  .hero-media img { height: 270px; }
  .hero-chip {
    left: 16px;
    right: 16px;
    bottom: 12px;
    text-align: center;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .hero-copy,
  .hero-media {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    overflow: hidden;
  }
  .hero h1,
  .hero .lead,
  .hero .actions,
  .hero .proof {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }
  .hero h1 {
    font-size: 36px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .proof { display: grid; grid-template-columns: 1fr 1fr; }
  .heading { gap: 15px; }
  .actions { flex-direction: column; }
  .arch-copy { padding: 28px 22px 0; }
  .architecture > img { height: 200px; }
  .contact form { padding: 18px; }
  .footer {
    height: auto;
    padding: 35px 0;
    gap: 25px;
    flex-direction: column;
    align-items: flex-start;
  }
  #backToTop { right: 16px; bottom: 16px; }
}
