:root {
  --blue: #3699eb;
  --deep: #032880;
  --ink: #222;
  --muted: #666;
  --line: #e8eef5;
  --soft: #f6faff;
  --white: #fff;
  --header-bg: rgba(255, 255, 255, .95);
  --card-bg: #fff;
  --footer-bg: #081d45;
  --shadow: 0 16px 45px rgba(3, 40, 128, .12);
}

html[data-theme="night"] {
  --blue: #5fb5ff;
  --deep: #9cc8ff;
  --ink: #edf5ff;
  --muted: #aebbd0;
  --line: #263850;
  --soft: #111b2b;
  --white: #0a1220;
  --header-bg: rgba(10, 18, 32, .95);
  --card-bg: #121d2f;
  --footer-bg: #050b14;
  --shadow: 0 18px 48px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .76s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    transform .76s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    filter .76s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
  filter: blur(4px);
  will-change: opacity, transform, filter;
}

.section-heading.scroll-reveal {
  transform: translateY(24px);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.service-card.scroll-reveal,
.detail-grid article.scroll-reveal,
.blog-list article.scroll-reveal,
.steps article.scroll-reveal,
.quotes blockquote.scroll-reveal {
  transform: translateY(34px) scale(.982);
}

.service-card.scroll-reveal:nth-child(2n),
.detail-grid article.scroll-reveal:nth-child(2n),
.blog-list article.scroll-reveal:nth-child(2n) {
  transform: translateY(42px) scale(.982);
}

.service-card.scroll-reveal.is-visible,
.detail-grid article.scroll-reveal.is-visible,
.blog-list article.scroll-reveal.is-visible,
.steps article.scroll-reveal.is-visible,
.quotes blockquote.scroll-reveal.is-visible {
  transform: translateY(0) scale(1);
}

.feature.scroll-reveal,
.page-hero > .scroll-reveal {
  transform: translateY(38px);
}

.feature.scroll-reveal.is-visible,
.page-hero > .scroll-reveal.is-visible {
  transform: translateY(0);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 92px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--deep);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: none;
}

.brand-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 62px;
  height: 52px;
  border-radius: 10px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--deep), #0b56aa 55%, var(--blue));
  box-shadow: 0 10px 24px rgba(3, 40, 128, .18);
  letter-spacing: 0;
}

.brand-icon i,
.brand-icon b {
  display: block;
  font-style: normal;
  line-height: .9;
}

.brand-icon i {
  font-size: 11px;
  opacity: .88;
}

.brand-icon b {
  font-size: 22px;
}

.brand-icon-new {
  position: relative;
  overflow: hidden;
}

.brand-icon-new::after {
  content: "";
  position: absolute;
  inset: 8px 10px auto auto;
  width: 14px;
  height: 14px;
  border-top: 2px solid rgba(255,255,255,.76);
  border-right: 2px solid rgba(255,255,255,.76);
}

.brand-icon-new b,
.brand-icon-new i {
  position: relative;
  z-index: 1;
}

.brand-mark span:last-child {
  display: grid;
  gap: 3px;
}

.brand-mark small {
  color: #357ea8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.nav a {
  color: #357ea8;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.nav a[aria-current="page"] {
  color: var(--deep);
}

.nav .nav-cta {
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(54, 153, 235, .22);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 12px;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-parent::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 20;
  min-width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 18px 40px rgba(3, 40, 128, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  text-transform: none;
}

.nav-dropdown-menu a:hover {
  color: var(--deep);
  background: var(--soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep);
  background: var(--card-bg);
  font-size: 24px;
}

.language-select-wrap {
  position: relative;
  flex: 0 0 auto;
}

.language-select {
  position: absolute;
  width: 1px;
  height: 38px;
  opacity: 0;
  pointer-events: none;
}

.language-picker-toggle {
  display: inline-grid;
  grid-template-columns: 24px auto 12px;
  align-items: center;
  gap: 8px;
  min-width: 104px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep);
  background: var(--card-bg);
  font: 900 13px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(3, 40, 128, .08);
}

