/* ===== Общие стили ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --card-bg: rgba(57, 174, 207, 0.12);
  --text: #dce6f0;
  --font-title: Georgia, 'Times New Roman', serif;
  --font-body: 'Times New Roman', Times, serif;
}

html, body {
  min-height: 100vh;
  background: linear-gradient(180deg, 
    #8bb8e5 0%, 
    #6fa0d4 25%,
    #4685c4 60%,
    #124a6e 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== Шапка ===== */
.profile-header {
  position: relative;
  background: linear-gradient(135deg, #6fa0d4 0%, #4685c4 100%);
}

.banner {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top 0;
}

.avatar-row {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  background: linear-gradient(90deg, 
    #8BC5FF 0%, 
    #5F9ED2 40%,
    #3A7FBF 50%,
    #5F9ED2 60%,
    #8BC5FF 100%);
  position: relative;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.1);
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  object-fit: cover;
  position: absolute;
  top: -50px;
}

/* ===== Никнейм и полоска ===== */
.nickname-wrapper {
  text-align: center;
  margin-top: 3px;
  margin-bottom: 15px;
}

.nickname {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 3rem;
  color: #ffffff;
  -webkit-text-stroke: 0.3px rgba(0,0,0,0.5);
  text-stroke: 0.3px rgba(0,0,0,0.5);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.decor-line {
  display: inline-block;
  width: 80%;
  max-width: 600px;
  height: 4px;
  background: linear-gradient(90deg, 
    #7df0ff 0%,
    #70ccff 30%,
    #4da3e6 50%,
    #70ccff 70%,
    #7df0ff 100%);
  position: relative;
  margin-top: -2px;
}

.decor-line::before,
.decor-line::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
}

.decor-line::before {
  left: -6px;
  border-width: 3px 6px 3px 0;
  border-color: transparent #c0ffff transparent transparent;
}

.decor-line::after {
  right: -6px;
  border-width: 3px 0 3px 6px;
  border-color: transparent transparent transparent #c0ffff;
}

/* ===== Контейнер для кнопок ===== */
.price-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 14px 0 8px 0;
}

/* Кнопка "Прайс-лист" (белый-серый) */
.price-btn {
  display: block;
  width: 90%;
  max-width: 600px;
  margin: 0;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  border: 3px solid;
  border-image: linear-gradient(135deg, #ffffff 0%, #bbbbbb 100%);
  border-image-slice: 1;
  border-radius: 0;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.price-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* Кнопка "скоро" (голубой-синий) */
.soon-btn {
  display: block;
  width: 90%;
  max-width: 600px;
  margin: 0;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  border: 3px solid;
  border-image: linear-gradient(135deg, #4FC3F7 0%, #1565C0 100%);
  border-image-slice: 1;
  border-radius: 0;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.soon-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* ===== Основной контент ===== */
.content {
  background: linear-gradient(180deg, 
    rgba(139, 184, 229, 0.1) 0%, 
    rgba(111, 160, 212, 0.2) 30%,
    rgba(70, 133, 196, 0.3) 70%,
    rgba(18, 74, 110, 0.4) 100%);
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Стих ===== */
.poem-block {
  padding: 0 8px;
  margin-top: -5px;
}

.poem {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1.0;
  white-space: pre-line;
  color: #dce6f0;
}

.quote-open,
.quote-close {
  font-size: 1.9rem;
  font-style: normal;
  opacity: 0.5;
}
.quote-open { margin-right: 2px; }
.quote-close { margin-left: 2px; }

.poem-author {
  display: block;
  text-align: right;
  margin-top: 12px;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  opacity: 0.6;
}

/* ===== Карточки ===== */
.card {
  background: var(--card-bg);
  border: 2px solid #4A9CD9;
  border-radius: 18px;
}

/* Карточка с текстом */
.card-text {
  padding: 24px 28px 32px;
}

.card-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  text-align: left;
}

/* Карточка с видео и заглушкой */
.card-video {
  position: relative;
  padding: 12px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
}

.card-video video {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: 1.2rem;
  font-family: var(--font-body);
  pointer-events: none;
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.1);
  border-radius: 12px;
  box-sizing: border-box;
}

/* ===== Секция проектов ===== */
.projects-section {
  margin-top: 10px;
}

.projects-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: left;
  font-weight: bold;
  -webkit-text-stroke: 0.3px rgba(0,0,0,0.3);
  text-stroke: 0.3px rgba(0,0,0,0.3);
}

.projects-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}

.projects-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.project-row {
  display: table-row;
}

.project-row:not(:last-child) .project-name-cell,
.project-row:not(:last-child) .project-desc-cell {
  border-bottom: 1.5px solid rgba(255,255,255,0.4);
}

.project-name-cell,
.project-desc-cell {
  display: table-cell;
  padding: 14px 20px;
  vertical-align: middle;
  border-right: 1.5px solid rgba(255,255,255,0.4);
}

.project-desc-cell {
  border-right: none;
}

.project-name-cell {
  width: 30%;
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffffff;
}

.project-desc-cell {
  width: 70%;
  font-size: 1rem;
  color: #ffffff;
}

.project-date {
  font-weight: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-left: 6px;
}

.project-desc-cell .project-link {
  display: block;
  margin-top: 4px;
}

.project-link {
  color: #1AA2F3;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.2s;
  font-size: 0.9rem;
}

.project-link:hover {
  border-bottom-color: #1AA2F3;
}

/* ===== Блок ссылок ===== */
.social-section {
  margin-top: 20px;
}

.social-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: left;
  font-weight: bold;
  -webkit-text-stroke: 0.3px rgba(0,0,0,0.3);
  text-stroke: 0.3px rgba(0,0,0,0.3);
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-list li {
  margin: 0;
}

.social-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
  border-bottom: 1px dotted transparent;
}

.social-list a:hover {
  color: #1AA2F3;
  border-bottom-color: #1AA2F3;
}

.social-icon {
  width: 29px;
  height: 29px;
  object-fit: contain;
  display: block;
}

/* ===== Подвал ===== */
.site-footer {
  background: #0f1f30;
  padding: 32px 20px 24px;
  text-align: left;
  margin-top: 20px;
}

.site-footer p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.35);
  margin: 6px 0;
  font-family: var(--font-body);
}

