body { margin-top: 70px; font-family:Arial, sans-serif; line-height:1.6; }
.card-img-top { 
  height: 260px;         /* было 200px, стало 260px */
  object-fit: contain;   /* было cover, теперь contain */
  background: #f7fafd;   /* (опционально) мягкий фон под картинкой */
  padding: 16px;         /* (опционально) чтобы картинка не прилипала к краям */
}
footer form textarea { resize:none; }

@keyframes logoCosmicGlow {
  0%   { filter: drop-shadow(0 0 0px #1e8fff) drop-shadow(0 0 0px #fff); transform: scale(1);}
  30%  { filter: drop-shadow(0 0 12px #8be5ff) drop-shadow(0 0 24px #1e8fff); transform: scale(1.07);}
  50%  { filter: drop-shadow(0 0 24px #fff) drop-shadow(0 0 38px #52c1fa); transform: scale(1.12);}
  70%  { filter: drop-shadow(0 0 12px #8be5ff) drop-shadow(0 0 28px #1e8fff); transform: scale(1.07);}
  100% { filter: drop-shadow(0 0 0px #1e8fff) drop-shadow(0 0 0px #fff); transform: scale(1);}
}

.logo-glow-container {
  padding: 4px 0;
  border-radius: 14px;
  background: none;
  overflow: visible;
  display: inline-block;
}

.logo-animated {
  max-width: 180px;
  height: auto;
  display: block;
  border-radius: 1px;
  animation: logoCosmicGlow 2.4s cubic-bezier(.4,0,.2,1) 1;
  background: none;

.navbar, .navbar * {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}}

@media (max-width:600px) {
  .logo-animated { max-width: 120px; }
}

.hero {
  min-height: 72vh;
  background: url('img/hero.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-bg-img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.36; /* Можно сделать прозрачнее если перебивает текст */
  pointer-events: none;
  filter: blur(1.5px) saturate(1.2);
}
.hero-glass-overlay {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(32,124,229,0.11) 0%, rgba(0,0,0,0.22) 100%);
  backdrop-filter: blur(5px) saturate(115%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1, .hero .display-4 {
  color: #fff;
  text-shadow: 0 3px 24px rgba(10,30,85,0.35), 0 1px 2px rgba(0,0,0,0.12);
}
.hero p {
  color: #f3f6fa;
  font-size: 1.3rem;
  text-shadow: 0 1px 6px rgba(30,60,120,0.22);
}
.hero-btns .btn {
  min-width: 220px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 0.75rem;
  padding-top: 15px;
  padding-bottom: 15px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.12);
}
.hero-btns .btn-outline-light {
  color: #fff;
  border: 2px solid #fff;
  background: rgba(30,58,138,0.22);
}
.hero-btns .btn-primary {
  background: #2563eb;
  border-color: #2563eb;
}
.hero-btns .btn:hover,
.hero-btns .btn:focus {
  opacity: 0.90;
}
@media (max-width: 600px) {
  .hero-content { padding: 2.2rem 0.6rem 1.2rem 0.6rem; }
  .hero-btns .btn { min-width: 100%; }
  .hero h1 { font-size: 2rem; }
}
.navbar-brand img {
  max-height: 48px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width:600px) {
  .navbar-brand img { max-height: 36px; }
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0; pointer-events: none;
}
.hero-content-card {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: rgba(20, 40, 80, 0.36); /* более насыщенный, чем просто белый блюр! */
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.16);
  border-radius: 2rem;
  backdrop-filter: blur(9px) saturate(140%);
  padding: 3.5rem 2rem 2.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
}
.hero-content-card h1, .hero-content-card p {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(10,30,85,0.22), 0 1px 2px rgba(0,0,0,0.13);
}
.hero-content-card .btn {
  min-width: 220px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 0.75rem;
  padding-top: 15px; padding-bottom: 15px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.12);
}
.hero-content-card .btn-outline-light {
  color: #fff;
  border: 2px solid #fff;
  background: rgba(30,58,138,0.13);
}
.hero-content-card .btn-primary {
  background: #2563eb;
  border-color: #2563eb;
}
.hero-content-card .btn:focus, .hero-content-card .btn:hover {
  opacity: 0.92;
}
@media (max-width: 600px) {
  .hero-content-card { padding: 1.5rem 0.5rem; }
  .hero-content-card h1 { font-size: 2rem; }
  .hero-content-card .btn { min-width: 100%; }
}
