:root {
  --bg: #f4f6fb;
  --white: #ffffff;
  --text: #0f1e33;
  --muted: #6b7d95;
  --line: #d9e1ef;
  --primary: #1677ff;
  --primary-dark: #0f62da;
  --secondary: #17b8a5;
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 16px 40px rgba(37, 64, 107, 0.12);
  --shadow-soft: 0 10px 24px rgba(26, 53, 95, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8faff 0%, #f3f6fb 100%);
}

html {
  scroll-padding-top: 18px;
}

[id] {
  scroll-margin-top: 18px;
}

main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  top: 520px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 94vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(126, 160, 208, 0), rgba(126, 160, 208, 0.45), rgba(126, 160, 208, 0));
  pointer-events: none;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 228, 242, 0.9);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(145deg, #2e8bff, #7ab5ff);
  box-shadow: 0 10px 20px rgba(37, 120, 255, 0.35);
}

.logo-text {
  display: grid;
  line-height: 1.1;
}

.logo-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav a {
  color: #243952;
  font-weight: 500;
  position: relative;
  letter-spacing: 0.2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  border: 1px solid #c9d6ea;
  background: rgba(255, 255, 255, 0.82);
  color: #2a3d57;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1f7eff 0%, #63a8ff 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(25, 112, 240, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(25, 112, 240, 0.38);
}

.btn-secondary {
  border-color: #d4dfef;
  background: rgba(255, 255, 255, 0.74);
  color: #2c405c;
}

