:root {
  color-scheme: light;
  --navy: #081224;
  --navy-2: #0f1f3c;
  --navy-3: #132b56;
  --blue: #2b66d9;
  --blue-2: #4b87ff;
  --gold: #d9b15b;
  --gold-2: #f0cd82;
  --soft: #f6f8fc;
  --line: #dce5f3;
  --text: #12203a;
  --muted: #5f7395;
  --white: #fff;
  --shadow: 0 20px 60px rgba(9, 22, 44, 0.12);
  --shadow-deep: 0 28px 80px rgba(4, 12, 25, 0.35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 18, 36, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  min-width: 0;
}
.brand-copy strong {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.brand-copy span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  white-space: nowrap;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}
.nav a.active,
.nav a:hover {
  color: #fff;
}
.nav a.active::after,
.nav a:hover::after {
  transform: scaleX(1);
}
.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  border-radius: 999px;
  transition: 0.25s;
}
.hero {
  padding: 90px 0 80px;
  background: radial-gradient(
      circle at 88% 12%,
      rgba(75, 135, 255, 0.34),
      transparent 24%
    ),
    radial-gradient(
      circle at 14% 18%,
      rgba(217, 177, 91, 0.18),
      transparent 20%
    ),
    linear-gradient(180deg, #07111f 0%, #0e1d37 48%, #102248 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -140px -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 177, 91, 0.18),
    transparent 68%
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: stretch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}
.hero h1,
.page-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero p,
.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.22s ease;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(43, 102, 217, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(43, 102, 217, 0.36);
}
.btn.ghost {
  background: linear-gradient(135deg, #2b66d9, #4b87ff);
  border: none;
  color: #fff;

  box-shadow: 0 10px 26px rgba(43, 102, 217, 0.4);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(43, 102, 217, 0.36);
}
.btn.gold {
  background: linear-gradient(135deg, #dfb75d, #cd9316);
  color: #fff;
  box-shadow: 0 8px 16px rgba(221, 178, 85, 0.52);
}

.btn.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(221, 178, 85, 0.52);
}
.hero-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.glass-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-deep);
}
.hero-card {
  padding: 26px;
}
.hero-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-card li + li {
  margin-top: 9px;
}
.hero-floating {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34.2333px;
}
.hero-pill {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-pill strong {
  display: block;
  color: #fff;
  font-size: 19px;
  margin-bottom: 6px;
}
.hero-pill span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}
.section {
  padding: 84px 0;
}
.section.soft {
  background: var(--soft);
}
.section.dark {
  background: linear-gradient(180deg, #0a162a, #102246);
  color: #fff;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.section.dark .section-label {
  color: var(--gold-2);
}
.section-title {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}
.section-title.serif,
.serif {
  font-family: var(--serif);
  font-weight: 700;
}
.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 870px;
}
.section.dark .section-lead {
  color: rgba(255, 255, 255, 0.78);
}
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 2px 4px 0px rgba(9, 22, 44, 0.12);
}
.card.padded {
  padding: 26px;
}
.muted {
  color: var(--muted);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(43, 102, 217, 0.2);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 2px 4px 0px rgba(9, 22, 44, 0.12);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.stat-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.logos-shell {
  position: relative;
  margin-top: 28px;
}

.logos-strip {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 0;
  margin-top: 28px;
  box-shadow: var(--shadow);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* скрываем скроллбар */
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.logos-strip::-webkit-scrollbar {
  display: none;
}

.logos-strip.dragging {
  cursor: grabbing;
}

.logos-strip.dragging .logos-track,
.logos-strip.dragging .logo-pill,
.logos-strip.dragging img {
  pointer-events: none;
}

.logos-shell::before,
.logos-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 3;
  pointer-events: none;
}

.logos-shell::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
}

.logos-shell::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
}

.logos-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 80s linear infinite;
}

.logo-pill {
  flex: 0 0 auto;
  width: 180px;
  height: 86px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.logo-pill img {
  max-height: 52px;
  max-width: 100%;
  object-fit: contain;
}

/* лёгкий hover (на десктопе) */
.logo-pill:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: no-preference) {
  .logos-track {
    animation: marquee 80s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
  }
}

