/* ====================================================================
   Персональный сайт Георгия Брюзгина — доработки поверх Yesex v1.0
   ==================================================================== */

/* ---------- 1. Главное фото ---------- */
.hero-bg.bg-img-SINGLE {
  background-image: url(../img/background/SINGLE-bg-desktop.jpg);  /* левая «пустая» часть осветлена — через неё просвечивает имя */
  background-position: 72% center;
}
.hero-fullscreen.overlay-dark-20:before { background: rgba(0, 0, 0, 0); }

/* ---------- 2. Боковое поле с именем (расширено) ---------- */
.upper-page-left { width: 52%; }
@media all and (min-width: 1920px) { .upper-page-left { width: 50%; } }
@media only screen and (max-width: 1200px) { .upper-page-left { width: 54%; } }

.upper-page-left .center-container-home { padding: 0 3%; box-sizing: border-box; }

#hero-name.page-title-content {
  font-size: 11vw;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 auto;
  padding: 0.06em 0.12em 0.06em 0;
  overflow: visible;
}
#hero-name .name-line { display: block; white-space: nowrap; overflow: visible; padding-right: .1em; }
.upper-page-left .page-title, .upper-page-left .page-title-content { overflow: visible; }

/* ---------- 3. Логотип BRYUZGIN ---------- */
.logo {
  width: auto;
  height: auto;
  background: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.logo:hover { color: #5ed36d; }
@media only screen and (max-width: 640px) { .logo { font-size: 17px; letter-spacing: .26em; } }

/* ---------- 4. Соцсеть слева: VK боком, как в оригинале, по центру ---------- */
.left-element { z-index: 2; }
.left-element a.social-link,
.left-element a.social-link:hover { pointer-events: auto; }
.left-element a.social-link { display: inline-flex; align-items: center; color: #999; transition: color .3s ease; }
.left-element a.social-link svg { width: 17px; height: 17px; fill: #5ed36d; margin-right: 10px; flex: none; }
.left-element a.social-link span { color: inherit; padding: 0; }
.left-element a.social-link:hover { color: #fff; }
/* центрирование: поворот вокруг центра, середина — на 50% высоты экрана */
.left-element,
.left-element.left-position {
  left: 30px;
  top: 50%;
  margin: 0;
  transform-origin: center center;
}
.left-element { transform: translate(-50%, -50%) rotate(-90deg); }
.left-element.left-position { transform: translate(-50%, -50%) translateX(-200px) rotate(-90deg); }
.left-element li { padding-left: 0; }

/* ---------- 5. Нижнее меню без Instagram ---------- */
.contact { right: 24px; }
@media all and (min-width: 1920px) { .contact { right: 34px; } }
@media only screen and (max-width: 1200px) { .contact { right: 24px; } }
@media only screen and (max-width: 995px) { .contact { right: 14px; } }

/* ---------- 6. Контакты ---------- */
.contact-links { margin: 0 0 0 24px; padding-right: 24px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid #e3e3e3;
  color: #2e2e2e;
  text-decoration: none;
  transition: all .4s ease;
}
.contact-link:first-child { border-top: 1px solid #e3e3e3; }
.contact-link:hover { padding-left: 14px; color: #5ed36d; text-decoration: none; }
.contact-link-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s ease;
}
.contact-link:hover .contact-link-icon { background: #5ed36d; }
.contact-link-icon svg { width: 26px; height: 26px; fill: currentColor; }
.contact-link-text {
  flex: 1;
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.1;
}
.contact-link-text small {
  display: block;
  margin-bottom: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.contact-link-arrow { font-size: 26px; transition: transform .4s ease; }
.contact-link:hover .contact-link-arrow { transform: translateX(6px); }
@media only screen and (max-width: 640px) {
  .contact-link-text { font-size: 21px; }
  .contact-link-icon { flex-basis: 44px; width: 44px; height: 44px; }
}

/* ---------- 7. Мобильная версия главной ---------- */
@media only screen and (max-width: 995px) {
  .hero-bg.bg-img-SINGLE { background-image: url(../img/background/SINGLE-bg.jpg); background-position: 68% center; }
  .upper-page-left {
    position: absolute;
    left: 0; right: 0; top: 38%; bottom: auto;
    width: 100%;
    height: 62%;
    background: linear-gradient(to top, rgba(0,0,0,.92) 18%, rgba(0,0,0,0) 100%);
    mix-blend-mode: normal;
    z-index: 1;
  }
  .upper-page-left .center-container-home { padding: 0 0 56px 0; }
  .upper-page-left .center-block-home { vertical-align: bottom; }
  #hero-name.page-title-content-dark {
    color: #fff;
    background: transparent;
    mix-blend-mode: normal;
    text-align: left;
    padding-left: 22px;
  }
}

/* ---------- 9. Контакты: выравнивание и цвет ---------- */
.contact-links a.contact-link,
.contact-links a.contact-link:visited { color: #2e2e2e; text-align: left; }
.contact-links a.contact-link:hover { color: #5ed36d; }


/* ---------- 10. Образование ---------- */
#education-lifting { height: 680px; max-height: calc(100vh - 80px); }
#education-lifting .all-lifting-inner { overflow-y: auto; overflow-x: hidden; }
@media only screen and (max-width: 995px) { #education-lifting { height: 100%; max-height: none; } }
.education-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 0 48px; padding: 4px 24px 24px 0; }
@media only screen and (max-width: 995px) { .education-grid { grid-template-columns: 1fr; padding: 8px 15px 30px; } }
.education-block .the-overline { margin: 14px 0 12px; }
.education-list { list-style: none; margin: 0; padding: 0; }
.education-list-2col { column-count: 2; column-gap: 32px; }
@media only screen and (max-width: 640px) { .education-list-2col { column-count: 1; } }
.education-list li {
  position: relative;
  break-inside: avoid;
  padding: 7px 0 7px 18px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: #2e2e2e;
  border-bottom: 1px solid #ececec;
}
.education-list li:before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 2px;
  background: #5ed36d;
}

/* заголовок «Образование» длиннее остальных — чуть меньше кегль, чтобы поместился */
h1.post-title.post-title-services-main-title { font-size: 64px; }
@media all and (min-width: 1920px) { h1.post-title.post-title-services-main-title { font-size: 104px; } }
@media only screen and (max-width: 1200px) { h1.post-title.post-title-services-main-title { font-size: 50px; } }
@media only screen and (max-width: 995px) { h1.post-title.post-title-services-main-title { font-size: 46px; } }
@media only screen and (max-width: 400px) { h1.post-title.post-title-services-main-title { font-size: 38px; } }


/* ---------- 11. Лоадер строго по центру экрана ---------- */
#preloader .loader {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: -23px 0 0 -23px;
}
.loader span { border-top-color: rgba(94, 211, 109, .9); }

/* ---------- 12. Курсы повышения квалификации (дополнительный блок) ---------- */
.education-block-courses { grid-column: 1 / -1; margin-top: 34px; }
.education-block-courses .education-list li { font-size: 13px; color: #555; }
.education-block-courses .education-list li:before { background: #c9c9c9; }
