/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Smooth scroll (ANCHORS) ===== */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== Base ===== */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f4;
  color: #111;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* ===== Typography ===== */
h1,
h3 {
  font-family: 'Cormorant Garamond', sans-serif;
  font-weight: 600;
}



/* ===== Layout ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50 / 50 */
  min-height: 100vh;
}

/* ===== Main Content ===== */
.content {
  background-color: #F7F5F0;
  padding: 10px 10px 10px 40px;
}

/* ===== Sidebar ===== */
.sidebar {
  background-color: #8fa39a;
}

.photo-wrapper {
  position: sticky;
  top: 50px;
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.profile-photo {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: cover;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.35),   /* основная тень под фото */
    0 2px 4px rgba(0, 0, 0, 0.25);    /* контактная тень у краёв */
  border-radius: 2px;
}



/* ===== Sections ===== */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 140px;
}

/* Заголовок + линия */
.section-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.section-title {
  font-family: 'Cormorant Garamond', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
}

.section-line {
  width: 180px;
  height: 1px;
  background-color: #000;
  opacity: 0.5;
  transform: translateY(-0.1em);
}

.section-inner {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;      /* ← ДОБАВИТЬ */
}

/* Вертикальное центрирование секций */
.section {
  min-height: 100vh;
}

.section--center-vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* ===== Header / Navigation ===== */
.header {
  padding: 10px 10px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  text-decoration: none;
  color: #000;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-list a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #000;
}

/* ===== Hero ===== */

.hero__name {
  font-family: 'Cormorant Garamond', sans-serif;
  font-weight: 400;
  font-size: 56px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-feature-settings: "liga" 1, "kern" 1;
  margin-bottom: 12px;
}

.hero__position {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
   font-size: 28px;
  
}

.hero_contacts_list {
padding-top: 20px;
  list-style: none;
  margin: 0;
}

.hero_contacts_list li {
  margin-bottom: 20px;
}

.contact_title {
font-family: 'Montserrat', sans-serif;
  font-weight: 700;
   font-size: 14px;
}

.contact_phone,
.contact_email,
.contact_location {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.contact_phone {
  margin-left: 10px;
}

.contact_email {
  margin-left: 16px;
}

.contact-info p {
  margin-bottom: 8px;
}


.hero_contacts_list_item {
  margin-bottom: 8px;
}

.hero_contacts_list_item a {
  color: #000;
  text-decoration: none;
}

.hero_contacts_list_item a:hover {
  text-decoration: underline;
}


.hero_socials {
  display: flex;
  gap: 16px;            /* расстояние между ссылками */
  margin-top: 16px;
}

.hero_socials a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #000;
  text-decoration: none;
}

.hero_socials a:hover {
  text-decoration: underline;
}

.hero_socials {
  display: flex;
  align-items: center;   /* 🔥 вертикальное выравнивание */
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero_socials li {
  display: flex;
  align-items: center;
}

.social-dot {
  margin: 0 8px;         /* расстояние между ссылками */
  line-height: 1;        /* убирает «прыжок» точки */
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
   font-size: 18px;
}

.hero_action {
   display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
 max-width:400px;
}

/* ===== Button ===== */
/* ===== Resume Link ===== */
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-top: 80px;

  text-decoration: none;
  color: #000;

  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.08em;

  cursor: pointer;
  transition: opacity 0.3s ease;
}

.resume-link:hover {
  opacity: 0.6;
}

.resume-text {
letter-spacing: 0.02em;

}

.resume-arrow {
  margin-left: 12px;
  width: 12px;
  height: 20px;
}

/* =========================
   ABOUT SECTION
   ========================= */

/* Контейнер секции */
.about_section {
  max-width: 460px;
}

.section-line-about {
  width: 264px;
}

/* Контент секции */
.section-content,
.about_section {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 2;      /* оптимально для читаемости */
  color: #111;
}

/* Абзацы */
.about_section p {
  margin: 0;
  text-align: justify; 

}

/* Отступ между абзацами */
.about_section p + p {
  margin-top: 24px;
}

/* =========================
   SKILLS SECTION
   ========================= */

/* Контейнер секции (как About) */
.skills.section .section-inner,
#skills > div {
  max-width: 460px;
}

/* Заголовок секции */
#skills .section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-line-skils {
  width: 116px;
  height: 0.5px;
}

/* Группы навыков */
.skills__groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Заголовок группы (Front-end / Back-end / Utilities) */
.skills__group-title {
    font-family: 'Montserrat', serif;
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 16px 0;
}

/* Список */
.skills__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Элемент навыка */
.skills__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;

  margin-bottom: 8px;
}

/* Название навыка */
.skills__name {
  color: #111;
}

/* Уровень навыка */
.skills__level {
  color: #555;
  font-weight: 400;
}

