body {
  font-family: 'Droid Serif', sans-serif;
  background-color: #EAE5E5;
  height: 100%;
  margin: 0;
  position: relative;
}

/* Общие стили */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Переменные цветов */
:root {
  --primary-color: #E83556;
  --secondary-color: #61D0D4;
  --accent-color: #D1C906;
  --text-color: #4D4D4D;
  --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Стили логотипа */
.logo {
  position: absolute;
  top: 20px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 0 40px;
  width: 260px;
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

.logo:hover {
  transform: translateY(-3px);
}

.logo h1, .logo h2 {
  color: var(--text-color);
  font-weight: 700;
  text-shadow: #ffffff -1px -1px 0, #ffffff -1px 1px 0, #ffffff 1px 1px 0, #ffffff 1px -1px 0;
  padding: 0;
  margin: 0;
}

.logo h1 {
  font-size: 43px;
}

.logo h2 {
  font-size: 18px;
}

/* Стили контейнера заголовка */
.header-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Стили навигации */
nav {
  margin-top: 150px;
  width: 100%;
  text-align: center;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  color: #8b8b8b;
  font-size: 14px;
  font-weight: 700;
  height: 35px;
  padding: 0 10px;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
}

nav ul li a:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav ul li a.active::after {
  background-color: var(--primary-color);
  transform: scaleX(1);
}

nav ul li a:hover::after {
  transform: scaleX(1);
}

nav ul li a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
  color: var(--secondary-color);
}

/* Стили основного контента */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
}

/* Стили для секции профиля */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}

.profile-left {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
  margin-bottom: 20px;
}

.profile-left img {
  border-radius: 50%;
  width: 385px;
  height: 380px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  box-shadow: var(--light-shadow);
}

.profile-left img:hover {
  transform: scale(1.02);
  box-shadow: var(--hover-shadow);
}

.profile-right {
  flex: 2;
  text-align: left;
  padding-left: 50px;
  min-width: 300px;
  max-width: 600px;
}

.profile-right h3 {
  font-size: 80px;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.profile-right h4 {
  font-size: 46px;
  font-weight: 400;
  margin-top: 10px;
  color: var(--text-color);
}

/* Стили кнопок */
.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.button {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  font-size: 13px;
  font-family: "Open Sans", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  color: white;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: var(--light-shadow);
}

.button.red { background-color: var(--primary-color); }
.button.blue { background-color: var(--secondary-color); }
.button.yellow { background-color: var(--accent-color); }

.button:hover {
  opacity: 0.9;
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--hover-shadow);
}

.button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
  transform: translateY(-3px);
}

/* Общие стили для текста */
p {
  font-size: 20px;
  font-family: "Open Sans", sans-serif;
  margin-top: 20px;
  color: var(--text-color);
}

/* Стили футера */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

.footer-content {
  height: 100px;
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
  margin-left: 10px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.contact-item a:hover {
  color: #f0f0f0;
  transform: translateY(-2px);
}

.contact-item a:focus {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  color: #f0f0f0;
}

.icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.contact-item:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

/* Стили для секций резюме */
.resume-section {
  width: 100%;
  max-width: 700px;
  padding: 0 15px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: var(--text-color);
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  text-shadow: #ffffff -1px -1px 0, #ffffff -1px 1px 0, #ffffff 1px 1px 0, #ffffff 1px -1px 0;
  margin-top: 30px;
  margin-bottom: 20px;
  width: 100%;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #ccc;
  margin: 10px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.section-title:hover::after {
  width: 100px;
  background-color: var(--primary-color);
}

.resume-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}

.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  color: white;
  align-items: center;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--light-shadow);
  margin-right: 20px;
}

.circle:hover {
  transform: scale(1.05);
  box-shadow: var(--hover-shadow);
}

.resume-text {
  flex: 1;
  padding-left: 20px;
  min-width: 250px;
  text-align: left;
}

.resume-text p {
  margin-top: 0;
}

hr {
  border: 0;
  height: 1px;
  background-color: #ccc;
  margin: 30px 0;
  width: 100%;
}

