 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  padding: 0 1rem;
}

/* Шапка */
.header {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-bottom: 2rem;
}

.my-phot {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid white;
  margin-bottom: 1rem;
}

.header-1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-2 {
  font-style: italic;
  font-size: 1.2rem;
}

/* Основной контент */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Разделы */
.section, .section-1, .hobbies, .education, .quote, .interaction {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h3, h4, h5 {
  margin-bottom: 1rem;
  color: #444;
}

/* Skills: список с деталями */
details {
  margin-left: 1rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #555;
}

ol {
  padding-left: 1.5rem;
}

li {
  margin: 0.5rem 0;
}

/* Статья */
.article {
  font-style: italic;
  color: #666;
  line-height: 1.7;
}

/* Изображение-плейсхолдер */
.section-1 img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Видео-iframe */
.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Хобби */
.hobbies summary {
  font-weight: 600;
  color: #555;
}

/* Таблица образования */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #f2f2f2;
  font-weight: 600;
}

tr:hover {
  background-color: #f9f9f9;
}

/* Цитата */
.quote blockquote {
  font-style: italic;
  padding: 1rem 1.5rem;
  border-left: 4px solid #667eea;
  background-color: #f0f4ff;
  margin: 1rem 0;
}

/* Форма обратной связи */
.form {
  display: grid;
  gap: 1.2rem;
}

fieldset {
  border: none;
  padding: 0;
}

legend {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #444;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: #555;
}

input[type="text"],
input[type="email"],
.textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus,
.textarea:focus {
  outline: none;
  border-color: #667eea;
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

.button {
  background-color: #667eea;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #5a67d8;
}

/* Футер */
footer {
  text-align: center;
  padding: 2rem 0;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
  margin-top: 2rem;
}

.nomer {
  color: #667eea;
  text-decoration: none;
}

.nomer:hover {
  text-decoration: underline;
}

/* Разделитель */
.separator {
  border-color: #eee;
  margin: 2rem 0;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header-1 {
    font-size: 1.8rem;
  }

  .section, .section-1, .hobbies, .education, .quote, .interaction {
    padding: 1rem;
  }

  input[type="text"],
  input[type="email"],
  .textarea {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 0.5rem;
  }

  .header {
    padding: 1.5rem 0;
  }

  .header-1 {
    font-size: 1.6rem;
  }

  .my-phot {
    width: 100px;
    height: 100px;
  }
}