/* =========================
   EXPERIENCE SECTION (TEXT ONLY)
   ========================= */

.experience__content {
  display: flex;
  flex-direction: column;
  gap: 32px; /* расстояние между пунктами опыта */
}

/* Один блок опыта */
.experience__item {
  font-family: 'Montserrat', sans-serif;
  color: #111;
}

/* Заголовок опыта */
.experience__title {
  font-family: 'Montserrat', serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 12px;
}

/* Описание опыта */
.experience__text {
  font-size: 14px;
  line-height: 2;
  margin: 0;
  text-align: justify;
}

/* Последний блок — переход в IT (опционально выделить) */
.experience__item--transition .experience__title {
  font-style: italic;
}

.experience__content ul {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-line-experience {
   width: 156px;
  height: 0.5px;
}

/* =========================
   EDUCATION SECTION (TEXT ONLY)
   ========================= */

/* Контейнер контента */
.education__content {
  display: flex;
  flex-direction: column;
}

/* Список */
.education__list {
  display: flex;
  flex-direction: column;
  gap: 28px; /* расстояние между пунктами образования */
}

/* Один пункт образования */
.education__item {
  font-family: 'Montserrat', sans-serif;
  color: #111;
}

/* Название учреждения */
.education__title {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}

/* Направление / степень */
.education__meta {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
  color: #111;
}

/* Период и локация */
.education__period {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.section-line-education {
    width: 216px;
  height: 0.5px;
}

/* =========================
   ACHIEVEMENTS SECTION (TEXT ONLY)
   ========================= */

.experience_section_top {
  margin-top: 160px;
}
/* Контейнер контента */
.achievements__content {
  display: flex;
  flex-direction: column;
}

/* Список достижений */
.achievements__list {
  display: flex;
  flex-direction: column;
  gap: 28px; /* расстояние между пунктами */
}

/* Один пункт */
.achievements__item {
  display: flex;
  flex-direction: column;
  gap: 6px;

  font-family: 'Montserrat', sans-serif;
  color: #111;
}

/* Название проекта */
.achievements__title {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

/* Ссылка */
.achievements__link {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  text-decoration: none;
  align-self: flex-start; /* ссылка не растягивается */
}

/* Hover-эффект */
.achievements__link:hover {
  text-decoration: underline;
}


/* =========================
   FOOTER
   ========================= */

.footer {
  padding: 40px 140px 24px;
}

/* Верхняя часть футера (лево / право) */
.footer__inner {
  max-width: 920px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Левая часть: контакты */
.footer__contacts {
  font-style: normal; /* address без курсива */

  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Список контактов */
.footer .contacts__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .contacts__item {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #111;
}

/* Ссылки контактов */
.footer .contacts__link {
  margin-left: 6px;
  color: #111;
  text-decoration: none;
}

.footer .contacts__link:hover {
  text-decoration: underline;
}

/* Правая часть: соцсети */
.footer .contacts__socials {
  display: flex;
  gap: 16px;
}

.footer .contacts__social-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #111;
  text-decoration: none;
}

.footer .contacts__social-link:hover {
  text-decoration: underline;
}

/* =========================
   FOOTER BOTTOM
   ========================= */

.footer__bottom {
  max-width: 920px;
  margin: 32px auto 0;
  padding-top: 16px;

  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Копирайт */
.footer__copyright {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  text-align: center;
}

/* =========================
   FIXED SCROLL BUTTON
   ========================= */

.scroll-top-btn {
  position: fixed;

  left: 40px;
  bottom: 40px;

  width: 40px;
  height: 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;

  background: transparent;
  border: 1px solid transparent;

  cursor: pointer;
  z-index: 1000;
}

/* Стрелка */
.scroll-top-btn .arrow {
  width: 12px;
  height: 12px;

  border-left: 2px solid #8fa39a;
  border-top: 2px solid #8fa39a;

  transform: rotate(45deg);
}

/* Hover (очень аккуратно) */
.scroll-top-btn:hover {
  opacity: 0.7;
}

.scroll-top-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}


/* =========================
   BURGER BUTTON
   ========================= */

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;

  width: 32px;
  height: 24px;

  flex-direction: column;
  justify-content: space-between;
}


.burger span {
  display: block;
  height: 1px;
  background-color: #111;

  /* 👇 регулируем длину линий */
  width: 100%;
}

.burger span:nth-child(2) {
    height: 0.5px;
  width: 75%;
}

.burger span:nth-child(3) {
    height: 0.5px;
  width: 50%;

}

/* =========================
   NAV MODAL
   ========================= */

.nav-modal {
  position: fixed;
  inset: 0;

  background-color: #F7F5F0;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.3s ease;
  z-index: 999;

}

.nav-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;

  background: none;
  border: none;

  .nav-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;

  background: none;
  border: none;

  font-size: 24px;
  line-height: 1;

  font-family: 'Montserrat', sans-serif;
  color: #111;

  cursor: pointer;
  z-index: 1;
}

.nav-modal__close:hover {
  opacity: 0.6;
}
  line-height: 1;

  font-family: 'Montserrat', sans-serif;
  color: #111;

  cursor: pointer;
  z-index: 1;
}

.nav-modal__close:hover {
  opacity: 0.6;
}

.nav-modal__list {
  display: flex;
  flex-direction: column;
  gap: 32px;

  text-align: center;
}

.nav-modal__list a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  color: #111;
  text-decoration: none;
}

