/** 
* Template Name: Personal - v4.3.0
* Template URL: https://bootstrapmade.com/personal-free-resume-bootstrap-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  background-color: #040404;
  color: #fff;
  position: relative;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  background: #040404 url("../img/bg.jpg") top right no-repeat;
  background-size: cover;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: -1;
}

.tg-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000000;
}

.tg-page::before {
  content: "";
  position: fixed;
  background: #ffffff; 
  background-size: cover;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: -1;
}
.tg-page h3 {
  font-weight: bold;
  text-align: left;
}

@media (min-width: 1024px) {
  body::before { background-attachment: fixed; }
}

a { color: #35e888; text-decoration: none; }
a:hover { color: #35e888; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { font-family: "Raleway", sans-serif; }

.tg-page {
  padding-left: 20px; 
  padding-right: 20px;
  padding-top: 50px;  
  padding-bottom: 50px; 
  text-align: left;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.tgcontainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  max-width: 600px; 
  text-align: left; 
  color: rgb(0, 0, 0); 
}

/* 🔧 ВАЖНО: убрали кастомный flex для .container, чтобы не ломать Bootstrap-сетку */
/* Если где-то нужен flex-контейнер, создай отдельный класс и используй его точечно */
/* .container { }  — пусть остаётся «как в Bootstrap» */

.button-container { text-align: center; margin-bottom: 20px; }

.tg-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0088CC;
  color: white;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.tg-button:hover { transform: scale(1.3); color: white; }

#header {
  transition: ease-in-out 0.3s;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 997;
  overflow-y: auto;
}
#header * { transition: ease-in-out 0.3s; }

#header h1 {
  font-size: 48px; margin: 0; padding: 0; line-height: 1; font-weight: 700; font-family: "Poppins", sans-serif;
}
#header h1 a, #header h1 a:hover { color: #fff; line-height: 1; display: inline-block; }

#header h2 { font-size: 24px; margin-top: 20px; color: rgba(255, 255, 255, 0.8); }
#header h2 span { color: #fff; border-bottom: 2px solid #FF3334; padding-bottom: 6px; }

#header img { padding: 0; margin: 0; }

#header .social-links { margin-top: 40px; display: flex; }
#header .social-links a {
  font-size: 16px; display: flex; justify-content: center; align-items: center;
  background: rgba(255, 255, 255, 0.1); color: #fff; line-height: 1; margin-right: 8px;
  border-radius: 50%; width: 40px; height: 40px;
}
#header .social-links a:hover { background: #FF3334; }

@media (max-width: 992px) {
  #header h1 { font-size: 36px; }
  #header h2 { font-size: 20px; line-height: 30px; }
  #header .social-links { margin-top: 15px; }
  #header .container { display: flex; flex-direction: column; align-items: center; }
}
@media (max-width: 768px) {
  .tg-button { margin-left: auto; margin-right: auto; margin-top: 20px; }
}

