:root {
  --ink: #11131a;
  --muted: #596070;
  --line: #e8ebf3;
  --soft: #f5f7ff;
  --brand: #6b4cf6;
  --blue: #075fcb;
  --shadow: 0 16px 34px rgba(23, 31, 56, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.glavniy-site {
  margin: 0;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.navbar { min-height: 58px; padding: 0; }
.brand-logo {
  width: 145px;
  max-height: 44px;
  height: auto;
  object-fit: contain;
}
.navbar-nav .nav-link {
  position: relative;
  padding: 23px 11px 19px;
  color: #161822;
  font-size: 13px;
  font-weight: 700;
}
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 3px;
  background: var(--brand);
}
.dropdown-menu {
  border: 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 8px 0;
}
.dropdown-item { font-size: 13px; font-weight: 600; padding: 9px 18px; }

.hero-section,
.feature-product,
.contact-section,
.legal-hero {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}
.hero-section::after,
.feature-product::after,
.contact-section::after,
.legal-hero::after {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -75px;
  height: 150px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 65% 65% 0 0;
}
.hero-section { padding: 70px 0 96px; min-height: 560px; }
.hero-copy { padding-top: 40px; }
.hero-title {
  max-width: 440px;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 24px;
  font-weight: 800;
}
.hero-text { max-width: 500px; color: #252936; font-size: 16px; line-height: 1.65; font-weight: 600; margin-bottom: 26px; }
.btn-primary-glavniy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 3px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 9px 18px rgba(7, 95, 203, .2);
}
.btn-primary-glavniy:hover { color: #fff; background: #054da7; }
.hero-visual { position: relative; min-height: 450px; display: grid; place-items: center; z-index: 1; }
.hero-ring {
  position: absolute;
  width: min(440px, 86vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,177,242,.94) 0 53%, rgba(201,195,251,.78) 54% 68%, rgba(227,224,255,.85) 69% 78%, transparent 79%);
  box-shadow: 0 0 0 0 rgba(107,76,246,.16);
  animation: heroPulse 4.5s ease-in-out infinite, heroFloat 5s linear infinite;
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
  overflow: hidden;
}
.hero-device { position: relative; width: 160px; margin-top: 18px; filter: drop-shadow(0 26px 22px rgba(22,24,35,.2)); animation: deviceFloat 5s linear infinite; transition: transform .35s ease, filter .35s ease; }

.section-pad { padding: 88px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-title h2 { font-size: 38px; line-height: 1.2; margin: 0 0 12px; font-weight: 800; }
.section-title p { color: var(--muted); font-size: 15px; line-height: 1.6; font-weight: 600; margin: 0 auto; max-width: 620px; }

.analysis-card {
  min-height: 225px;
  height: auto;
  padding: 26px 24px 28px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 24px rgba(28, 37, 70, .14);
  overflow: hidden;
  position: relative;
  transform: translateY(0);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.analysis-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background-image: linear-gradient(55deg, #0250c5 0%, #d43f8d 100%);
  transition: height .3s ease;
  z-index: 0;
}
.analysis-card > * { position: relative; z-index: 1; }
.icon-img { width: 54px; height: 54px; object-fit: contain; margin: 0 auto 16px; transition: filter .3s ease, transform .3s ease; }
.analysis-card h3 { font-size: 24px; line-height: 1.25; font-weight: 800; margin: 0 0 12px; transition: color .3s ease; }
.analysis-card p { color: #646a77; font-size: 15px; font-weight: 500; line-height: 1.55; margin: 0; transition: color .3s ease; }

.feature-product { padding: 120px 0 105px; }
.feature-product.gx-block { padding-top: 105px; }
.product-img-small { width: 285px; margin: 0 auto; filter: drop-shadow(0 24px 20px rgba(20, 25, 38, .12)); }
.product-img-gx { width: 410px; margin: 10px auto 0; filter: drop-shadow(0 24px 22px rgba(20, 25, 38, .14)); }
.feature-title { font-size: 40px; line-height: 1.15; font-weight: 800; max-width: 560px; margin: 0 0 62px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 76px; }
.feature-item h3 { font-size: 22px; line-height: 1.25; font-weight: 800; margin: 0 0 13px; }
.feature-item p { color: #252936; font-size: 15px; line-height: 1.65; font-weight: 600; margin: 0; max-width: 300px; }

.contact-section { padding: 100px 0 135px; }
.info-card {
  min-height: 196px;
  padding: 26px 22px;
  text-align: center;
  background: #fff;
  border-radius: 6px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(28, 37, 70, .16);
}
.info-icon {
  width: 64px;
  height: 64px;
  margin: -2px auto 14px;
  border: 1px dashed var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 24px;
}
.info-card p { margin: 0; color: #4f5665; font-size: 15px; line-height: 1.5; font-weight: 700; }
.form-panel,
.map-panel {
  min-height: 430px;
  margin-top: 34px;
  padding: 34px;
  background: #fff;
  border-radius: 7px;
  box-shadow: var(--shadow);
}
.form-control-glavniy {
  width: 100%;
  min-height: 56px;
  margin-bottom: 20px;
  padding: 13px 17px;
  border: 1px solid #e1e4ec;
  color: #1f2430;
  font-size: 15px;
  outline: 0;
}
textarea.form-control-glavniy { min-height: 135px; resize: vertical; }
.map-panel { padding: 0; overflow: hidden; background: #f7f9ff; }
.map-placeholder { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #5d6472; text-align: center; }
.map-placeholder i { color: var(--brand); font-size: 52px; }
.map-placeholder strong { color: var(--ink); font-size: 26px; font-weight: 800; }
.map-placeholder span { max-width: 340px; font-size: 15px; line-height: 1.55; font-weight: 700; }

.contact-section .row.justify-content-center > .col-md-4,
.contact-section .row.justify-content-center > .col-lg-5 {
  display: flex;
}
.contact-section .info-card,
.contact-section .form-panel,
.contact-section .map-panel {
  height: 100%;
}
.footer { padding: 72px 0 0; text-align: center; background: #f5f7ff; }
.footer-logo { width: 145px; max-height: 44px; height: auto; object-fit: contain; margin: 0 auto 18px; }
.footer p { max-width: 470px; margin: 0 auto 24px; color: #5f6673; font-size: 13px; font-weight: 600; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 26px; margin-bottom: 24px; }
.footer-links a { color: #151722; font-size: 13px; font-weight: 800; }
.socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 70px; }
.socials a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 13px; }
.socials a:nth-child(1) { background: #1167d8; }
.socials a:nth-child(2) { background: #1da1f2; }
.socials a:nth-child(3) { background: #1976a9; }
.socials a:nth-child(4) { background: #db4437; }
.socials a:nth-child(5) { background: #e91e63; }
.copyright { border-top: 1px solid #dde2ee; padding: 18px 0; color: #646a77; font-size: 12px; font-weight: 600; }

.legal-hero { padding: 86px 0 110px; text-align: center; }
.legal-hero h1 { font-size: 38px; font-weight: 800; margin: 0 0 12px; }
.legal-hero p { color: var(--muted); margin: 0; font-weight: 600; }
.legal-content { padding: 70px 0 85px; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 26px rgba(22, 29, 49, .08); padding: 36px; }
.legal-card h2 { font-size: 24px; font-weight: 800; margin: 22px 0 10px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: #4e5564; font-size: 16px; line-height: 1.7; font-weight: 500; }
.legal-card ul { padding-left: 20px; }

@media (max-width: 991px) {
  .navbar { padding: 12px 0; }
  .navbar-nav .nav-link { padding: 11px 0; }
  .navbar-nav .nav-link.active::after, .navbar-nav .nav-link:hover::after { left: 0; right: auto; width: 36px; }
  .hero-section { padding: 60px 0 95px; }
  .hero-copy { padding-top: 10px; text-align: center; }
  .hero-title, .hero-text { margin-left: auto; margin-right: auto; }
  .hero-visual { min-height: 380px; margin-top: 20px; }
  .feature-title { text-align: center; margin: 0 auto 42px; }
  .feature-grid { max-width: 620px; margin: 0 auto; }
  .product-img-small, .product-img-gx { margin-bottom: 38px; }
}

@media (max-width: 767px) {
  .hero-title, .section-title h2, .feature-title, .legal-hero h1 { font-size: 30px; }
  .hero-device { width: 140px; }
  .section-pad, .feature-product, .feature-product.gx-block, .contact-section { padding: 68px 0 82px; }
  .analysis-card, .info-card { margin-bottom: 20px; }
  .feature-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feature-item p { margin-left: auto; margin-right: auto; }
  .product-img-gx { width: 300px; }
  .legal-card { padding: 24px; }
}




/* Restored interactive template motion and hover states */
.analysis-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 28px rgba(28, 37, 70, .18);
}
.analysis-card:hover::after { height: 100%; }
.analysis-card:hover h3,
.analysis-card:hover p { color: #fff; }
.analysis-card:hover .icon-img {
  filter: brightness(0) invert(1);
  transform: translateY(-4px) scale(1.04);
}

.info-card { transition: transform .3s ease, box-shadow .3s ease, background .3s ease; overflow: hidden; position: relative; }
.info-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-image: linear-gradient(55deg, #0250c5 0%, #d43f8d 100%);
  transition: height .3s ease;
  z-index: 0;
}
.info-card > * { position: relative; z-index: 1; }
.info-card:hover { transform: translateY(-6px); box-shadow: 0 20px 26px rgba(28,37,70,.18); }
.info-card:hover::after { height: 100%; }
.info-card:hover p,
.info-card:hover .info-icon { color: #fff; border-color: rgba(255,255,255,.75); }

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107,76,246,.16), 0 0 0 18px rgba(107,76,246,.06); }
  50% { box-shadow: 0 0 0 22px rgba(107,76,246,.08), 0 0 0 44px rgba(107,76,246,.04); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.015); }
}
@keyframes deviceFloat {
  0%, 100% { transform: translateY(12px); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ring,
  .hero-device { animation: none; }
}

to { transform: rotate(360deg); }
}



.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 29, 49, .06);
}
.lang-btn {
  min-width: 58px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #222733;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.lang-btn .flag {
  position: relative;
  width: 24px;
  height: 16px;
  flex: 0 0 24px;
  display: inline-block;
  overflow: hidden;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.08);
}
.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0h60v40H0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23012169' d='M0 0h60v40H0z'/%3E%3Cpath stroke='%23fff' stroke-width='8' d='m0 0 60 40M60 0 0 40'/%3E%3Cpath stroke='%23c8102e' stroke-width='4.8' d='m0 0 60 40M60 0 0 40'/%3E%3Cpath stroke='%23fff' stroke-width='13' d='M30 0v40M0 20h60'/%3E%3Cpath stroke='%23c8102e' stroke-width='8' d='M30 0v40M0 20h60'/%3E%3C/g%3E%3C/svg%3E");
}
.flag-ru {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%23fff' d='M0 0h60v40H0z'/%3E%3Cpath fill='%230039a6' d='M0 13.333h60V40H0z'/%3E%3Cpath fill='%23d52b1e' d='M0 26.667h60V40H0z'/%3E%3C/svg%3E");
}.lang-btn .lang-code { line-height: 1; }
.lang-btn.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(107, 76, 246, .24);
}
.lang-btn:focus { outline: 2px solid rgba(107, 76, 246, .25); outline-offset: 2px; }
@media (max-width: 991px) {
  .lang-item { width: 100%; padding: 10px 0; }
  .language-switch { margin-left: 0; }
}

.analysis-card-row { align-items: stretch; }
.analysis-card-row > [class*="col-"] { display: flex; }
.analysis-card-row .analysis-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}









.form-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; pointer-events: none !important; }

/* Mobile polish */
.contact-section .form-panel,
.contact-section .map-panel {
  width: 100%;
}
@media (max-width: 767px) {
  body.glavniy-site { overflow-x: hidden; }
  .navbar-collapse { padding: 8px 0 14px; }
  .language-switch { width: auto; max-width: 100%; }
  .hero-section { min-height: auto; padding: 56px 0 74px; }
  .hero-copy { padding-top: 0; }
  .hero-title { max-width: 345px; line-height: 1.18; margin-bottom: 20px; }
  .hero-text { max-width: 335px; font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
  .hero-visual { min-height: 350px; margin-top: 12px; }
  .hero-ring { width: min(335px, 88vw); }
  .hero-device { width: 136px; margin-top: 8px; }
  .analysis-card { min-height: 0; padding: 24px 22px 26px; border-radius: 10px; }
  .product-img-small { width: min(240px, 76vw); }
  .product-img-gx { width: min(300px, 86vw); }
  .feature-title { margin-bottom: 34px; }
  .feature-grid { gap: 30px; }
  .info-card { min-height: 150px; }
  .form-panel,
  .map-panel { min-height: 0; padding: 26px 22px; margin-top: 24px; }
  .map-placeholder { min-height: 230px; padding: 28px 18px; }
  textarea.form-control-glavniy { min-height: 120px; }
  .footer { padding-top: 56px; }
  .footer-links { gap: 12px 20px; line-height: 1.6; }
  .socials { margin-bottom: 50px; }
}
@media (max-width: 380px) {
  .hero-title, .section-title h2, .feature-title, .legal-hero h1 { font-size: 28px; }
  .brand-logo { width: 132px; }
  .lang-btn { min-width: 60px; padding: 0 8px; }
  .hero-device { width: 128px; }
}
.legal-card table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.legal-card th, .legal-card td { border: 1px solid #e1e4ec; padding: 11px 12px; text-align: left; vertical-align: top; color: #4e5564; }
.legal-card th { background: #f5f7ff; color: #11131a; font-weight: 800; }
.legal-card h3 { font-size: 19px; font-weight: 800; margin: 18px 0 8px; }
@media (max-width: 767px) { .legal-card { overflow-x: auto; } .legal-card table { min-width: 620px; } }
