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

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  color: #1e293b;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Навигация (как на главной) */
.navbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.logo a:hover {
  color: #5a9cce;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #5a9cce;
  transition: all 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

/* Основной контент */
.main {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem;
  width: 100%;
}

/* Hero секция (сужена по высоте) */
.hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 24px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, #0f172a 0%, #2c5f8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 0.95rem;
  color: #475569;
}

/* Контейнер контактов */
.contacts-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Блок с контактной информацией */
.contacts-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(44,95,138,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(44,95,138,0.12);
  border-color: rgba(44,95,138,0.2);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #1e293b;
}

.contact-card p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.contact-card a {
  color: #2c5f8a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #5a9cce;
  text-decoration: underline;
}

/* Блок с формой обратной связи */
.contact-form-block {
  background: #ffffff;
  border-radius: 32px;
  padding: 2rem;
  border: 1px solid rgba(44,95,138,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #334155;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c5f8a;
  box-shadow: 0 0 0 3px rgba(44,95,138,0.1);
  background: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  display: inline-block;
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #2c5f8a 0%, #1e4a6f 100%);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44,95,138,0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Сообщение об успешной отправке */
.success-message {
  background: #10b981;
  color: white;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  text-align: center;
  display: none;
}

.success-message.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.error-message {
  background: #ef4444;
  color: white;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  text-align: center;
  display: none;
}

.error-message.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Карта (опционально) */
.map-block {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(44,95,138,0.1);
  margin-top: 0.5rem;
}

.map-block iframe {
  width: 100%;
  height: 300px;
  display: block;
}

/* Футер */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.85rem;
  margin-top: auto;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .contacts-info {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .nav-links {
    justify-content: center;
    gap: 1rem;
  }
  
  .main {
    padding: 1rem;
  }
  
  .hero {
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .contacts-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-form-block {
    padding: 1.2rem;
  }
  
  .map-block iframe {
    height: 200px;
  }
}