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

body {
  font-family: 'Poppins', sans-serif;
  background-image: url('../IMAGES/abstract_blue.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #e3f2fd;
  position: relative;
  line-height: 1.8;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.8);
  z-index: -1;
}

.container {
  max-width: 65vw;
  margin: 0 auto;
  padding: 30px;
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 12px;
}

header {
  text-align: center;
  padding: 50px 0;
}

h1 {
  font-size: 3em;
  color: #90caf9;
}

.subtitle {
  font-size: 1.4em;
  color: #64b5f6;
  font-style: italic;
}

section {
  padding: 50px 30px;
  border-bottom: 1px solid rgba(144, 202, 249, 0.2);
}

h2 {
  font-size: 2.2em;
  color: #213f57;
  margin-bottom: 25px;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #42a5f5;
  margin-top: 8px;
}

p, li {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #628196;
}

#about {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.about-photo {
  flex-shrink: 0;
  width: 250px;
  height: 400px;
  background-image: url('../IMAGES/dev_photo.jpeg');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  border: 1px solid rgba(144, 202, 249, 0.4);
}

.highlight {
  color: #42a5f5;
  font-weight: 600;
}

.cta-button {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 40px auto;
  padding: 15px 20px;
  background-color: #42a5f5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #1e88e5;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2em;
  margin-bottom: 15px;
}

.contact-icon {
  width: 32px;
  height: 32px;
}

.contact-link {
  color: #90caf9;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 30px;
  font-size: 1.1em;
  color: #64b5f6;
}

/* Модальное окно */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 20, 50, 0.7);
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background-color: #e3f2fd;
  color: #0a192f;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2em;
  background: none;
  border: none;
  color: #0a192f;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.close-modal:hover {
  opacity: 1;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #0a192f;
}

.form-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #90caf9;
  background-color: #f0f7ff;
  font-size: 1em;
  margin-bottom: 15px;
  transition: 0.3s;
}

.form-input:focus {
  border-color: #42a5f5;
  background-color: #fff;
  outline: none;
}

.form-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #1e88e5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s ease;
}
.form-textarea {
  resize: none;
  height: 150px;
}

.form-submit:hover {
  background-color: #1565c0;
}

/* Мобильная адаптация */
@media (max-width: 1700px) {
  .container {
    max-width: 95vw;
  }
  #about {
    flex-direction: column;
    align-items: center;
  }
  .about-photo {
    width: 250px;
    height: 400px;
  }
}