.language-picker-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.language-code {
  min-width: 22px;
  text-align: left;
}

.language-caret {
  color: var(--blue);
  font-size: 16px;
  line-height: 1;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 118px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.language-select-wrap.is-open .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-menu button {
  display: grid;
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 7px 8px;
  color: var(--deep);
  background: transparent;
  font: 900 13px/1 Arial, Helvetica, sans-serif;
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button[aria-selected="true"] {
  color: var(--white);
  background: var(--blue);
}

.flag-icon {
  display: inline-block;
  width: 24px;
  height: 16px;
  border: 1px solid rgba(3,40,128,.18);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.flag-bg {
  background: linear-gradient(to bottom, #fff 0 33.33%, #00966e 33.33% 66.66%, #d62612 66.66% 100%);
}

.flag-ru {
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.flag-en {
  background:
    linear-gradient(32deg, transparent 0 43%, #fff 43% 48%, #c8102e 48% 53%, #fff 53% 58%, transparent 58% 100%),
    linear-gradient(148deg, transparent 0 43%, #fff 43% 48%, #c8102e 48% 53%, #fff 53% 58%, transparent 58% 100%),
    linear-gradient(to bottom, transparent 0 34%, #fff 34% 42%, #c8102e 42% 58%, #fff 58% 66%, transparent 66% 100%),
    linear-gradient(to right, transparent 0 34%, #fff 34% 42%, #c8102e 42% 58%, #fff 58% 66%, transparent 66% 100%),
    #012169;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 72px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  background: var(--card-bg);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(3, 40, 128, .1);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--deep));
  transition: transform .22s ease;
}

.theme-toggle span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 17px;
}

html[data-theme="night"] .theme-toggle::before {
  transform: translateX(34px);
}

.hero {
  min-height: 470px;
  display: grid;
  place-items: center;
  padding: 82px 24px 60px;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.68), rgba(255,255,255,.94)),
    url("assets/hero-office.jpg") center / cover no-repeat;
}

html[data-theme="night"] .hero {
  background:
    linear-gradient(90deg, rgba(10,18,32,.96), rgba(10,18,32,.78), rgba(10,18,32,.96)),
    url("assets/hero-office.jpg") center / cover no-repeat;
}

.hero-inner {
  width: min(980px, 100%);
}

.hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero p {
  width: min(880px, 100%);
  margin: 28px auto 0;
  color: #050505;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
}

html[data-theme="night"] .hero p,
html[data-theme="night"] .page-hero p {
  color: var(--ink);
}

.service-grid {
  width: min(1120px, calc(100% - 40px));
  margin: -34px auto 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 210px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card:nth-child(3n) {
  border-right: 0;
}

.service-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.service-card img {
  width: 86px;
  height: 66px;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 8px;
  filter: saturate(.9);
}

.service-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.service-card span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.service-card:hover {
  color: var(--deep);
  background: var(--soft);
}

.section-heading {
  width: min(840px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading span,
.nis span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2,
.nis h2 {
  margin: 8px 0 0;
  color: var(--deep);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.process,
.clients,
.testimonials,
.faq,
.blog {
  padding: 72px clamp(20px, 5vw, 70px);
}

.process {
  background: var(--soft);
}

.steps,
.quotes {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps article,
.quotes blockquote,
.blog article {
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
}

.steps b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
}

.steps h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.steps p,
.feature p,
.blog p,
footer p {
  color: var(--muted);
}

.nis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px clamp(24px, 7vw, 90px);
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), #1d78b9);
}

.nis h2,
.nis span {
  color: var(--white);
}

.button,
.feature a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.feature {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.feature.reverse img {
  order: 2;
}

.feature img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature h2 {
  margin: 0 0 14px;
  color: var(--deep);
  font-size: clamp(28px, 3vw, 42px);
}

.feature p {
  margin-bottom: 22px;
  font-size: 17px;
}

.logo-wall {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
}

.logo-wall img,
.logo-wall span {
  width: 100%;
  height: 118px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
}

.logo-wall img {
  object-fit: contain;
  filter: none;
  box-shadow: 0 10px 26px rgba(3, 40, 128, .06);
}

html[data-theme="night"] .logo-wall img,
html[data-theme="night"] .logo-wall span {
  border-color: rgba(95,181,255,.18);
  background: #121d2f;
  opacity: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

html[data-theme="night"] .logo-wall img:hover {
  background: #17243a;
}

.logo-wall span {
  display: grid;
  place-items: center;
  color: #7a8797;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.logo-wall span:empty::before {
  content: "";
  width: 58%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7edf5, #f7faff, #e7edf5);
}

.testimonials {
  background: var(--soft);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.faq {
  background: var(--white);
}

.faq-list {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-list article {
  position: relative;
  padding: 24px 26px 24px 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 12px 30px rgba(3, 40, 128, .06);
}

.faq-list article::before {
  content: "?";
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.faq-list h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 19px;
  line-height: 1.3;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
}

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

.quotes blockquote {
  min-height: 190px;
  color: var(--ink);
  font-size: 17px;
}

.quotes blockquote:empty::before,
.quotes blockquote:has(cite:empty)::before {
  content: "";
  display: block;
  width: 100%;
  height: 76px;
  border-radius: 8px;
  background:
    linear-gradient(#eef4fb 0 0) 0 0 / 86% 14px no-repeat,
    linear-gradient(#eef4fb 0 0) 0 31px / 100% 14px no-repeat,
    linear-gradient(#eef4fb 0 0) 0 62px / 64% 14px no-repeat;
}

html[data-theme="night"] .logo-wall span:empty::before {
  background: linear-gradient(90deg, #263850, #33465f, #263850);
}

html[data-theme="night"] .quotes blockquote:empty::before,
html[data-theme="night"] .quotes blockquote:has(cite:empty)::before {
  background:
    linear-gradient(#263850 0 0) 0 0 / 86% 14px no-repeat,
    linear-gradient(#263850 0 0) 0 31px / 100% 14px no-repeat,
    linear-gradient(#263850 0 0) 0 62px / 64% 14px no-repeat;
}

.quotes cite {
  display: block;
  margin-top: 22px;
  color: var(--deep);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.blog article {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
}

.blog article img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
}

.blog time {
  color: var(--blue);
  font-weight: 800;
}

.blog h3 {
  margin: 6px 0 8px;
  color: var(--deep);
  font-size: 26px;
  line-height: 1.2;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 380px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: 54px clamp(20px, 5vw, 70px);
  background: var(--soft);
}

.page-hero span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 10px 0 18px;
  color: var(--blue);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

body[data-page="blog-post"] .page-hero h1 {
  max-width: 820px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.page-hero p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 700;
  line-height: 1.5;
}

.page-hero img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  justify-self: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-content,
.page-services,
.page-gallery {
  padding: 70px clamp(20px, 5vw, 70px);
}

.page-gallery {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 0;
}

.page-gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-gallery img:first-child {
  grid-row: auto;
  min-height: 0;
}

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

.intro {
  width: min(880px, 100%);
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 19px;
  text-align: center;
}

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

.detail-grid article,
.combined-section article,
.post-list article,
.people-grid article,
.info-list,
.page-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
}

.detail-grid article {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.detail-grid article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--deep), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.detail-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(54, 153, 235, .45);
  box-shadow: var(--shadow);
}

.detail-grid article:hover::after {
  transform: scaleX(1);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--blue));
  box-shadow: 0 10px 22px rgba(54, 153, 235, .2);
  font-size: 22px;
  line-height: 1;
}

.detail-grid h2,
.combined-section h2,
.post-list h2 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 22px;
  line-height: 1.2;
}

.detail-grid p,
.combined-section p,
.post-list p {
  margin: 0;
  color: var(--muted);
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .detail-grid article {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.combined-section {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.combined-section article {
  scroll-margin-top: 130px;
  border-left: 6px solid var(--blue);
}

.combined-section h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.page-services {
  background: var(--soft);
}

.mini-grid,
.people-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-grid a {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep);
  background: var(--card-bg);
  font-weight: 800;
  text-align: center;
}

.mini-grid a:hover {
  color: var(--white);
  background: var(--blue);
}

.people-grid article {
  display: grid;
  gap: 8px;
  text-align: center;
}

.people-grid img {
  width: 112px;
  height: 112px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.people-grid b {
  color: var(--deep);
  font-size: 22px;
}

.people-grid span {
  color: var(--muted);
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-list article {
  display: grid;
  gap: 8px;
}

.post-list time,
.post-list a {
  color: var(--blue);
  font-weight: 800;
}

.blog-index {
  width: min(1320px, 100%);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(190px, 240px) 1fr;
  gap: 22px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: 116px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 12px 32px rgba(3, 40, 128, .06);
}

.blog-filters {
  display: grid;
  gap: 14px;
}

.blog-filters label {
  color: var(--deep);
}

.blog-topic-filter {
  display: grid;
  gap: 8px;
}

.blog-topic-filter > span {
  color: var(--deep);
  font-weight: 700;
}

.blog-topic {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--deep);
  background: var(--card-bg);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.blog-topic:hover,
.blog-topic.is-active {
  border-color: rgba(54, 153, 235, .48);
  color: var(--white);
  background: var(--blue);
}

.blog-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--card-bg);
  font: inherit;
  font-weight: 700;
}

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

.blog-list article {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
}

.blog-list article[hidden] {
  display: none !important;
}

.blog-list img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-list h2 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.18;
}

.blog-list p,
.blog-detail p {
  color: var(--muted);
}

.blog-list .button {
  width: fit-content;
  margin-top: 12px;
}

.blog-detail {
  width: min(1120px, 100%);
}

.blog-detail p {
  margin: 0 0 17px;
  font-size: 18px;
  line-height: 1.72;
}

.blog-detail p a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-detail p a:hover {
  color: var(--deep);
}

.service-card.scroll-reveal,
.steps article.scroll-reveal,
.feature.scroll-reveal,
.quotes blockquote.scroll-reveal,
.faq-list article.scroll-reveal,
.page-hero > .scroll-reveal,
.page-gallery img.scroll-reveal,
.detail-grid article.scroll-reveal,
.combined-section article.scroll-reveal,
.post-list article.scroll-reveal,
.people-grid article.scroll-reveal,
.mini-grid article.scroll-reveal,
.blog-sidebar.scroll-reveal,
.blog-list article.scroll-reveal,
.blog-detail > .scroll-reveal,
.info-list.scroll-reveal,
.page-form.scroll-reveal,
.footer-brand.scroll-reveal,
.footer-blog-link.scroll-reveal,
.footer-services > .scroll-reveal,
footer .contact-form.scroll-reveal {
  transition:
    opacity .76s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    transform .76s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    filter .76s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
}

@media (min-width: 1180px) {
  .blog-index {
    width: min(1480px, 100%);
  }

  .blog-layout {
    grid-template-columns: 230px 1fr;
    gap: 24px;
  }

  .blog-list article {
    grid-template-columns: 220px 1fr;
  }

  .blog-detail {
    width: min(1160px, 100%);
  }

  .blog-detail p {
    max-width: 1040px;
  }
}

@media (min-width: 1900px) {
  .blog-index {
    width: min(1680px, 100%);
  }

  .blog-layout {
    grid-template-columns: 240px 1fr;
    gap: 28px;
  }

  .blog-list article {
    grid-template-columns: 240px 1fr;
  }

  .blog-detail {
    width: min(1240px, 100%);
  }

  .blog-detail p {
    max-width: 1120px;
  }
}

.blog-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 800;
}

.blog-empty {
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 28px;
}

.contact-layout .intro {
  margin-inline: 0;
  text-align: left;
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-list p {
  margin: 0;
}

.page-form input,
.page-form textarea {
  color: var(--ink);
  border-color: var(--line);
  background: var(--soft);
}

footer {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr) minmax(300px, 1fr);
  gap: 36px;
  padding: 58px clamp(20px, 5vw, 70px) 32px;
  color: var(--white);
  background: var(--footer-bg);
}

.footer-brand {
  width: fit-content;
  max-width: 360px;
  padding: 12px;
  border-radius: 8px;
  color: var(--deep);
  background: var(--card-bg);
}

footer p {
  max-width: 540px;
  color: rgba(255,255,255,.72);
}

.footer-blog-link {
  display: inline-grid;
  grid-template-columns: 86px auto;
  gap: 14px;
  align-items: center;
  max-width: 310px;
  margin-top: 14px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 17px;
  font-weight: 800;
}

.footer-blog-link img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}

.footer-blog-link:hover {
  border-color: rgba(255,255,255,.52);
  background: rgba(255,255,255,.14);
}

html[data-theme="night"] .footer-blog-link {
  border-color: rgba(95,181,255,.5);
  background: rgba(95,181,255,.14);
}

.footer-services {
  display: grid;
  align-content: start;
  justify-self: center;
  justify-items: start;
  gap: 9px;
  width: fit-content;
  text-align: left;
}

footer .contact-form {
  width: min(100%, 430px);
  justify-self: end;
}

.footer-services h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.25;
}

.footer-services a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: rgba(255,255,255,.74);
  font-size: 15px;
  font-weight: 700;
}

.footer-services a::before {
  content: ">";
  display: inline-block;
  width: auto;
  height: auto;
  border-radius: 0;
  color: var(--white);
  background: transparent;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.footer-services a:hover {
  color: var(--white);
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(255,255,255,.08);
  font: inherit;
}

footer .contact-form input,
footer .contact-form textarea {
  color: #fff;
  background: rgba(255,255,255,.09);
  caret-color: #fff;
}

footer .contact-form input::placeholder,
footer .contact-form textarea::placeholder {
  color: rgba(255,255,255,.66);
}

html[data-theme="night"] footer .contact-form input,
html[data-theme="night"] footer .contact-form textarea {
  border-color: rgba(95,181,255,.32);
  color: #f7fbff;
  background: rgba(255,255,255,.11);
}

html[data-theme="night"] footer .contact-form input::placeholder,
html[data-theme="night"] footer .contact-form textarea::placeholder {
  color: rgba(247,251,255,.62);
}

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

footer small {
  grid-column: 1 / -1;
  color: rgba(255,255,255,.58);
}

.footer-copy {
  display: block;
  text-align: center;
}

.footer-service-divider {
  width: 100%;
  height: 1px;
  margin: 6px 0 2px;
  background: rgba(255,255,255,.16);
}

.footer-services .footer-policy-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.09);
  font-size: 13px;
  font-weight: 800;
}

.footer-services .footer-policy-link::before {
  content: "";
  display: none;
}

.footer-services .footer-policy-link:hover {
  border-color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.18);
}

html[data-theme="night"] .footer-services .footer-policy-link {
  border-color: rgba(95,181,255,.78);
  color: #fff;
  background: rgba(95,181,255,.18);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

html[data-theme="night"] .footer-services .footer-policy-link:hover {
  border-color: rgba(255,255,255,.9);
  background: rgba(95,181,255,.28);
}

.policy-content {
  width: min(980px, 100%);
}

.policy-list {
  display: grid;
  gap: 18px;
}

.policy-list article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
}

.policy-list h2 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 24px;
  line-height: 1.25;
}

.policy-list p,
.policy-list li {
  color: var(--muted);
}

.policy-list p {
  margin: 0 0 10px;
}

.policy-list p:last-child {
  margin-bottom: 0;
}

.policy-list ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.form-status {
  min-height: 22px;
  margin: 2px 0 0;
  color: rgba(255,255,255,.76);
  font-weight: 700;
}

.page-form .form-status {
  color: var(--muted);
}

.form-status.is-success {
  color: #58d68d;
}

.form-status.is-error {
  color: #ff8b8b;
}

.page-form .form-status.is-success {
  color: #138a46;
}

.page-form .form-status.is-error {
  color: #b42318;
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

.floating-contact {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 45;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.floating-contact-link {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  width: 58px;
  min-height: 132px;
  padding: 12px 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--blue));
  box-shadow: 0 14px 28px rgba(3, 40, 128, .22);
  font-size: 13px;
  font-weight: 900;
  transform: translateX(0);
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-contact-link span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--deep);
  background: #fff;
  font-size: 16px;
  line-height: 1;
}

.floating-contact-link strong {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: center;
  line-height: 1;
  white-space: nowrap;
}

.floating-contact-link:hover,
.floating-contact-link:focus-visible {
  transform: translateX(-6px);
  box-shadow: 0 18px 34px rgba(3, 40, 128, .28);
}

.floating-contact-viber {
  background: linear-gradient(135deg, #665cac, #7c6fe6);
}

html[data-theme="night"] .floating-contact-link {
  border-color: rgba(95,181,255,.34);
  box-shadow: 0 16px 34px rgba(0,0,0,.36);
}

.quick-offer,
.scroll-top {
  position: fixed;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(54, 153, 235, .35);
  font-size: 26px;
  cursor: pointer;
}

.quick-offer {
  left: 22px;
}

.scroll-top {
  right: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    justify-content: flex-start;
    padding-top: 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    padding: 6px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: none;
  }

  .service-grid,
  .steps,
  .quotes,
  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .service-card:nth-child(2n) {
    border-right: 0;
  }

  .service-card:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .service-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .feature,
  .blog article,
  .page-hero,
  .page-gallery,
  .detail-grid,
  .blog-layout,
  .blog-list article,
  .contact-layout,
  footer {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .floating-contact {
    top: auto;
    right: 14px;
    bottom: 92px;
    transform: none;
  }

  .floating-contact-link {
    grid-template-columns: 34px;
    min-width: 48px;
    width: 48px;
    min-height: 48px;
    padding: 7px;
    border-right: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    transform: none;
  }

  .floating-contact-link strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    transform: none;
    writing-mode: horizontal-tb;
    white-space: nowrap;
  }

  .footer-services,
  footer .contact-form {
    justify-self: start;
  }

  .feature.reverse img {
    order: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 76px;
  }

  .brand-mark {
    max-width: 270px;
    font-size: 14px;
  }

  .brand-icon {
    width: 52px;
    height: 44px;
  }

  .brand-icon i {
    font-size: 11px;
  }

  .brand-icon b {
    font-size: 18px;
  }

  .brand-mark small {
    font-size: 10px;
  }

  .hero {
    min-height: 390px;
    padding-top: 54px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .service-grid,
  .steps,
  .quotes,
  .logo-wall,
  .mini-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(2n),
  .service-card:nth-child(3n),
  .service-card:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

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

  .process,
  .clients,
  .testimonials,
  .faq,
  .blog,
  .page-content,
  .page-services {
    padding-block: 54px;
  }

  .page-hero {
    padding-block: 46px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .page-gallery img,
  .page-gallery img:first-child {
    min-height: 220px;
    grid-row: auto;
  }

  .page-gallery {
    grid-template-rows: none;
  }
}
