:root {
  --White: white;
  --Black: #191919;
  --Dark-Grey: #464646;
  --Stroke: #E8E8E8;
  --Color: #F3F3F8;
  font-family: 'Wix Madefor Display', sans-serif;
}

body {
  margin: 0;
  background-color: #ffffff;
}

.portfolio-container {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--White);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- ХЕДЕР --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px 0; /* ← сверху 30, по бокам 50, снизу 0 */
}

.profile-section { display: flex; align-items: center; gap: 20px; }
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; pointer-events: none; }
.profile-name { color: var(--Black); font-size: 24px; font-weight: 600; }
.profile-city { opacity: 0.5; color: var(--Black); font-size: 16px; font-weight: 600; }

.header-buttons { display: flex; gap: 20px; }
.btn {
  padding: 8px 12px 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-telegram { background: var(--Black); color: var(--White); }
.btn-resume { background: var(--Color); color: var(--Black); }

.icon-black { width: 24px; height: 24px; background: transparent !important; }
.icon-white { width: 24px; height: 24px; background: transparent !important; filter: invert(1); }

/* --- ГЕРОЙ --- */
.hero-section { padding: 120px 50px 72px; } /* ← сверху 132, по бокам 50, снизу 0 */
.hero-title {
  max-width: 700px;
  margin: 0;
  color: var(--Black);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.4;
}

/* --- ОПЫТ --- */
.experience-block {
  display: flex;
  gap: 20px;
  padding: 60px 50px 0; /* ← сверху 0, по бокам 50, снизу 0 */
}

.experience-desc {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.company-header { display: flex; align-items: center; gap: 16px; }
.company-logo { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--Stroke); pointer-events: none; }
.company-name { font-size: 24px; font-weight: 600; }
.company-dates { font-size: 18px; opacity: 0.5; font-weight: 600; }
.company-text { font-size: 24px; color: var(--Dark-Grey); line-height: 1.4; }
.company-text p { margin: 0 0 12px 0; }
.company-text p:last-child { margin-bottom: 0; }

.cards-wrapper { flex: 1; display: flex; gap: 20px; }

/* --- КАРТОЧКИ --- */
.project-card {
  flex: 1;
  min-height: 340px;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.card-blue { background: #E1F5EB; }
.card-purple { background: #DCE6FF; }
.card-green { background: #F3F3F8; }

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.card-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--Black);
  color: var(--White);
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  z-index: 1;
}

.card-content { position: relative; z-index: 1; }
.card-title { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.card-subtitle { font-size: 18px; font-weight: 600; opacity: 0.7; }
.muted-grey { color: var(--Dark-Grey); opacity: 1; }

/* --- ФУТЕР --- */
.footer-section {
  background: var(--Color);
  border-radius: 40px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  pointer-events: none;
  margin-top: 132px; /* ← ОТСТУП ОТ ОПЫТА К ФУТЕРУ */
}

.footer-concepts { display: flex; gap: 20px; }
.concept-card {
  flex: 1;
  height: 140px;
  background: var(--White);
  border-radius: 24px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.concept-img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; }

.footer-copyright {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  padding: 60px 50px 50px; /* ← сверху 132, по бокам 50, снизу 50 */
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ --- */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 0;
    gap: 32px;
  }

  .header-buttons {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .btn { 
    justify-content: space-between; 
    width: 100%; 
    box-sizing: border-box;
    padding: 12px 12px 12px 16px;
  }

  .hero-section { padding: 32px 24px 40px; }
  .hero-title { font-size: 24px; }

  .experience-block {
    flex-direction: column;
    padding: 40px 24px 0;
    gap: 20px;
  }

  .experience-desc { width: 100%; gap: 20px; }
  .company-name { font-size: 20px; }
  .company-dates { font-size: 16px; }
  .company-text { font-size: 20px; }

  .cards-wrapper { flex-direction: column; }
  .project-card { min-height: 252px; }

  .card-title { font-size: 20px; }
  .card-subtitle { font-size: 16px; }
  .card-tag { font-size: 16px; }

  .footer-section {
    padding: 24px;
    gap: 40px;
    margin-top: 40px;
  }

  .footer-concepts { 
    flex-direction: column;
  }

  .concept-card {
  height: 72px;
  border-radius: 24px;
}

  .footer-copyright { 
    flex-direction: column;
    align-items: center; 
    gap: 12px;
    padding: 40px 24px 24px;
  }
}