/* Header Top */
#header.header-top {
  height: 80px; position: fixed; left: 0; top: 0; right: 0; background: rgba(0, 0, 0, 0.9);
}
#header.header-top .social-links, #header.header-top h2 { display: none; }
#header.header-top h1 { margin-right: auto; font-size: 36px; }
#header.header-top .container { display: flex; align-items: center; }
#header.header-top .navbar { margin: 0; }
@media (max-width: 768px) {
  #header.header-top { height: 60px; }
  #header.header-top h1 { font-size: 26px; }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar { padding: 0; margin-top: 35px; }
.navbar ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
.navbar li { position: relative; }
.navbar li + li { margin-left: 30px; }

.navbar a, .navbar a:focus {
  display: flex; align-items: center; justify-content: space-between; padding: 0;
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 400;
  color: rgba(255, 255, 255, 0.7); white-space: nowrap; transition: 0.3s;
}
.navbar a i, .navbar a:focus i { font-size: 12px; line-height: 0; margin-left: 5px; }

.navbar a:before {
  content: ""; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
  background-color: #FF3334; visibility: hidden; transition: all 0.3s ease-in-out 0s;
}
.navbar a:hover:before, .navbar li:hover > a:before, .navbar .active:before { visibility: visible; width: 25px; }
.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a { color: #fff; }

/* Mobile Navigation */
.mobile-nav-toggle {
  color: #fff; font-size: 28px; cursor: pointer; display: none; line-height: 0; transition: 0.5s;
  position: fixed; right: 15px; top: 15px;
}
@media (max-width: 991px) { .mobile-nav-toggle { display: block; } .navbar ul { display: none; } }

.navbar-mobile {
  position: fixed; overflow: hidden; top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9); transition: 0.3s; z-index: 999; margin-top: 0;
}
.navbar-mobile .mobile-nav-toggle { position: absolute; top: 15px; right: 15px; }
.navbar-mobile ul {
  display: block; position: absolute; top: 55px; right: 15px; bottom: 45px; left: 15px;
  padding: 10px 0; overflow-y: auto; transition: 0.3s; border: 2px solid rgba(255, 255, 255, 0.2);
}
.navbar-mobile li { padding: 12px 20px; }
.navbar-mobile li + li { margin: 0; }
.navbar-mobile a { font-size: 16px; position: relative; }

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  overflow: hidden; position: absolute; width: 100%; top: 140px; bottom: 100%;
  opacity: 0; transition: ease-in-out 0.4s; z-index: 2;
}
section.section-show { top: 100px; bottom: auto; opacity: 1; padding-bottom: 45px; }
section .container { background: rgba(0, 0, 0, 0.9); padding: 30px; }

@media (max-width: 768px) {
  section { top: 120px; }
  section.section-show { top: 80px; }
}

