* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #333;
  scroll-behavior: smooth;
}
header {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #782D2E, #EF4C77);
  color: #fff;
  text-align: center;
  padding: 15px 30px;
  position: relative;
}
header img {
  background: #533838;   
  max-width: 90px;
  margin: 20px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
header img:hover {
  transform: scale(1.05);
}
header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  height: 100%;
  /*margin-left: 20px;*/
  text-transform: uppercase;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto;
}

.info-blocks {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 70px;
}

@media (max-width: 700px) {
  .info-blocks {
    grid-template-columns: 1fr;
  }
}
.block {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.block:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px #782D2E;
}
.block img {
  width: 100%;
  /*height: 220px;*/
  object-fit: cover;
}
.block h3 {
  margin: 20px 0 10px;
  font-size: 1.5rem;
  color: #2c3e50;
}
.block p {
  padding: 0 20px 30px;
  font-size: 1rem;
  color: #555;
}
footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 30px 15px;
}
footer a {
  color: #1abc9c;
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover {
  color: #16f2c9;
}


.block {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* изначально блоки скрыты */
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.block.visible {
  opacity: 1;
  transform: translateY(0);
}

.social-links { 
    margin-left: auto; 
    display: flex; 
    gap: 30px; 
} 

.social-links a { 
    color: #fff; 
    font-size: 40px; 
    text-decoration: none; 
    transition: 0.3s; 
} 
.social-links a:hover { 
    color: #ff0050; 
    transform: scale(1.15); 
}
.social-links a:last-child:hover { 
    color: #e1306c; 
}

/* 📱 Телефон */ 
@media (max-width: 600px) { 
    header { 
        flex-wrap: wrap; 
        justify-content: center; 
        padding: 15px; 
    } 
    
    header img { 
        width: 55px; 
    } 
    
    header h1 { 
        margin: 0 0 0 12px; 
        font-size: 22px; 
    } 
    
    .social-links {
        width: 100%; 
        margin: 12px 0 0; 
        justify-content: center; 
        gap: 25px; 
    } 
        
    .social-links a { 
        font-size: 28px; 
    } 
}