/* анимация */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.service-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 10px;
}
.service-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.service-card li + li {
  margin-top: 8px;
}
.feature-band {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #0f2347, #173768);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}
.band-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}
.notice-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #5f7395;
}
.notice-list-1 {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #ffffff;
}
.page-hero {
  padding: 72px 0 44px;
  background: linear-gradient(180deg, #0a162a, #11254d);
  color: #fff;
}
.page-hero .section-lead {
  color: rgba(255, 255, 255, 0.8);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.project-card {
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(75, 135, 255, 0.14),
    transparent 68%
  );
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.project-top h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}
.project-preview {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.project-preview li + li {
  margin-top: 8px;
}
.project-actions {
  margin-top: 18px;
}
.project-actions .btn {
  width: 100%;
}
.review-hero-card {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}
.review-highlight {
  padding: 18px;
}
.review-highlight .review-thumb {
  aspect-ratio: 1.22;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(9, 22, 44, 0.16);
}
.review-thumb {
  width: 100%;
  aspect-ratio: 0.77;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.review-meta strong {
  font-size: 15px;
  line-height: 1.2;
}
.review-open {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  margin-top: 28px;
}
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.contact-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.contact-list li + li {
  margin-top: 10px;
}
.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .contact-link > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.contact-link strong {
  font-size: 14px;
}
.contact-link span {
  color: var(--muted);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}
.lightbox.open {
  display: block;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 20, 0.72);
  backdrop-filter: blur(8px);
}
.lightbox-dialog {
  position: relative;
  width: min(1120px, calc(100vw - 28px));
  max-height: min(88vh, 1000px);
  overflow: auto;
  margin: 6vh auto;
  background: #fff;
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}
.lightbox-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #081224;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.lightbox-head {
  padding-right: 58px;
  margin-bottom: 18px;
}
.lightbox-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 6px;
}
.lightbox-head strong {
  display: block;
  font-size: 28px;
  line-height: 1.05;
}
.lightbox-body img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.modal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}
.modal-list li {
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 1060px) {
  .hero-grid,
  .grid-3,
  .service-grid,
  .stat-grid,
  .projects-grid,
  .review-grid,
  .contact-grid,
  .review-hero-card,
  .band-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav.open {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    background: #0d1a33;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-deep);
  }
}
@media (max-width: 720px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }
  .grid-3,
  .service-grid,
  .stat-grid,
  .projects-grid,
  .review-grid,
  .contact-grid,
  .review-hero-card,
  .band-grid,
  .hero-floating {
    grid-template-columns: 1fr;
  }
  .brand-copy span {
    display: none;
  }
  .hero,
  .page-hero {
    padding-top: 70px;
  }
  .hero p,
  .page-hero p,
  .section-lead {
    font-size: 16px;
  }
  .logo-pill {
    width: 150px;
    height: 74px;
  }
  .lightbox-dialog {
    padding: 18px;
  }
  .lightbox-head strong {
    font-size: 24px;
  }
}
.project-card {
  color: #12203a; /* основной темный текст */
}

.project-card h3 {
  color: #234a95; /* заголовки карточек */
}

.project-card .project-preview {
  color: #5f7395; /* текст списка */
}

/* Отзывы - полный документ открывается в новой вкладке */
.review-open {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.review-card .muted {
  color: var(--blue);
  font-weight: 600;
}
.review-card:hover .muted {
  color: var(--blue-2);
}

/* ── CONTACTS ── */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.contact-info-block strong {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.contact-info-block span {
  font-size: 14px;
  color: var(--text);
}

/* ── FOOTER phone ── */

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-preview {
  flex-grow: 1;
}
.messenger-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* ОБЩЕЕ */
.messenger-buttons a {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;

  padding: 14px 18px;
  border-radius: 12px;

  font-weight: 600;
  font-size: 15px;

  text-decoration: none;
  color: #fff;

  transition: all 0.25s ease;
}

/* WHATSAPP */
.wa-btn {
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

/* TELEGRAM */
.tg-btn {
  background: linear-gradient(135deg, #229ed9, #1b8cc5);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.35);
}

.tg-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(34, 158, 217, 0.45);
}

/* ИКОНКИ */
.icon {
  font-size: 16px;
}

/* НАЖАТИЕ */
.messenger-buttons a:active {
  transform: scale(0.97);
}

.icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex-shrink: 0;
}

/* выравнивание карточек на главной */
/* две карточки в нижнем блоке */
.section .grid.grid-2 {
  align-items: stretch;
}

.section .grid.grid-2 > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* кнопочный блок уходит вниз */
.section .grid.grid-2 > .card .hero-actions {
  margin-top: auto !important;
  padding-top: 24px;
}

@media (min-width: 721px) {
  .projects-grid {
    grid-auto-flow: row;
    align-items: stretch;
  }

  /* IT-сектор и инновации - тянем вниз на 2 ряда */
  .projects-grid > .project-card:nth-child(5) {
    grid-row: span 2;
  }

  /* Строительство - ставим вправо */
  .projects-grid > .project-card:nth-child(7) {
    grid-column: 2;
  }
}

/* ══════════════════════════════════════════════
   FOOTER — redesigned
══════════════════════════════════════════════ */
.site-footer {
  background: #060e1c;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      ellipse 80% 60% at 80% 100%,
      rgba(43, 102, 217, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 10% 0%,
      rgba(217, 177, 91, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Top accent line */
.footer-topline {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(43, 102, 217, 0.5) 20%,
    rgba(217, 177, 91, 0.6) 50%,
    rgba(43, 102, 217, 0.5) 80%,
    transparent 100%
  );
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

/* MAIN GRID */
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr 1.2fr;
  gap: 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* BRAND COL */
.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  transition: opacity 0.2s;
}
.footer-brand-link:hover {
  opacity: 0.85;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.footer-brand-text strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-brand-text span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-badge {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.03);
}

/* NAV COLS */
.footer-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.18s, padding-left 0.18s;
  position: relative;
  padding-left: 0;
}
.footer-nav a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.18s;
}
.footer-nav a:hover {
  color: #fff;
  padding-left: 8px;
}
.footer-nav a:hover::before {
  opacity: 1;
}

/* CONTACTS COL */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 20px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.18s;
}
a.footer-contact-item:hover {
  color: #fff;
}
.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
}
.footer-contact-addr {
  cursor: default;
}