.btn-secondary:hover {
  border-color: #b5c7e0;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, #e4f0ff 0%, #f8fbff 50%, #f4f7fc 100%);
  padding: 4.8rem 0 4rem;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero-glow-left {
  width: 240px;
  height: 240px;
  background: rgba(141, 197, 255, 0.35);
  left: -80px;
  bottom: -70px;
}

.hero-glow-right {
  width: 280px;
  height: 280px;
  background: rgba(96, 169, 255, 0.25);
  right: -90px;
  top: -50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  border: 1px solid #d2dff2;
  color: #2d6fca;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-weight: 600;
  margin: 0 0 0.9rem;
  background: rgba(255, 255, 255, 0.72);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.5px;
}

.hero-desc {
  color: var(--muted);
  line-height: 1.75;
  max-width: 56ch;
  margin-top: 1rem;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin: 1.2rem 0 1.3rem;
}

.hero-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-metrics div {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d6e0ee;
  border-radius: 16px;
  padding: 0.65rem 0.9rem;
  min-width: 120px;
  box-shadow: 0 10px 24px rgba(37, 64, 107, 0.1);
}

.hero-metrics strong {
  display: block;
  font-size: 1.35rem;
  color: #183e73;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: var(--card);
  border: 1px solid #d6e0ef;
  border-radius: 24px;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-card::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5ea0ff, #8bbdff);
  margin-bottom: 0.8rem;
}

.hero-card h3 {
  margin-top: 0.3rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #d3dfef;
  padding: 0.75rem 0;
  gap: 0.8rem;
}

.hero-card .block {
  width: 100%;
}

.section {
  padding: 4.4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f2f6fc 0%, #eef3fa 100%);
}

.trusted {
  padding: 1rem 0 0.5rem;
}

.trusted-inner {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d7e0ee;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.trusted-inner p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.trusted-logos {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.trusted-logos span {
  color: #6f87a7;
  border: 1px dashed #cad8ec;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.3px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

.cards,
.advantages,
.case-grid {
  display: grid;
  gap: 0.9rem;
}

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

.card {
  background: var(--card);
  border: 1px solid #d7e1ef;
  border-radius: 24px;
  padding: 1.15rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card h3,
.advantages h3,
.news-list h3,
.case-grid h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.55rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(37, 64, 107, 0.18);
}

.card p {
  color: var(--muted);
  line-height: 1.65;
}

.card a {
  color: #2c74d8;
  font-weight: 600;
}

.advantages {
  grid-template-columns: repeat(4, 1fr);
}

.advantages > div {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid #d7e1ef;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(37, 64, 107, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.advantages > div:hover {
  box-shadow: 0 16px 28px rgba(37, 64, 107, 0.14);
}

.advantages p {
  color: var(--muted);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.news-list article {
  border: 1px solid #d7e1ef;
  border-radius: 24px;
  background: var(--card);
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.news-list article:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(37, 64, 107, 0.18);
}

.news-list time {
  color: #2f77da;
  font-size: 0.88rem;
}

.news-list p,
.case-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.news-list h3 a {
  color: inherit;
}

.news-list h3 a:hover {
  color: #2c74d8;
}

.news-read-more {
  display: inline-block;
  margin-top: 0.35rem;
  color: #2c74d8;
  font-weight: 600;
}

.news-more-wrap {
  margin-top: 1.2rem;
}

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

.case-grid article {
  background: var(--card);
  border: 1px solid #d7e1ef;
  border-radius: 24px;
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.case-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(37, 64, 107, 0.18);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-content {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d7e1ef;
  border-radius: 24px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-list {
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 0;
}

.form {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d7e1ef;
  border-radius: 24px;
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.8rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: #2a3f5c;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cfdbec;
  border-radius: 8px;
  padding: 0.62rem 0.72rem;
  font-size: 0.96rem;
  font-family: inherit;
  color: #1d2f48;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #8eb3e2;
  box-shadow: 0 0 0 4px rgba(38, 124, 245, 0.13);
}

textarea {
  resize: vertical;
}

.form-tip {
  margin: 0;
  color: var(--secondary);
  min-height: 1.2rem;
  font-size: 0.9rem;
}

.footer {
  background: #eff4fb;
  color: #5f7695;
  padding: 2.1rem 0;
  border-top: 1px solid #d9e2ef;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mobile-consult-bar {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bottom-consult-bar {
  display: none;
  position: fixed;
  right: 0.8rem;
  bottom: 0;
  z-index: 38;
  padding: 0.55rem;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
  background: rgba(248, 250, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(210, 222, 240, 0.85);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(24, 52, 92, 0.16);
}

.bottom-consult-form {
  width: auto;
  margin: 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.55rem;
  align-items: center;
}

.bottom-consult-form input {
  width: 15ch;
  border-radius: 10px;
  border: 1px solid #cdd9eb;
  min-height: 2.6rem;
}

.bottom-consult-form .btn {
  min-height: 2.6rem;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}

.bottom-consult-tip {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  min-height: 0;
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  color: var(--secondary);
}

.bottom-consult-tip.is-active {
  display: block;
}

.bottom-consult-tip-text {
  display: inline-block;
  padding-left: 100%;
}

.bottom-consult-tip.is-active .bottom-consult-tip-text {
  animation: bottom-tip-marquee 12s linear infinite;
}

@keyframes bottom-tip-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.modal {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--entrust-vv-top, 0);
  height: var(--entrust-vv-height, 100vh);
  z-index: 60;
  display: none;
}

.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0.5rem
    max(0.5rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .modal {
    height: var(--entrust-vv-height, 100dvh);
  }
}

.modal.open .modal-backdrop {
  animation: modalBackdropFadeIn 0.28s ease-out both;
}

.modal.open .modal-panel {
  animation: modalPanelGradientIn 0.34s cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.modal.open.is-closing .modal-backdrop {
  animation: modalBackdropFadeOut 0.24s ease-in both;
}

.modal.open.is-closing .modal-panel {
  animation: modalPanelGradientOut 0.24s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 40, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(500px, calc(100% - 1rem));
  max-height: calc(100vh - 1rem);
  margin: 0;
  background: linear-gradient(165deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid rgba(210, 222, 240, 0.95);
  border-radius: 28px;
  box-shadow: 0 8px 0 rgba(255, 255, 255, 0.65) inset, 0 32px 64px rgba(20, 45, 88, 0.18);
  padding: 0;
  overflow: hidden;
  min-height: 0;
  align-self: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@supports (height: 100dvh) {
  .modal-panel {
    max-height: calc(100dvh - 1rem);
  }
}

.modal-body-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3d8aff, #7ab8ff, #4fd4e8);
  pointer-events: none;
}

.modal-head {
  flex-shrink: 0;
  padding: 1.35rem 1.4rem 1rem;
  padding-right: 3rem;
  border-bottom: 1px solid #e8edf5;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}

.modal-head .eyebrow {
  margin: 0 0 0.35rem;
}

.modal-head h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #132944;
}

.modal-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #dce5f0;
  background: linear-gradient(180deg, #fff 0%, #f2f6fb 100%);
  color: #5a6b82;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  color: #1a3a5c;
  border-color: #c5d3e5;
  background: #fff;
}

#entrustForm.modal-form,
#entrustForm.form {
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 1.1rem 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.entrust-group {
  background: #f0f3f9;
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  padding: 0.9rem 1rem 1rem;
}

.entrust-group-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7d95;
}

.entrust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.85rem;
}

#entrustForm label.entrust-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.entrust-label-full {
  grid-column: 1 / -1;
}

.entrust-group:last-of-type .entrust-label + .entrust-label {
  margin-top: 0.15rem;
}

.entrust-label-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: #2d4360;
  letter-spacing: 0.02em;
}

.entrust-input,
.entrust-textarea,
#entrustForm .entrust-select {
  width: 100%;
  border: 1px solid #d4deec;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.98rem;
  line-height: 1.45;
  font-family: inherit;
  color: #1a2a3f;
  background: #fff;
  box-shadow: 0 1px 2px rgba(25, 50, 90, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.entrust-input::placeholder,
.entrust-textarea::placeholder {
  color: #9aa8bc;
}

.entrust-input:hover,
.entrust-textarea:hover,
.entrust-select:hover {
  border-color: #b8cbe0;
}

.entrust-input:focus,
.entrust-textarea:focus,
.entrust-select:focus {
  outline: none;
  border-color: #6fa8ff;
  box-shadow: 0 0 0 3px rgba(38, 124, 245, 0.18);
}

.entrust-textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.entrust-select-wrap {
  position: relative;
}

.entrust-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7d95;
  pointer-events: none;
}

.entrust-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
  line-height: 1.4;
  background: #fff;
}

.entrust-footer {
  margin-top: 0.1rem;
  padding-top: 0.1rem;
}

.entrust-footer-sticky {
  flex-shrink: 0;
  margin: 0;
  padding: 0.9rem 1.2rem 1.1rem;
  padding-bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e0e7f0;
  background: linear-gradient(180deg, #f3f6fb 0%, #fff 50%);
  box-shadow: 0 -10px 28px rgba(20, 45, 88, 0.07);
}

.entrust-submit {
  width: 100%;
  font-size: 1.12rem;
  font-weight: 600;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  margin: 0;
  letter-spacing: 0.04em;
}

.entrust-form-tip {
  text-align: center;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.45;
  min-height: 1.35rem;
}

.modal.is-success .modal-body-scroll,
.modal.is-success .entrust-submit {
  display: none;
}

.modal.is-success .modal-head {
  border-bottom: 0;
  text-align: center;
  padding-right: 1.4rem;
}

.modal.is-success .modal-desc {
  margin-top: 0.35rem;
  color: #2c4f85;
  font-weight: 500;
}

.modal.is-success .entrust-footer-sticky {
  display: none;
}

.modal.is-success .entrust-form-tip {
  margin-top: 0;
  min-height: 0;
}

.modal.open.is-success .modal-panel {
  animation: successModalGradientIn 0.42s cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

@keyframes modalBackdropFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

@keyframes modalPanelGradientIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: saturate(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.01);
    filter: saturate(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes successModalGradientIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
    filter: saturate(0.85);
  }
  55% {
    opacity: 1;
    transform: translateY(-4px) scale(1.015);
    filter: saturate(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes modalBackdropFadeOut {
  from {
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

@keyframes modalPanelGradientOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    filter: saturate(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal.open .modal-backdrop,
  .modal.open .modal-panel,
  .modal.open.is-success .modal-panel,
  .modal.open.is-closing .modal-backdrop,
  .modal.open.is-closing .modal-panel {
    animation: none;
  }
}


body.modal-open {
  overflow: hidden;
}

.error-page {
  position: relative;
  overflow: hidden;
  min-height: min(70vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 4rem;
  background: radial-gradient(circle at top right, #e4f0ff 0%, #f8fbff 50%, #f4f7fc 100%);
}

.error-page-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.error-page-glow-left {
  width: 200px;
  height: 200px;
  background: rgba(141, 197, 255, 0.3);
  left: -60px;
  bottom: 10%;
}

.error-page-glow-right {
  width: 220px;
  height: 220px;
  background: rgba(96, 169, 255, 0.2);
  right: -50px;
  top: 15%;
}

.error-page-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
}

.error-page-code {
  margin: 0 0 0.25rem;
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #1f5fbf 0%, #7ab0ff 55%, #a8c9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  letter-spacing: -0.2px;
}

.error-page-desc {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.news-page-main {
  padding: 3rem 0 4rem;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.news-content-card,
.news-sidebar-card {
  background: var(--card);
  border: 1px solid #d7e1ef;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.news-content-card {
  padding: 1.4rem 1.5rem 1.6rem;
}

.news-breadcrumb {
  color: var(--muted);
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.news-breadcrumb a {
  color: #2c74d8;
}

.news-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.4rem 0 1.2rem;
}

.news-content-card h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.news-content-card h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.4rem;
}

.news-content-card p,
.news-content-card li {
  line-height: 1.8;
  color: #2a3f5c;
}

.news-content-card ul {
  padding-left: 1.2rem;
}

.news-sidebar-card {
  padding: 1rem 1.05rem;
}

.news-sidebar-card h3 {
  margin: 0.15rem 0 0.8rem;
}

.news-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.news-sidebar-list a {
  color: #2a3f5c;
  font-weight: 500;
}

.news-sidebar-list a:hover {
  color: #2c74d8;
}

.news-list-page {
  display: grid;
  gap: 0.9rem;
}

.news-list-page article {
  border: 1px solid #d7e1ef;
  border-radius: 20px;
  padding: 1rem 1.05rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.news-load-state {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.news-load-trigger {
  width: 100%;
  height: 1px;
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .news-list,
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  main {
    padding-bottom: 5.2rem;
  }

  .menu-btn {
    display: inline-flex;
  }

  .desktop-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #d9e2ef;
    padding: 0.8rem 1rem 1rem;
  }

  .nav.open {
    display: flex;
  }

  .hero-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  /* Mobile homepage: keep only floating consult button */
  .hero-card .block {
    display: none;
  }

  .cards,
  .advantages,
  .news-list,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .news-content-card {
    padding: 1.05rem 1rem 1.15rem;
  }

  .trusted {
    padding-top: 0.4rem;
  }

  .entrust-textarea {
    min-height: 5rem;
  }

  .entrust-grid {
    grid-template-columns: 1fr;
  }

  .mobile-consult-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: block;
    padding: 0.6rem 0.8rem;
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(248, 250, 255, 0), rgba(248, 250, 255, 0.9) 40%, rgba(243, 246, 252, 0.96) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(210, 222, 240, 0.85);
  }

  .mobile-consult-btn {
    display: flex;
    width: min(86%, 360px);
    min-height: 2.5rem;
    font-size: 1.05rem;
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    margin: 0 auto;
  }

  .bottom-consult-bar {
    display: block;
    left: 0;
    right: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0.18rem 0 0.14rem;
    margin: 0;
    background: rgba(243, 246, 252, 0.96);
  }

  .bottom-consult-form {
    padding: 0;
    width: auto;
    margin: 0 auto;
    grid-template-columns: auto auto;
    gap: 0.28rem;
    justify-content: center;
  }

  .bottom-consult-form input {
    width: 18ch;
    min-height: 2.9rem;
    font-size: 1.1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .bottom-consult-form .btn {
    min-height: 2.9rem;
    font-size: 1.1rem;
    padding: 0.6rem 1.1rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8edf4;
    --muted: #94a3b8;
    --line: #3a4a5e;
    --primary: #4d9fff;
    --primary-dark: #3a8aee;
    --secondary: #2dd4bf;
    --card: rgba(30, 40, 55, 0.78);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.35);
  }

  html {
    color-scheme: dark;
  }

  html,
  body {
    background: linear-gradient(180deg, #141c28 0%, #0f141c 100%);
    color: var(--text);
  }

  main::before {
    background: linear-gradient(
      90deg,
      rgba(60, 100, 160, 0),
      rgba(100, 140, 200, 0.22),
      rgba(60, 100, 160, 0)
    );
  }

  .topbar {
    background: rgba(18, 26, 36, 0.9);
    border-bottom: 1px solid rgba(55, 75, 100, 0.55);
  }

  .nav a {
    color: #c5d3e5;
  }

  .menu-btn {
    border-color: #3d4d63;
    background: rgba(32, 42, 56, 0.92);
    color: #d8e4f2;
  }

  .btn-secondary {
    border-color: #3d4d63;
    background: rgba(40, 52, 68, 0.88);
    color: #e6eef8;
  }

  .btn-secondary:hover {
    border-color: #5a6d88;
  }

  .hero {
    background: radial-gradient(circle at top right, #1a2a40 0%, #111820 50%, #0d1218 100%);
  }

  .hero-glow-left {
    background: rgba(50, 120, 220, 0.14);
  }

  .hero-glow-right {
    background: rgba(60, 140, 220, 0.12);
  }

  .badge {
    border-color: #3a5580;
    color: #7ab6ff;
    background: rgba(25, 45, 75, 0.45);
  }

  .hero-metrics div {
    background: rgba(22, 32, 48, 0.9);
    border: 1px solid #3a4a5e;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }

  .hero-metrics strong {
    color: #a8c8f0;
  }

  .hero-card {
    border-color: #3d4d63;
  }

  .hero-card li {
    border-top-color: #3a4a5c;
  }

  .section-alt {
    background: linear-gradient(180deg, #151c28 0%, #111820 100%);
  }

  .trusted-inner {
    background: rgba(28, 38, 52, 0.85);
    border: 1px solid #3d4d63;
  }

  .trusted-logos span {
    color: #8a9db5;
    border-color: #4a5d74;
  }

  .card {
    border: 1px solid #3d4d63;
  }

  .card:hover,
  .news-list article:hover,
  .case-grid article:hover,
  .advantages > div:hover {
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.42);
  }

  .card a {
    color: #6eb0ff;
  }

  .advantages > div {
    border: 1px solid #3d4d63;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  }

  .news-list article,
  .case-grid article,
  .news-content-card,
  .news-sidebar-card,
  .news-list-page article {
    border: 1px solid #3d4d63;
  }

  .news-list time {
    color: #6eb0ff;
  }

  .news-list h3 a:hover,
  .news-read-more,
  .news-sidebar-list a:hover,
  .news-breadcrumb a {
    color: #6eb0ff;
  }

  .news-content-card p,
  .news-content-card li,
  .news-sidebar-list a {
    color: #c5d3e5;
  }

  .contact-content {
    background: rgba(28, 38, 52, 0.88);
    border: 1px solid #3d4d63;
  }

  .form label {
    color: #b8c8dc;
  }

  input,
  textarea,
  select {
    border-color: #3d4d63;
    color: #e8edf4;
    background: rgba(18, 24, 34, 0.95);
  }

  input:focus,
  textarea:focus,
  select:focus {
    border-color: #4d9fff;
    box-shadow: 0 0 0 4px rgba(77, 159, 255, 0.2);
  }

  .footer {
    background: #0f141c;
    color: #8a9db5;
    border-top: 1px solid #2a3445;
  }

  .modal-backdrop {
    background: rgba(0, 0, 0, 0.62);
  }

  .modal-panel {
    background: linear-gradient(165deg, #1e2838 0%, #181f2a 100%);
    border: 1px solid #3d4d63;
    box-shadow: 0 8px 0 rgba(255, 255, 255, 0.04) inset, 0 32px 64px rgba(0, 0, 0, 0.5);
  }

  .modal-head {
    border-bottom: 1px solid #2f3d4f;
    background: linear-gradient(180deg, #1a2230 0%, #1e2634 100%);
  }

  .modal-head h3 {
    color: #e8edf4;
  }

  .modal-close {
    border-color: #3d4d63;
    background: linear-gradient(180deg, #2a3444 0%, #222c3a 100%);
    color: #a0b0c4;
  }

  .modal-close:hover {
    color: #e8edf4;
    border-color: #556a85;
    background: #2a3444;
  }

  .entrust-group {
    background: #1a1f2a;
    border: 1px solid #2f3d4f;
  }

  .entrust-group-title {
    color: #7a8a9e;
  }

  .entrust-label-text {
    color: #b0c0d4;
  }

  .entrust-input,
  .entrust-textarea,
  #entrustForm .entrust-select {
    border: 1px solid #3d4d63;
    color: #e8edf4;
    background: #121820;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  }

  .entrust-input::placeholder,
  .entrust-textarea::placeholder {
    color: #6b7a8e;
  }

  .entrust-input:hover,
  .entrust-textarea:hover,
  .entrust-select:hover {
    border-color: #556a85;
  }

  .entrust-input:focus,
  .entrust-textarea:focus,
  .entrust-select:focus {
    border-color: #4d9fff;
    box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.25);
  }

  .entrust-select {
    background: #121820;
  }

  .entrust-select-wrap::after {
    border-top-color: #8a9db5;
  }

  .entrust-footer-sticky {
    border-top: 1px solid #2f3d4f;
    background: linear-gradient(180deg, #1a1f2a 0%, #1e2634 50%);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.4);
  }

  .form-tip.entrust-form-tip,
  .entrust-form-tip {
    color: #5eead4;
  }

  .modal.is-success .modal-desc {
    color: #9ec5ff;
  }

  .modal.is-success .entrust-footer-sticky {
    display: none;
  }

  .mobile-consult-bar {
    background: linear-gradient(180deg, rgba(15, 20, 28, 0), rgba(15, 20, 28, 0.88) 45%, rgba(15, 20, 28, 0.95) 100%);
    border-top: 1px solid rgba(61, 77, 99, 0.8);
  }

  .bottom-consult-bar {
    background: linear-gradient(180deg, rgba(15, 20, 28, 0), rgba(15, 20, 28, 0.88) 45%, rgba(15, 20, 28, 0.95) 100%);
    border-top: 1px solid rgba(61, 77, 99, 0.8);
  }

  .bottom-consult-form input {
    border-color: #3d4d63;
    color: #e8edf4;
    background: rgba(18, 24, 34, 0.95);
  }

  .error-page {
    background: radial-gradient(circle at top right, #1a2840 0%, #0f1418 50%, #0a0e14 100%);
  }

  .error-page h1 {
    color: var(--text);
  }

  .error-page-desc {
    color: var(--muted);
  }

  @media (max-width: 760px) {
    .nav {
      background: rgba(18, 26, 36, 0.97);
      border-bottom: 1px solid #2a3445;
    }
  }
}