.nav-modal__list a:hover {
  opacity: 0.6;
}

.nav-modal.is-open {
  opacity: 1;
  visibility: visible;
}


@media (max-width: 767px) {
  .nav-list {
    display: none;
  }

  .burger {
    display: flex;
  }
}




@media (max-width: 1439px) {
  .section {
    padding: 0 120px;
  }

  .footer {
    padding: 40px 120px 24px;
  }

  .profile-photo {
    max-width: 380px;
  }
}


@media (max-width: 1199px) {
  .section {
    padding: 0 80px;
  }

  .footer {
    padding: 40px 80px 24px;
  }

  .profile-photo {
    max-width: 340px;
  }

  .photo-wrapper {
    padding: 60px 20px;
  }
}


@media (max-width: 1023px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1; /* фото сверху */
  }

  .photo-wrapper {
    position: static;
    padding: 40px 0;
  }

  .profile-photo {
    max-width: 320px;
  }

  .section {
    min-height: auto;
    padding: 80px 64px;
  }

  .footer {
    padding: 40px 64px 24px;
  }
}


@media (max-width: 767px) {
  .section {
    padding: 64px 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-line {
    width: 120px;
  }

  .hero__name {
    font-size: 40px;
  }

  .hero__position {
    font-size: 22px;
  }

  .profile-photo {
    max-width: 280px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .scroll-top-btn {
    left: 24px;
    bottom: 24px;
  }
}


@media (max-width: 479px) {
  .section {
    padding: 56px 16px;
  }

  .hero__name {
    font-size: 34px;
  }

  .hero__position {
    font-size: 20px;
  }

  .section-title {
    letter-spacing: 0.2em;
    font-size: 16px;
  }

  .profile-photo {
    max-width: 100%;
  }

  .footer {
    padding: 32px 16px 20px;
  }

  .footer__copyright {
    font-size: 13px;
  }

  .scroll-top-btn {
    width: 36px;
    height: 36px;
  }

  .scroll-top-btn .arrow {
    width: 10px;
    height: 10px;
  }
}

/* =========================
   COVER LETTER MODAL
   ========================= */

.cover-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;

  z-index: 2000;
}

.cover-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* =========================
   MODAL CONTENT
   ========================= */

.cover-modal__content {
  background-color: #F7F5F0;
  color: #111;

  width: 800px;
  max-height: 90vh;

  padding: 40px 48px;
  overflow-y: auto;
  border-radius: 4px;

  position: relative;

  /* slide-down animation */
  transform: translateY(-20px);
  transition: transform 0.3s ease;
    scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none; 
}

.cover-modal__content::-webkit-scrollbar {
  display: none;                /* Chrome / Safari */
}

.cover-modal.is-open .cover-modal__content {
  transform: translateY(0);
}

/* =========================
   CLOSE BUTTON
   ========================= */

.cover-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;

  background: none;
  border: none;

  font-size: 18px;
  cursor: pointer;
}

/* =========================
   TYPOGRAPHY
   ========================= */

.cover-modal__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cover-modal__text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 2;
  color: #111;
}

/* =========================
   DOWNLOAD BUTTON
   ========================= */

.cover-modal__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;

 margin: 32px auto 0;

  width: 150px; 
  height: 36px;
border-radius: 4px;
  background-color: #8fa39a;
  color: #fff;

  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  text-decoration: none;

  cursor: pointer;
}

.cover-modal__download:hover {
  opacity: 0.85;
}

/* =========================
   TABLET & MOBILE
   ========================= */

@media (max-width: 1023px) {
  .cover-modal__content {
    width: 100%;
    height: 100vh;
    max-height: none;

    padding: 32px 24px;
  }
}

/* =========================
   PRINT VERSION
   ========================= */

@media print {
  body * {
    visibility: hidden;
  }

  .cover-modal,
  .cover-modal * {
    visibility: visible;
  }

  .cover-modal {
    position: static;
    background: none;
  }

  .cover-modal__content {
    width: 100%;
    max-height: none;
    padding: 0;
    transform: none;
  }

  .cover-modal__close,
  .cover-modal__download {
    display: none;
  }
}