.footer-email {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}

/* ===== Адаптив для телефонов ===== */
@media (max-width: 600px) {
  .nickname {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  .decor-line {
    width: 80%;
    max-width: 300px;
  }
  .decor-line::before {
    left: -4px;
    border-width: 2px 4px 2px 0;
  }
  .decor-line::after {
    right: -4px;
    border-width: 2px 0 2px 4px;
  }
  .card-text {
    padding: 18px 16px 24px;
  }
  .card-video {
    padding: 8px;
    min-height: 100px;
  }
  .video-fallback {
    font-size: 1rem;
    padding: 12px;
  }
  .avatar {
    width: 65px;
    height: 65px;
    top: -32px;
  }
  .avatar-row {
    height: 45px;
  }
  .poem {
    font-size: 1.3rem;
    line-height: 1.0;
  }
  .quote-open,
  .quote-close {
    font-size: 1.3rem;
  }
  .banner {
    height: 110px;
  }
  .content {
    padding-top: 8px;
    gap: 10px;
  }
  .nickname-wrapper {
    margin-top: 0;
  }

  .price-btn,
  .soon-btn {
    padding: 10px 0;
    font-size: 1rem;
    border-width: 2.5px;
    width: 90%;
  }

  /* Проекты (мобильная версия) */
  .projects-title {
    font-size: 2.8rem;
  }
  .projects-table-wrapper {
    border-width: 1.5px;
  }
  .project-name-cell,
  .project-desc-cell {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  .project-name-cell {
    width: 30%;
    font-size: 1rem;
  }
  .project-desc-cell {
    width: 70%;
    font-size: 0.9rem;
  }
  .project-row:not(:last-child) .project-name-cell,
  .project-row:not(:last-child) .project-desc-cell {
    border-bottom: 1.5px solid rgba(255,255,255,0.4);
  }
  .project-name-cell,
  .project-desc-cell {
    border-right: 1.5px solid rgba(255,255,255,0.4);
  }

  /* Ссылки (мобильная версия) */
  .social-title {
    font-size: 2.8rem;
  }
  .social-list a {
    font-size: 1.1rem;
    gap: 10px;
  }
  .social-icon {
    width: 25px;
    height: 25px;
  }

  /* Подвал (мобильная версия) */
  .site-footer {
    padding: 24px 16px 20px;
  }
  .site-footer p {
    font-size: 0.75rem;
  }
  .footer-email {
    font-size: 0.7rem;
  }
}