/* Messenger buttons */
.footer-messengers {
  display: flex;
  gap: 8px;
}
.footer-messenger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.footer-messenger svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.footer-wa {
  color: #25d366;
  background: rgba(37, 211, 102, 0.06);
  border-color: rgba(37, 211, 102, 0.18);
}
.footer-wa:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25d366;
  transform: translateY(-1px);
}
.footer-tg {
  color: #29a8eb;
  background: rgba(41, 168, 235, 0.06);
  border-color: rgba(41, 168, 235, 0.18);
}
.footer-tg:hover {
  background: rgba(41, 168, 235, 0.14);
  border-color: rgba(41, 168, 235, 0.35);
  color: #29a8eb;
  transform: translateY(-1px);
}

/* BOTTOM BAR */
.footer-bottom {
  padding: 18px 0;
  position: relative;
  z-index: 1;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom-inner > span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
}
.footer-bottom-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-std {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 1060px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 36px;
  }
  .footer-brand-col {
    grid-column: auto;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-messengers {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .section {
    padding: 50px 0;
  }

  .container {
    padding: 0 14px;
  }
}
@media (max-width: 768px) {
  .grid,
  .grid-2,
  .grid-3,
  .projects-grid,
  .service-grid,
  .review-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  .project-card {
    padding: 18px;
  }

  .project-top h3 {
    font-size: 18px;
  }

  .project-preview {
    font-size: 14px;
  }

  .project-actions .btn {
    font-size: 14px;
    padding: 12px;
  }
}
@media (max-width: 768px) {
  .review-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .review-thumb {
    aspect-ratio: 0.7;
  }

  .review-meta strong {
    font-size: 13px;
  }
}
@media (max-width: 768px) {
  .messenger-buttons {
    flex-direction: column;
  }

  .messenger-buttons a {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .header-inner {
    min-height: 70px;
  }

  .brand-copy span {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  p {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== sliders only on home page ===== */
@media (max-width: 768px) {
  .home-page .stat-grid,
  .home-page .service-grid,
  .home-page .projects-grid {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    margin-top: 20px;
    scrollbar-width: none;
  }

  .home-page .stat-grid::-webkit-scrollbar,
  .home-page .service-grid::-webkit-scrollbar,
  .home-page .projects-grid::-webkit-scrollbar {
    display: none;
  }

  .home-page .stat-grid .stat-card,
  .home-page .service-grid .service-card,
  .home-page .projects-grid .project-card {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin: 0;
  }

  .home-page .stat-dots,
  .home-page .service-dots,
  .home-page .project-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }

  .home-page .stat-dots span,
  .home-page .service-dots span,
  .home-page .project-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    transition: all 0.25s ease;
  }

  .home-page .stat-dots span,
  .home-page .service-dots span {
    background: rgba(18, 32, 58, 0.18);
  }

  .home-page .project-dots span {
    background: rgb(255 255 255 / 26%);
  }

  .home-page .stat-dots span.active,
  .home-page .service-dots span.active,
  .home-page .project-dots span.active {
    width: 22px;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
  }
}

@media (min-width: 769px) {
  .home-page .stat-dots,
  .home-page .service-dots,
  .home-page .project-dots {
    display: none;
  }
}

/* ===== dots hidden on desktop ===== */
@media (min-width: 769px) {
  .service-dots,
  .project-dots {
    display: none;
  }
}

/* ===== FOOTER MOBILE FIX v2 ===== */
@media (max-width: 768px) {
  .site-footer {
    margin-top: 0;
  }

  .footer-topline {
    opacity: 0.7;
  }

  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 24px 0 20px !important;
  }

  /* оставляем бренд + контакты, остальное скрываем */
  .footer-nav-col {
    display: none !important;
  }

  .footer-brand-col,
  .footer-contact-col {
    width: 100%;
  }

  .footer-brand-link {
    margin-bottom: 10px !important;
  }

  .footer-logo {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  .footer-brand-text strong {
    font-size: 14px !important;
  }

  .footer-brand-text span {
    display: none !important;
  }

  .footer-tagline {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin: 0 0 10px !important;
  }

  .footer-badges {
    display: none !important;
  }

  .footer-col-label {
    margin-bottom: 10px !important;
    font-size: 10px !important;
  }

  .footer-contacts {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .footer-contact-item {
    font-size: 12px !important;
    gap: 8px !important;
  }

  .footer-icon {
    width: 14px !important;
    height: 14px !important;
  }

  .footer-messengers {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }

  .footer-messenger {
    justify-content: center !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  .footer-bottom {
    padding: 12px 0 !important;
  }

  .footer-bottom-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
  }

  .footer-bottom-inner > span {
    font-size: 11px !important;
  }

  .footer-bottom-badges {
    display: none !important;
  }
}

/* ===== MOBILE NAV UPGRADE ===== */
@media (max-width: 768px) {
  .site-header {
    background: rgba(8, 18, 36, 0.9);
    backdrop-filter: blur(16px);
  }

  .header-inner {
    min-height: 64px !important;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo-wrap {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 15px;
    line-height: 1;
  }

  .brand-copy span {
    display: none !important;
  }

  .mobile-toggle {
    display: inline-grid;
    align-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease,
      border-color 0.2s ease;
    justify-content: center;
    align-content: center;
  }

  .mobile-toggle:hover,
  .mobile-toggle:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    transform: scale(0.98);
  }

  .mobile-toggle span {
    width: 18px;
    height: 2px;
    margin: 2.5px 0;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  /* Анимация в крестик */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    z-index: 100;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    background: rgba(10, 22, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(4, 12, 25, 0.38);
    backdrop-filter: blur(18px);
  }

  .nav.open a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .nav.open a::after {
    display: none;
  }

  .nav.open a:hover,
  .nav.open a:active,
  .nav.open a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
  }
}

.close-icon {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.lightbox-close {
  position: absolute;
  right: 18px;
  top: 18px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);

  background: rgba(8, 18, 36, 0.8);
  backdrop-filter: blur(10px);

  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(8, 18, 36, 0.8);
  transform: scale(1.05);
}

.lightbox-close:active {
  transform: scale(0.95);
}

.lightbox-close:hover .close-icon {
  transform: rotate(90deg);
}

.close-icon {
  transition: transform 0.25s ease;
}

/* ===== Premium scrollbar ===== */
html {
  scrollbar-width: thin;
  scrollbar-color: #4b87ff #0f1f3c;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 18, 36, 0.08);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2b66d9, #4b87ff);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1f56c9, #3f7dff);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

@media (max-width: 768px) {
  .project-preview-it li:nth-child(n + 5) {
    display: none;
  }
}

.hero-trust {
  margin-top: 34.2333px;
  padding: 14px 16px;

  border-radius: 16px;
  border: 3px solid rgb(231 190 91);

  background: linear-gradient(
    135deg,
    rgba(217, 177, 91, 0.12),
    rgba(217, 177, 91, 0.04)
  );

  box-shadow: 0 10px 24px rgba(217, 177, 91, 0.15);
}

.hero-trust strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
  background: linear-gradient(
    160deg,
    #b8862a 0%,
    #f5d06a 30%,
    #fff2b0 50%,
    #f0c040 70%,
    #c8921e 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 7px rgba(240, 185, 60, 0.4));
}

/* Основной текст по всему сайту */
p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  line-height: 1.6;
}

/* Ограничение ширины для читабельности */
.hero p,
.section-lead,
.card p,
.contact-card p,
.section p {
  
}
@media (max-width: 768px) {
  .projects-grid .card {
    height: 580px;
    display: flex;
    flex-direction: column;
  }
}
/* ── Service card 7 — wide (full row) ── */
/* Широкая карточка, но в том же стиле */
.service-card-wide {
  grid-column: 1 / -1;
max-width: 780px;    /* потом ограничиваем ширину */
  margin: 0 auto;      /* центрируем */
  display: flex;
  flex-direction: column;
  align-items: center; /* центрирует блоки */
  
}

/* Список в 2 колонки */
.service-wide-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);

  columns: 2;
  column-gap: 24px;
}

.service-wide-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

/* На мобилке обратно в 1 колонку */
@media (max-width: 768px) {
  .service-card-wide {
    align-items: flex-start;
    text-align: left;
  }

  .service-wide-list {
    columns: 1;
    text-align: left;
  }
}
/* Заголовок внутри карточки */
.service-subtitle {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* Расширенный список */
.service-wide-list-full {
  columns: 1; /* важно - тут уже не 2 колонки */
}

/* Отступы внутри пунктов */
.service-wide-list-full li {
  margin-bottom: 12px;
  line-height: 1.5;
}