.section-title h2 {
  font-size: 14px; font-weight: 500; padding: 0; line-height: 1px; margin: 0 0 20px 0;
  letter-spacing: 2px; text-transform: uppercase; color: #aaaaaa; font-family: "Poppins", sans-serif;
}
.section-title h2::after {
  content: ""; width: 120px; height: 1px; display: inline-block; background: #FF3334; margin: 4px 10px;
}
.section-title p {
  margin: -15px 0 15px 0; font-size: 36px; font-weight: 700; text-transform: uppercase;
  font-family: "Poppins", sans-serif; color: #fff;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-me .content h3 { font-weight: 700; font-size: 26px; color: #FF3334; }
.about-me .content ul { list-style: none; padding: 0; }
.about-me .content ul li { margin-bottom: 20px; display: flex; align-items: center; }
.about-me .content ul strong { margin-right: 10px; }
.about-me .content ul i { font-size: 16px; margin-right: 5px; color: #FF3334; line-height: 0; }
.about-me .content p:last-child { margin-bottom: 0; }

/*--------------------------------------------------------------
# Counts
--------------------------------------------------------------*/
.counts { padding: 70px 0 60px; }
.counts .count-box {
  padding: 30px 30px 25px 30px; width: 100%; position: relative; text-align: center;
  background: rgba(255, 255, 255, 0.08);
}
.counts .count-box i {
  position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
  font-size: 24px; background: rgba(255, 255, 255, 0.1); padding: 12px; color: #FF3334; border-radius: 50px; line-height: 0;
}
.counts .count-box span { font-size: 36px; display: block; font-weight: 600; color: #fff; }
.counts .count-box p { padding: 0; margin: 0; font-family: "Raleway", sans-serif; font-size: 14px; }

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .progress { height: 60px; display: block; background: none; border-radius: 0; }
.skills .progress .skill {
  padding: 10px 0; margin: 0; text-transform: uppercase; display: block; font-weight: 600;
  font-family: "Poppins", sans-serif; color: #fff;
}
.skills .progress .skill .val { float: right; font-style: normal; }
.skills .progress-bar-wrap { background: rgba(255, 255, 255, 0.2); }
.skills .progress-bar { width: 1px; height: 10px; transition: .9s; background-color: #FF3334; }

/*--------------------------------------------------------------
# Interests
--------------------------------------------------------------*/
.interests .icon-box {
  display: flex; align-items: center; padding: 20px; background: rgba(255, 51, 55, 0.08);
  transition: ease-in-out 0.3s;
}
.interests .icon-box i { font-size: 32px; padding-right: 10px; line-height: 1; }
.interests .icon-box h3 { font-weight: 700; margin: 0; padding: 0; line-height: 1; font-size: 16px; color: #fff; }
.interests .icon-box:hover { background: rgba(255, 51, 55, 0.12); }

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonial-item { box-sizing: content-box; min-height: 320px; }
.testimonials .testimonial-item .testimonial-img {
  width: 90px; border-radius: 50%; margin: -40px 0 0 40px; position: relative; z-index: 2;
  border: 6px solid rgba(255, 255, 255, 0.12);
}
.testimonials .testimonial-item h3 { font-size: 18px; font-weight: bold; margin: 10px 0 5px 45px; color: #fff; }
.testimonials .testimonial-item h4 { font-size: 14px; color: #999; margin: 0 0 0 45px; }
.testimonials .testimonial-item .quote-icon-left, .testimonials .testimonial-item .quote-icon-right {
  color: rgba(255, 255, 255, 0.25); font-size: 26px;
}
.testimonials .testimonial-item .quote-icon-left { display: inline-block; left: -5px; position: relative; }
.testimonials .testimonial-item .quote-icon-right { display: inline-block; right: -5px; position: relative; top: 10px; }
.testimonials .testimonial-item p {
  font-style: italic; margin: 0 15px; padding: 20px 20px 60px; background: rgba(255, 255, 255, 0.1);
  border-radius: 6px; position: relative; z-index: 1;
}
.testimonials .swiper-pagination { margin-top: 20px; position: relative; }
.testimonials .swiper-pagination .swiper-pagination-bullet { width: 12px; height: 12px; opacity: 1; background-color: rgba(255, 255, 255, 0.3); }
.testimonials .swiper-pagination .swiper-pagination-bullet-active { background-color: #FF3334; }

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px; font-weight: 700; margin-top: 20px; margin-bottom: 20px; color: #fff;
}
.resume .resume-item {
  padding: 0 0 20px 20px; margin-top: -2px; border-left: 2px solid rgba(255, 255, 255, 0.2); position: relative;
}
.resume .resume-item h4 {
  line-height: 18px; font-size: 18px; font-weight: 600; text-transform: uppercase; font-family: "Poppins", sans-serif;
  color: #FF3334; margin-bottom: 10px;
}
.resume .resume-item h5 {
  font-size: 16px; background: rgba(255, 255, 255, 0.15); padding: 5px 15px; display: inline-block; font-weight: 600; margin-bottom: 10px;
}
.resume .resume-item ul { padding-left: 20px; }
.resume .resume-item ul li { padding-bottom: 10px; }
.resume .resume-item:last-child { padding-bottom: 0; }
.resume .resume-item::before {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50px; left: -9px; top: 0;
  background: #FF3334; border: 2px solid #FF3334;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  text-align: center; background: rgba(204, 204, 204, 0.1);
  padding: 80px 20px; transition: all ease-in-out 0.3s;
}
.services .icon-box .icon {
  margin: 0 auto 20px; width: 64px; height: 64px; background: #FF3334; border-radius: 5px;
  transition: all .3s ease-out 0s; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d;
}
.services .icon-box .icon i { color: #fff; font-size: 28px; }
.services .icon-box .icon::before {
  position: absolute; content: ''; left: -8px; top: -8px; height: 100%; width: 100%;
  background: rgba(255, 51, 52, 0.15); border-radius: 5px; transition: all .3s ease-out 0s; transform: translateZ(-1px);
}
.services .icon-box h4 { font-weight: 700; margin: 15px 0; font-size: 18px; }
.services .icon-box h4 a { color: #fff; }
.services .icon-box p { line-height: 24px; font-size: 14px; margin-bottom: 0; }
.services .icon-box:hover { background: #FF3334; border-color: #FF3334; }
.services .icon-box:hover .icon { background: #fff; }
.services .icon-box:hover .icon i { color: #FF3334; }
.services .icon-box:hover .icon::before { background: #FF3334; }
.services .icon-box:hover h4 a, .services .icon-box:hover p { color: #fff; }

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item { margin-bottom: 30px; }
.portfolio #portfolio-flters {
  padding: 2px 15px; margin: 0 auto 15px; list-style: none; text-align: center; border-radius: 50px;
}
.portfolio #portfolio-flters li {
  cursor: pointer; display: inline-block; padding: 8px 16px 10px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, 0.1); margin: 0 3px 10px; transition: all 0.3s ease-in-out; border-radius: 4px;
}
.portfolio #portfolio-flters li:hover, .portfolio #portfolio-flters li.filter-active { background: #FF3334; }
.portfolio #portfolio-flters li:last-child { margin-right: 0; }

.portfolio .portfolio-wrap {
  transition: 0.3s; position: relative; overflow: hidden; z-index: 1; background: rgba(0, 0, 0, 0.6);
}
.portfolio .portfolio-wrap::before {
  content: ""; background: rgba(0, 0, 0, 0.6); position: absolute; left: 30px; right: 30px; top: 30px; bottom: 30px;
  transition: all ease-in-out 0.3s; z-index: 2; opacity: 0;
}
.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0; position: absolute; inset: 0; text-align: center; z-index: 3; transition: all ease-in-out 0.3s;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.portfolio .portfolio-wrap .portfolio-info::before,
.portfolio .portfolio-wrap .portfolio-info::after {
  display: block; content: ""; width: 48px; height: 48px; position: absolute; transition: all 0.5s ease 0s; z-index: 9994;
}
.portfolio .portfolio-wrap .portfolio-info::before { top: 35px; left: 35px; border-top: 3px solid #fff; border-left: 3px solid #fff; }
.portfolio .portfolio-wrap .portfolio-info::after  { bottom: 35px; right: 35px; border-bottom: 3px solid #fff; border-right: 3px solid #fff; }
.portfolio .portfolio-wrap .portfolio-info h4 { font-size: 20px; color: #fff; font-weight: 600; }
.portfolio .portfolio-wrap .portfolio-info p  { color: #ffffff; font-size: 14px; text-transform: uppercase; margin: 0; }
.portfolio .portfolio-wrap .portfolio-links { text-align: center; z-index: 4; }
.portfolio .portfolio-wrap .portfolio-links a { color: #fff; margin: 0 2px; font-size: 28px; display: inline-block; transition: 0.3s; }
.portfolio .portfolio-wrap .portfolio-links a:hover { color: #63eda3; }
.portfolio .portfolio-wrap:hover::before { inset: 0; opacity: 1; }
.portfolio .portfolio-wrap:hover .portfolio-info { opacity: 1; }
.portfolio .portfolio-wrap:hover .portfolio-info::before { top: 15px; left: 15px; }
.portfolio .portfolio-wrap:hover .portfolio-info::after  { bottom: 15px; right: 15px; }

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px; background: rgba(0, 0, 0, 0.8); position: fixed; inset: 0; overflow-y: auto;
}
.portfolio-details .container { padding-top: 20px; padding-bottom: 40px; }
.portfolio-details .portfolio-title { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.portfolio-details .portfolio-info { padding-top: 45px; }
.portfolio-details .portfolio-info h3 { font-size: 22px; font-weight: 400; margin-bottom: 20px; }
.portfolio-details .portfolio-info ul { list-style: none; padding: 0; font-size: 15px; }
.portfolio-details .portfolio-info ul li + li { margin-top: 10px; }
.portfolio-details .portfolio-info p { font-size: 15px; padding: 15px 0 0 0; }
@media (max-width: 992px) { .portfolio-details .portfolio-info { padding-top: 20px; } }
.portfolio-details .swiper-pagination { margin-top: 20px; position: relative; }
.portfolio-details .swiper-pagination .swiper-pagination-bullet { width: 12px; height: 12px; opacity: 1; background-color: rgba(255, 255, 255, 0.3); }
.portfolio-details .swiper-pagination .swiper-pagination-bullet-active { background-color: #FF3334; }

/*--------------------------------------------------------------
# YouTube
--------------------------------------------------------------*/ 
.btn-yt {
  background: transparent;
  color: #fff;
  border: 1px solid #ffffff44;
  transition: all 0.3s ease;
}
.btn-yt:hover { background: #dc3545; color: #fff; border-color: #dc3545; }

  #youtube .icon-box h5 {
    text-align: left;
    width: 100%;
  }

/```css
/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  position: relative;
  width: 100%;
  min-height: 112px;
  padding: 28px 30px 28px 96px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.contact .info-box > i.bx {
  position: absolute;
  top: 28px;
  left: 30px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 24px;
  color: #FF3334;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.contact .info-box h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.contact .info-box p {
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  line-height: 24px;
  color: #ffffff;
}

.contact .info-box p a {
  color: #18d26e;
  text-decoration: none;
  transition: 0.3s;
}

.contact .info-box p a:hover {
  color: #FF3334;
}

/* Кнопки соцсетей и каналов */
.contact .contact-social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.contact .contact-social-buttons a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #ffffff;
  line-height: 1;
  text-decoration: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.3s;
}

.contact .contact-social-buttons a:hover {
  color: #ffffff;
  background: #FF3334;
}

.contact .contact-social-buttons i {
  font-size: 16px;
  line-height: 1;
}

.contact .contact-social-buttons span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.contact .contact-social-buttons small {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

/* Если где-то остался старый блок .social-links */
.contact .info-box .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 0;
}

.contact .info-box .social-links a {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  transition: 0.3s;
}

.contact .info-box .social-links a:hover {
  color: #FF3334;
}

/* Адаптив */
@media (max-width: 575px) {
  .contact .info-box {
    min-height: auto;
    padding: 24px 22px 24px 84px;
  }

  .contact .info-box > i.bx {
    top: 24px;
    left: 22px;
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .contact .contact-social-buttons a {
    padding: 8px 12px;
  }
}


/*--------------------------------------------------------------
# Credits
--------------------------------------------------------------*/
.credits {
  position: fixed; right: 0; left: 0; bottom: 0; padding: 15px; text-align: right; font-size: 13px; color: #fff; z-index: 999999;
}
@media (max-width: 992px) {
  .credits { text-align: center; padding: 10px; background: rgba(0, 0, 0, 0.8); }
}
.credits a { color: #FF3334; transition: 0.3s; }
.credits a:hover { color: #fff; }

/*--------------------------------------------------------------
# Custom
--------------------------------------------------------------*/
.services .icon-box:hover svg g { fill: #FF3334; }

/* ===================== SPEAKER: компактные и ровные карточки ===================== */
/* компактнее общий короб только в секции #speaker */
#speaker .icon-box { padding: 16px; background: rgba(255,255,255,0.06); border-radius: 10px; }

/* превью с одинаковой высотой */
.speaker-thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px;
}

/* прижимаем ссылки к низу карточки, выравниваем высоты */
.speaker-card { display: flex; flex-direction: column; height: 100%; }
.speaker-card .card-footer { margin-top: auto; }

/* компактные заголовки/тексты внутри секции спикера */
#speaker h4 { font-size: 18px; margin: 12px 0 6px; }
#speaker p  { margin-bottom: 8px; }

/* адаптивные ролики YouTube */
.ratio iframe { border: 0; width: 100%; height: 100%; border-radius: 8px; }

/* стили для кнопки приглашения в ТГ */
.btn-tg { background:#229ED9; border-color:#229ED9; }
.btn-tg:hover { filter: brightness(1.08); }
