* {
  box-sizing: border-box;
}

:root {
  --navy: #081b34;
  --blue: #123f7a;
  --blue-2: #1b66ad;
  --red: #d52f2f;
  --silver: #eef3f8;
  --silver-2: #d9e2ec;
  --ink: #132238;
  --muted: #657386;
  --white: #ffffff;
  --line: rgba(18, 63, 122, 0.16);
  --shadow: 0 18px 44px rgba(8, 27, 52, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(18, 63, 122, 0.06), transparent 28%),
    linear-gradient(315deg, rgba(213, 47, 47, 0.05), transparent 26%),
    #f7f9fc;
  line-height: 1.68;
}

body.lang-zh .ru,
body.lang-ru .zh {
  display: none !important;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 252, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1180px;
  min-height: 88px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.brand {
  width: 190px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: 60px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 4px;
  color: #1d2c42;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.lang-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--silver-2);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(8, 27, 52, 0.08);
}

.lang-switch button {
  min-width: 48px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

body.lang-zh .lang-switch [data-lang-button="zh"],
body.lang-ru .lang-switch [data-lang-button="ru"] {
  color: var(--white);
  background: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(8, 27, 52, 0.95), rgba(18, 63, 122, 0.94) 54%, rgba(27, 102, 173, 0.9)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 34px);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 27, 52, 0.88), rgba(8, 27, 52, 0.62) 46%, rgba(8, 27, 52, 0.18)),
    linear-gradient(0deg, rgba(8, 27, 52, 0.38), rgba(8, 27, 52, 0.08));
}

.shared-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, var(--navy), var(--blue));
}

.shared-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: top center;
  background-size: 100vw auto;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: none;
}

.shared-bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.shared-bg-slider.is-ready .shared-bg-slide {
  transition: opacity 650ms ease, transform 3000ms ease;
}

.hero-inner,
.page-hero-inner,
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  padding-top: 74px;
  padding-bottom: 82px;
  display: flex;
  align-items: center;
}

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

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 24px 0 0;
  max-width: 960px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
}

.hero-note {
  margin: 12px 0 0;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-description {
  margin: 18px 0 0;
  max-width: 1040px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.72;
}

.check-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 13px;
  margin-top: 34px;
  font-size: 19px;
  font-weight: 700;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  font-size: 16px;
  font-weight: 900;
}

.section {
  padding: 78px 0;
}

.section.band {
  background:
    linear-gradient(90deg, rgba(213, 47, 47, 0.08), transparent 25%),
    var(--white);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, var(--navy), var(--blue) 62%, var(--red));
  color: var(--white);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 66px;
  padding-bottom: 62px;
}

.page-hero p {
  margin: 18px 0 0;
  max-width: 940px;
  font-size: 25px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.section h2,
.page-section h2 {
  margin: 0 0 26px;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

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

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

.panel,
.card {
  position: relative;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel h2,
.card h3 {
  margin: 0 0 14px;
  color: var(--blue);
}

.panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.35;
}

.card h3 {
  font-size: 22px;
}

.plain-list li,
.card p,
.contact-row,
.steps li,
.about-text p {
  color: #314057;
  font-size: 17px;
}

.plain-list li + li {
  margin-top: 10px;
}

.advantages-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: adv;
}

.advantages-list li {
  counter-increment: adv;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.advantages-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 21px;
}

.steps {
  counter-reset: flow;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(8, 27, 52, 0.08);
}

.steps li::before {
  content: counter(flow);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-radius: 6px;
  font-size: 22px;
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 19px;
}

.page-section {
  padding: 78px 0;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.service-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-block h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.service-block ul {
  margin: 0;
  padding-left: 22px;
}

.service-block p {
  margin: 0;
  color: #314057;
  font-size: 17px;
}

.service-block li + li {
  margin-top: 10px;
}

.about-text {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.about-text p {
  margin: 0;
  padding: 22px 24px;
  border-left: 5px solid var(--red);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(8, 27, 52, 0.08);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-row {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 6px;
  background: var(--white);
  overflow-wrap: anywhere;
}

.contact-row strong {
  display: block;
  color: var(--blue);
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--silver-2);
  border-radius: 4px;
  background: #fbfdff;
  font: inherit;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--blue), var(--blue-2) 52%, var(--red));
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(18, 63, 122, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.submit-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(18, 63, 122, 0.3);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 12px 24px rgba(18, 63, 122, 0.22);
}

.site-footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

@media (max-width: 1000px) {
  .header-inner {
    align-items: flex-start;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 18px;
    padding-bottom: 2px;
  }

  .grid,
  .grid.two,
  .advantages-list,
  .contact-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  body {
    line-height: 1.58;
  }

  .header-inner,
  .hero-inner,
  .page-hero-inner,
  .section-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .brand {
    width: 118px;
  }

  .brand img {
    height: 42px;
  }

  .lang-switch button {
    min-width: 40px;
    height: 32px;
  }

  .main-nav {
    gap: 6px;
  }

  .main-nav a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }

  .shared-bg-slide {
    background-size: auto 100%;
    background-position: top center;
  }

  .hero-inner {
    min-height: 520px;
    padding-top: 42px;
    padding-bottom: 44px;
    align-items: flex-start;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 21px;
    line-height: 1.35;
  }

  .hero-note,
  .hero-description,
  .check-list {
    font-size: 16px;
  }

  .hero-description {
    margin-top: 14px;
    line-height: 1.62;
  }

  .check-list {
    gap: 10px;
    margin-top: 24px;
  }

  .check {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .page-hero-inner {
    min-height: 170px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .section,
  .page-section {
    padding: 42px 0;
  }

  .section h2,
  .page-section h2,
  .service-block h2 {
    margin-bottom: 18px;
    font-size: 28px;
  }

  .grid {
    align-items: start;
    gap: 12px;
  }

  .panel,
  .card,
  .advantages-list li,
  .about-text p,
  .contact-row {
    padding: 18px;
    min-height: auto;
    box-shadow: 0 8px 20px rgba(8, 27, 52, 0.08);
  }

  .service-block {
    padding: 24px 0;
    gap: 10px;
  }

  .plain-list li,
  .card p,
  .service-block p,
  .contact-row,
  .steps li,
  .about-text p {
    font-size: 16px;
  }

  .steps li {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
  }

  .steps li::before {
    width: 44px;
    height: 44px;
  }

  .contact-layout {
    gap: 18px;
  }

  input,
  textarea {
    min-height: 42px;
  }

  textarea {
    min-height: 96px;
  }
}
