﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  padding: 10px;
}

/* === Общие стили для всех основных блоков === */
.section,
.profile-header {
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section:last-child {
  margin-bottom: 20px;
}

/* === Стили для профиля с фото === */
.profile-header {
  background-color: white;
  padding: 20px;
}

.profile-container {
  display: flex;
  align-items: flex-start;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  border: 2px solid #f0f0f0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.profile-image:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.profile-text h1 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.profile-text p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
}

.profile-text a {
  color: #2c3e50;
  text-decoration: underline;
}

/* === Стили для списков === */
.styled-list {
  padding-left: 25px;
  margin: 12px 0;
}

.styled-list li {
  margin-bottom: 8px;
}

/* === Стили для остальных секций === */
.intro p {
  font-size: 1.05rem;
  margin: 12px 0;
}

/* === Карусель === */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.carousel {
  overflow: hidden;
  border-radius: 10px;
  max-height: 80vh;
}

.carousel-item,
.poetry-item {
  display: none;
  text-align: center;
}

.carousel-item.active,
.poetry-item.active {
  display: block;
}

.carousel-item img {
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
  object-fit: contain;
}

/* Стили для изображений внутри секций */
.section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 10px auto;
  padding: 5px;
  background: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === Кнопки карусели — единый стиль (#4a6fa5) === */
.carousel-controls {
  text-align: center;
  margin-top: 20px;
}

.carousel-controls button {
  background: #4a6fa5;
  color: white;
  border: none;
  padding: 12px 20px;
  margin: 0 8px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-controls button:hover {
  background: #3a5a80;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* === Кнопка "Скачать" — в том же стиле === */
.download-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4a6fa5;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-link:hover {
  background-color: #3a5a80;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* === Стиль для стихов === */
.poetry-item {
  font-style: italic;
  line-height: 1.8;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 10px 0;
}

.poetry-item p {
  margin: 0;
  font-size: 1.1rem;
}

/* === Адаптивность === */

/* Для планшетов */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-image {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .profile-text h1 {
    font-size: 1.6rem;
  }

  body {
    padding: 10px;
    font-size: 14px;
  }

  .section,
  .profile-header {
    padding: 16px;
    margin: 0 auto 25px;
  }

  .carousel-controls button {
    padding: 10px 16px;
    font-size: 16px;
    margin: 0 5px;
  }

  .poetry-item {
    padding: 14px;
    font-size: 1rem;
  }
}

/* Для мобильных телефонов */
@media (max-width: 480px) {
  .profile-text h1 {
    font-size: 1.4rem;
  }

  .section,
  .profile-header {
    padding: 14px;
    margin: 0 auto 20px;
  }

  .carousel-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .carousel-controls button {
    padding: 10px 14px;
    font-size: 15px;
    width: 45%;
  }

  .intro p,
  .portfolio p {
    font-size: 1rem;
  }

  .poetry-item {
    padding: 12px;
    font-size: 0.95rem;
  }

  .download-link {
    padding: 10px 16px;
    font-size: 16px;
    width: 80%;
    text-align: center;
    margin: 0 auto;
  }
}