:root {
  --bg: #f5f7fb;
  --text: #1e2732;
  --muted: #6a7584;
  --blue-900: #2c3d7f;
  --blue-700: #3f5aa6;
  --blue-500: #5b7ed9;
  --gold: #f7c14a;
  --accent: #ff6a2a;
  --dark: #15181d;
  --card: #ffffff;
  --shadow: 0 20px 60px rgba(24, 40, 72, 0.12);
  --bg-y: 0px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: transparent;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("assets/bg-site-opt.png");
  background-size: cover;
  background-position: center calc(50% + var(--bg-y));
  background-repeat: no-repeat;
  filter: saturate(0.9) contrast(1.05) brightness(0.78) blur(2px);
  z-index: -2;
  will-change: background-position;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(10, 18, 40, 0.45) 0%, rgba(10, 18, 40, 0.25) 50%, rgba(10, 18, 40, 0.45) 100%);
  z-index: -1;
  pointer-events: none;
}

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

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

main a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 106, 42, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

main a:not(.btn):hover {
  color: var(--blue-700);
  text-decoration-color: rgba(255, 106, 42, 0.8);
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 61, 127, 0.08);
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__mark {
  width: clamp(44px, 4.5vw, 56px);
  height: clamp(44px, 4.5vw, 56px);
  border-radius: clamp(10px, 1.2vw, 14px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand__text span {
  display: block;
  font-weight: 700;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 700;
  color: var(--blue-900);
}

.nav a {
  position: relative;
  padding-bottom: 0.3rem;
}

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

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

.cta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px rgba(255, 106, 42, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(255, 106, 42, 0.45);
  filter: saturate(1.1);
}

.btn--ghost {
  background: transparent;
  color: var(--blue-900);
  border: 1px solid rgba(44, 61, 127, 0.35);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(44, 61, 127, 0.08);
  border-color: rgba(44, 61, 127, 0.6);
}

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

.nav a:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(255, 106, 42, 0.35);
  outline-offset: 3px;
}

.hero {
  position: relative;
  padding: 4rem 0 2rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 106, 42, 0.14), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(63, 90, 166, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(238, 242, 251, 0.82) 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 2rem;
  color: var(--blue-900);
}

.hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2rem;
}

.advantages article h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--blue-900);
}

.advantages article p {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__image {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__image img {
  animation: float 6s ease-in-out infinite;
}

.glow {
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(91, 126, 217, 0.35), transparent 70%);
  top: -80px;
  right: -60px;
}

.hero__badge {
  position: absolute;
  bottom: 1.6rem;
  left: 1.6rem;
  background: var(--gold);
  color: #1d1b12;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cards {
  padding: 2rem 0 4rem;
}

.cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  padding: 2rem;
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--shadow);
  min-height: 180px;
}

.card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card--dark {
  background: var(--blue-900);
}

.card--mid {
  background: var(--blue-700);
}

.card--accent {
  background: var(--gold);
  color: #1d1b12;
}

.section-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 800;
  color: var(--blue-900);
}

.services {
  position: relative;
  padding: 2rem 0 4rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(247, 193, 74, 0.22), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(44, 61, 127, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 248, 236, 0.82) 0%, rgba(246, 247, 251, 0.82) 100%);
  overflow: hidden;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: var(--card);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 61, 127, 0.08);
}

.service-card h4 {
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

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

.about {
  position: relative;
  padding: 2rem 0 4rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(44, 61, 127, 0.16), transparent 45%),
    radial-gradient(circle at 8% 70%, rgba(91, 126, 217, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(243, 246, 255, 0.82) 0%, rgba(255, 255, 255, 0.82) 100%);
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.about__list {
  list-style: none;
  display: grid;
  gap: 1rem;
  color: var(--muted);
}

.about__list li {
  padding-left: 1.6rem;
  position: relative;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent);
}

.about__steps {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.about__steps h3 {
  margin-bottom: 1rem;
  color: var(--blue-900);
}

.about__steps ol {
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.brands {
  padding: 4rem 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 106, 42, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(245, 247, 251, 0.82) 100%);
}

.brands h2 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

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

.brands__grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.brands__grid div {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(44, 61, 127, 0.1);
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  color: #8a93a3;
  background: #f6f8ff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.brands__grid div:hover {
  color: var(--blue-900);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(44, 61, 127, 0.12);
}

.brands__grid img {
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.brands__grid img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
}

.request {
  padding: 4rem 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(120deg, rgba(31, 47, 107, 0.7) 0%, rgba(54, 79, 153, 0.7) 50%, rgba(255, 106, 42, 0.7) 100%);
  color: #fff;
}

.request__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.request__form {
  display: grid;
  gap: 0.8rem;
  background: rgba(8, 12, 30, 0.25);
  padding: 1.5rem;
  border-radius: 18px;
}

.request__form input {
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.request__form textarea {
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.request__form small {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.footer {
  background: var(--dark);
  color: #d6d8dd;
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer h4 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer__bottom {
  margin-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta {
    flex-wrap: wrap;
  }

  .hero__grid,
  .request__inner {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

@media (max-width: 640px) {
  .brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .brand__text span {
    font-size: 1rem;
  }

  .brand__text small {
    font-size: 0.75rem;
  }

  .nav {
    font-size: 0.95rem;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
    line-height: 1.12;
  }

  .section-head h2,
  .brands h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.2;
  }

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

  .hero {
    padding-top: 2rem;
  }

  .btn {
    width: 100%;
  }
}


/* Contacts section */
.contacts {
  padding: 90px 0;
  background: #1a1f27;
}
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}
.contacts__info h2 {
  margin-bottom: 12px;
}
.contacts__list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.contacts__list h4 {
  margin: 0 0 6px;
}
.contacts__list a {
  color: inherit;
  text-decoration: none;
}
.map-embed {
  position: relative;
  padding-bottom: 70%;
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .contacts__grid {
    grid-template-columns: 1fr;
  }
  .map-embed { padding-bottom: 75%; }
}

.contacts, .contacts p, .contacts h2, .contacts h4 { color: #e7eaf0; }
.contacts .muted { color: #c2c8d3; }


.brand-logo img {
  max-height: 26px;
  width: auto;
  display: inline-block;
}


/* Normalize brand logos size */
.brands__grid .brand-logo {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brands__grid .brand-logo img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}


.brand-logo img.logo--large {
  height: 40px;
}


.brand-logo img.logo--xl { height: 64px !important; }




.brands__grid .brand-logo--xl {
  height: 54px; /* как у остальных */
}
.brands__grid .brand-logo--xl img {
  transform: scale(1.6);
  transform-origin: center;
}


.brand-text {
  font-weight: 700;
  font-size: 20px;
  color: #7a7f8a;
}


.brands__grid .brand-logo:hover .brand-text {
  color: #4b4f57;
}