/* Стили для методологий */
.methodologies-section {
  width: 100%;
  max-width: 1000px;
  padding: 0 15px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.methodologies-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

/* Общие стили для фотографий */
.methodologies-photo {
  max-width: 400px;
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 5px;
  box-shadow: var(--light-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  object-fit: contain;
  border: none;
  padding: 10px;
  background-color: white;
  box-sizing: content-box;
  display: block;
  margin: 0 auto;
}

.methodologies-photo:hover {
  transform: scale(1.03);
  box-shadow: var(--hover-shadow);
}

/* Контейнеры для фотографий */
.photo-container, .achieve-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  width: 100%;
}

/* Специальные стили для галереи декупажа */
.decoupage-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.decoupage-gallery .methodologies-photo,
.multi-photo-gallery .methodologies-photo {
  flex: 0 0 calc(50% - 20px);
}

/* Стили для галереи с несколькими фотографиями */
.multi-photo-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Стили для описаний */
.description-container {
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

.description-container p {
  margin: 0;
  padding: 0 15px;
  font-size: 18px;
  line-height: 1.5;
}

/* Стили для кнопок загрузки */
.buttons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  width: 100%;
}

.download-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 120px;
  text-align: center;
}

.download-button:hover {
  background-color: #d02a4a;
  transform: translateY(-3px);
}

.download-button:focus {
  outline: 2px solid rgba(232, 53, 86, 0.5);
  outline-offset: 2px;
  background-color: #d02a4a;
}

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}

.modal-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  padding: 10px;
  border: none;
  background-color: white;
  box-sizing: content-box;
}

.close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease, transform 0.2s ease;
}

.close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.prev-button, .next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prev-button {
  left: -60px;
}

.next-button {
  right: -60px;
}

.prev-button:hover, .next-button:hover {
  background-color: rgba(232, 53, 86, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.prev-button:focus, .next-button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  background-color: rgba(232, 53, 86, 0.7);
}

/* Медиа-запросы */
@media (max-width: 1024px) {
  .logo {
    margin: 0 0 0 40px;
  }
  
  .profile-right h3 {
    font-size: 60px;
  }
  
  .profile-right h4 {
    font-size: 36px;
  }
  
  .button {
    width: 130px;
    height: 130px;
  }
  
  .prev-button, .next-button {
    width: 40px;
    height: 40px;
  }
  
  .prev-button {
    left: -50px;
  }
  
  .next-button {
    right: -50px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }
  
  .logo {
    top: 20px;
    margin: 0 0 0 15px;
    width: auto;
  }
  
  nav {
    margin-top: 130px;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    justify-content: center;
    padding: 10px;
  }
  
  .intro {
    flex-direction: column;
    align-items: center;
  }
  
  .profile-left {
    margin-bottom: 30px;
  }
  
  .profile-right {
    padding-left: 0;
    text-align: center;
  }
  
  .profile-right h3 {
    font-size: 48px;
  }
  
  .profile-right h4 {
    font-size: 28px;
  }
  
  .buttons {
    justify-content: center;
  }
  
  .button {
    width: 110px;
    height: 110px;
    font-size: 12px;
  }
  
  .footer-content {
    flex-direction: column;
    height: auto;
    gap: 15px;
    padding: 20px 10px;
  }
  
  .prev-button, .next-button {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .prev-button {
    left: 10px;
  }
  
  .next-button {
    right: 10px;
  }
  
  .resume-item {
    flex-direction: column;
    text-align: center;
  }
  
  .circle {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .resume-text {
    padding-left: 0;
    text-align: center;
  }
  
  .methodologies-photo {
    max-width: 250px;
    max-height: 250px;
    padding: 8px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .description-container p {
    font-size: 16px;
  }
  
  .download-button {
    padding: 8px 15px;
    min-width: 100px;
    font-size: 14px;
  }
  
  .decoupage-gallery .methodologies-photo,
  .multi-photo-gallery .methodologies-photo {
    flex: 0 0 calc(50% - 15px);
    max-width: 250px;
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 10px;
  }
  
  .logo {
    margin: 0 0 0 10px;
  }
  
  .logo h1 {
    font-size: 36px;
  }
  
  .logo h2 {
    font-size: 16px;
  }
  
  .profile-left img {
    width: 280px;
    height: 280px;
  }
  
  .profile-right h3 {
    font-size: 36px;
  }
  
  .profile-right h4 {
    font-size: 24px;
  }
  
  .button {
    width: 90px;
    height: 90px;
    font-size: 10px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .circle {
    width: 100px;
    height: 100px;
  }
  
  .close {
    top: -30px;
    font-size: 30px;
  }
  
  nav {
    margin-top: 120px;
  }
  
  .methodologies-photo {
    max-width: 200px;
    max-height: 200px;
    padding: 5px;
  }
  
  .description-container p {
    font-size: 14px;
  }
  
  .download-button {
    padding: 6px 12px;
    min-width: 90px;
    font-size: 12px;
  }
  
  .decoupage-gallery .methodologies-photo,
  .multi-photo-gallery .methodologies-photo {
    flex: 0 0 calc(50% - 10px);
    max-width: 200px;
    max-height: 200px;
  }
}




