 :root {
    --primary-color: #353f37; /* Основной темный серо-зеленый */
    --secondary-color: #4f8a5a; /* Теплый серо-зеленый для заголовков */
    --accent-color: #7D8E80; /* Нейтральный серо-зеленый для акцентов */
    --bg-light: #F5F5F5; /* Светло-серый фон */
    --bg-dark: #3E4E40; /* Темный серо-зеленый для футера */
    --text-color: #333333; /* Основной цвет текста */
    --light-text: #EAEAEA; /* Светлый текст */
    --border-color: #D9DFD9; /* Светлая серая граница */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Мягкая тень */
--transition: all 0.3s ease;
        } 
@font-face {
  font-family: 'OpenSans';
  src: url('fonts/OpenSans.ttf') format('truetype'),
	url('fonts/OpenSans.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AmbassadoreTypeShura';
  src: url('fonts/ambassadoretypeshura.ttf') format('truetype'),
	url('fonts/ambassadoretypeshura.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
    body {
      font-family: 'OpenSans', sans-serif;
	      background-color: var(--bg-light);
            transition: var(--transition);
            overflow-x: hidden;
	    
    }
.section-title, 
.skills-title, 
.timeline-section .section-title, 
.portfolio-gallery .section-title {
      font-family: 'AmbassadoreTypeShura', sans-serif;
	}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            cursor: none;
        }
		
       .cursor, .cursor-follower {
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: 
        transform 0.2s ease,
        width 0.3s ease,
        height 0.3s ease,
        background-color 0.3s ease,
        border 0.3s ease;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.cursor-follower {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 9998;
}

/* Отключаем стандартный курсор для интерактивных элементов */
a, button, .gallery-item, .burger, .theme-toggle, .social-link, .contact-btn {
    cursor: none !important;
}
      /* Header Navigation */
        header {
        position: fixed;
        top: 15px; /* Отступ сверху */
        left: 50%;
        transform: translateX(-50%);
        width: 40%; 
        max-width: 800px;
        padding: 0.5rem 1rem; /* Уменьшили отступы */
        display: flex;
        justify-content: center; /* Центрируем содержимое */
        align-items: center;
        z-index: 1000;
        background: rgba(255, 248, 225, 0.6);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow);
        transition: var(--transition);
        border-radius: 25px; /* Скругленные углы */
        }
/* Бургер-меню и навигация */
.burger {
    display: none; /* По умолчанию скрыт */
    flex-direction: column;
margin-left: auto;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    z-index: 1001;
    cursor: pointer;
}

.burger div {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Стили для активного состояния бургера */
.burger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.active div:nth-child(2) {
    opacity: 0;
}

.burger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Мобильное меню */
header nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
}

header nav ul {
  display: flex;
  flex-direction: row;   /* горизонтально */
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

header nav ul li { margin: 0; }
      .logo {
  margin-right: 0;          /* было auto — из-за него всё съезжало вправо */
  display: flex;
  align-items: center;
  height: 20px;
  position: relative;
  top: 0;
  transform: none;
  padding-bottom: 0;
}
.logo-img {
    height: 100%; /* Занимает всю высоту контейнера */
    width: auto; /* Ширина подстраивается пропорционально */
    max-height: 20px; /* Ограничение по высоте */
    object-fit: contain; /* Сохраняет пропорции */
	 top: -3px;
}
        nav ul {
            display: flex;
            list-style: none;
	justify-content: center;
        }

        nav ul li {
            margin-left: 1.5rem;
		margin: 0 1.5rem;
        }

        nav ul li a {
            text-decoration: none;
            color: var(--primary-color);
            font-weight: bold;
            font-size: 0.9rem;
            transition: var(--transition);
            position: relative;
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--primary-color);
            transition: var(--transition);
        }

        nav ul li a:hover::after {
            width: 100%;
        }
@media (min-width: 769px) {
	.burger { display: none !important; }
 header nav {
    position: static;
    transform: none;
    width: auto;
    display: flex;
    background: transparent;
    padding: 0;
    box-shadow: none;
    z-index: 1000; /* как в твоих базовых стилях */
  }

  /* пункты меню по центру */
  header {
    justify-content: center;   /* центрируем содержимое в шапке */
    gap: 24px;                  /* расстояние между логотипом и меню */
  }

  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;    /* сами пункты — по центру */
    align-items: center;
    gap: 24px;                  /* интервал между пунктами */
    margin: 0;
    padding: 0;
  }

  /* лёгкий отступ от логотипа, чтобы меню не «липло» */
  .logo { margin-right: 24px; }
	
 .theme-toggle { 
    display: none !important; 
  }
  /* на десктопе ссылки обычного цвета */
  header nav ul li a { color: var(--primary-color); }
}
        .hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 1rem;
    z-index: 1; /* Добавляем z-index */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('homebgpc.gif') center/cover no-repeat;
}

.hero h1 {
    font-family: 'AmbassadoreTypeShura', sans-serif; /* Обновляем название шрифта */
letter-spacing: 0.2rem;
    font-size: 6rem;
    color: #FFFFFF;
    margin-bottom: 2rem;
padding: 20px 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards 1s;
    position: relative; /* Добавляем position */
    z-index: 2; /* Добавляем z-index */
}

.hero p {
    font-size: 1.5rem;
    color: #F3F2EF;
    margin-bottom: 2rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards 1.5s;
    position: relative; /* Добавляем position */
    z-index: 2; /* Добавляем z-index */
}

.contact-btn {
    position: relative; /* Меняем fixed на relative */
    display: inline-block; /* Делаем кнопку inline-block */
    padding: 1rem 2rem;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards 2s;
    z-index: 2;
    margin-top: 1rem; /* Добавляем отступ сверху */
}

/* Добавляем анимацию fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

        .contact-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
            background-color: #C6BDA9;
        }

.section-title, 
.skills-title, 
.timeline-section .section-title, 
.portfolio-gallery .section-title {
	font-family: 'AmbassadoreTypeShura';
letter-spacing: 0.2em;
    font-size: 2rem; 
    margin-bottom: 50px;
    text-align: center;
    width: 100%;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 0;
}


/* === TOOLS: Программы использую === */
.tools-section {
  padding: 90px 20px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ровно 3 колонки на десктопе */
  gap: 18px;
}

.tool-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 18px 18px 22px;
  box-shadow: var(--shadow);
  transition: none;            /* убрали анимацию на hover */
}

/* убираем любое увеличение/усиление тени при наведении */
.tool-card:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.tool-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  /* градиент: тёмный → серо-бежевый */
  background: linear-gradient(135deg, var(--primary-color), #62605b);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
  user-select: none;
}
.tool-icon::after { content: attr(data-letters); font-size: 0.95rem; }

.tool-title h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--primary-color);
}
.tool-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(53,63,55,.06);
  color: var(--primary-color);
  border: 1px solid rgba(53,63,55,.15);
}
/* === НИЖНИЕ ПОДБЛОКИ: языки и нейросети === */
.tools-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.extra-block {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.extra-title {
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: .02em;
  text-transform: none;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-block;
  padding: 7px 14px;
  font-size: .9rem;
  line-height: 1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-color);
  border: 1px solid rgba(53,63,55,.15); /* в стилистике сайта */
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  white-space: nowrap;
}

/* шкала */
.tool-bar { position: relative; height: 16px; margin-top: 10px; }
.tool-track {
  position: absolute; inset: 0;
  display: block; height: 4px; top: 50%; transform: translateY(-50%);
  border-radius: 999px; background: rgba(0,0,0,.08);
}
.tool-fill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 4px; width: 0%;
  border-radius: 999px;
  /* градиент полосы: тёмный → серо-бежевый */
  background: linear-gradient(90deg, var(--primary-color), #C6BDA9);
  transition: width .8s cubic-bezier(.16,1,.3,1);
}
.tool-marker {
  --size: 12px;
  position: absolute; left: 0%; top: 50%; transform: translate(-50%,-50%);
  width: var(--size); height: var(--size);
  border-radius: 50%; background: #fff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  opacity: 0;
  transition: left .9s cubic-bezier(.16,1,.3,1), opacity .4s ease .2s;
}

/* включается, когда карточка видна */
.tool-card.in-view .tool-fill   { width: var(--tool-level, 0%); }
.tool-card.in-view .tool-marker { left: var(--tool-level, 0%); opacity: 1; }

/* подпись с языками и ИИ */
.tools-note {
  margin-top: 18px;
  text-align: center;
  color: var(--text-color);
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}

/* адаптив: 2 колонки на таблетах, 1 — на мобилках */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
.tools-extra { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tools-section { padding: 60px 15px 40px; }
  .tools-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-card { padding: 16px; }
  .tool-icon { width: 42px; height: 42px; border-radius: 10px; }
  .tool-title h3 { font-size: 1rem; }
 .extra-block { padding: 14px; }
  .pill { font-size: .88rem; padding: 7px 12px; }
}

   /* Современный дизайн для секции "Обо мне" */
.about-section {
    padding: 150px 20px 100px; /* Увеличиваем верхний отступ до 150px */
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
        .about-container {
            display: grid;
            grid-template-columns: 30% 60%;
            gap: 60px;
            align-items: center;
        }

        .about-photo {
            width: 100%;
            height: auto;
            border-radius: 5px;
            display: block;
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            transform-origin: center;
        }

        .photo-frame:hover .about-photo {
            transform: scale(1.03) rotate(0.5deg);
        }

        /* Стили для текстового контента */
        .about-content {
            position: relative;
        }

        .about-text {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #444;
            margin-bottom: 30px;
        }

        /* Стили для блока навыков */
		
        .skills-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .skill-tag {
            padding: 8px 16px;
            background: #ffffff;
			color: #444;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 500;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(139, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

 
		.about-text, .timeline-content p, .item-description {
    line-height: 1.8;
}
        /* Projects Section */
        .projects {
            padding: 5rem 2rem;
        }
.project-slider {
    height: 50vh; /* Ровно половина экрана */
    min-height: 400px; /* Минимум для мобильных */
    max-height: 600px; /* Максимум для больших экранов */
    position: relative;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезаем изображения по заданной высоте */
    object-position: center top; /* Фокусируемся на верхней части изображения */
}

/* Фиксируем нижнюю часть без изменений */
.project-content {
    height: auto; /* Автоматическая высота */
    padding: 30px;
    overflow-y: auto; /* Прокрутка если контент не помещается */
}

        .section-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 3rem;
            color: var(--primary-color);
            position: relative;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            overflow-y: auto;
        }

        .modal-content {
            background-color: var(--bg-light);
            margin: 2rem auto;
            max-width: 900px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
            position: relative;
            opacity: 0;
            transform: translateY(-50px);
            transition: all 0.3s ease;
        }

        .modal.active .modal-content {
            opacity: 1;
            transform: translateY(0);
        }
.modal-container {
    max-width: 1200px;
    width: 95%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
}

.project-slider {
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    background: var(--bg-light); /* Фон на случай загрузки */
}
        .modal-slider {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease;
        }

        .modal-slide {
            min-width: 100%;
            height: 100%;
        }

 .slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    flex-shrink: 0;
}

        .modal-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 1rem;
            transform: translateY(-50%);
            z-index: 1;
        }

        .modal-nav-btn {
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .modal-nav-btn:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .modal-body {
            padding: 2rem;
            display: flex;
            flex-wrap: wrap;
        }

        .modal-title {
            flex: 1;
            min-width: 300px;
            margin-bottom: 1rem;
        }

        .modal-description {
            flex: 1;
            min-width: 300px;
            padding-left: 2rem;
        }

        .close-modal {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background-color: var(--primary-color);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
            z-index: 2;
        }

        .close-modal:hover {
            transform: rotate(90deg);
            background-color: #6B0000;
        }
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-phone, .footer-email {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.footer-phone:hover, .footer-email:hover {
    color: #0066ff;
}

.footer-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
	 text-decoration: none;
}

.social-link:hover {
    background-color: #0066ff;
    transform: translateY(-3px);
	 text-decoration: none;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-logo-placeholder {
    width: 150px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 14px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
/* Таймлайн */
.timeline-section {
    padding: 100px 20px;
    overflow: hidden;
}

.timeline-scroll-container {
    overflow: visible;
    padding: 0;
}

.timeline-line {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    z-index: -1;
}

.timeline-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0;
    min-width: auto;
    position: relative;
}

.timeline-item {
    flex: 1;
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.timeline-content .timeline-date {
  margin-left: 0 !important;
}
.timeline-content h3,
.timeline-content p {
  padding-left: 10px; /* совпадает с левым padding у .timeline-date */
}
.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 35px 40px; 
	min-height: 220px;
    min-width: 280px; /* Минимальная ширина плашек */
    width: 100%; /* Занимают всю доступную ширину */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 100%;
    border: 1px solid rgba(139, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px; /* Отступ между датой и заголовком */
    font-size: 0.9rem;
    display: block; /* Изменил на block для переноса на новую строку */
    padding: 5px 10px;
    border-radius: 20px;
	width: fit-content;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    margin-left: 0; /* Сбрасываем отступ */
    padding-left: 0; /* Сбрасываем padding */
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-left: 0; /* Сбрасываем отступ */
    padding-left: 0; /* Сбрасываем padding */
}

/* Стрелки между элементами */
.timeline-arrow {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-arrow {
    opacity: 1;
}
		
		 /* Стили галереи */
.portfolio-gallery {
    padding: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 8px;
    width: 100%;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0;
    overflow: hidden;
     transition: all 0.3s ease;
    height: auto; /* Было 100% - меняем на auto */
    min-height: 650px;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    flex-shrink: 0; /* Запрещаем сжатие контейнера с изображением */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-tag {
    position: absolute;
    top: 15px;
    right: 0;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 200;
    letter-spacing: 0.5px;
    border-radius: 15px 0 0 15px;
    z-index: 2;
}

.item-info {
    padding: 20px;
    color: #333;
    background: white;
    flex-grow: 1; /* Растягиваем блок на доступное пространство */
    display: flex;
    flex-direction: column;
    min-height: 120px; /* Фиксированная минимальная высота */
    justify-content: space-between; /* Прижимаем контент к верху и низу */
    border-top: 1px solid #eee; /* Граница между изображением и текстом */
}

.item-title {
	line-height: 24px;
	text-transform: uppercase;
    margin: 0 0 8px 0;
    color: #222;
	line-height: 1.5;
    margin-bottom: 15px;
    font-size: 1rem;
}

.item-description {
    font-size: 1rem;
    margin: 0;
    color: #666;
    line-height: 1.4;
    flex-grow: 1; /* Описание занимает доступное пространство */
}

/* Стили модального окна */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  overflow-y: auto;
}

.modal-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #000;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s;
}

.close-modal:hover {
  transform: rotate(90deg);
}

/* Стили слайдера */

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.prev-slide {
  left: 20px;
}

.next-slide {
  right: 20px;
}

/* Стили контента проекта */
.project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tag {
  background: #f0f0f0;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
}

.project-description p {
  line-height: 1.6;
}


.project-description a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.3s;
}

.project-description a:hover {
  color: #d32f2f;
}

  .project-slider {
    height: 50vh; /* Фиксированная высота */
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
  }

/* Основные стили подвала */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
    flex-wrap: wrap;
	 display: grid;
    grid-template-columns: 1fr auto; /* Два столбца */
    align-items: start;
    gap: 40px;
    padding: 30px 20px; /* Уменьшили отступы */
}

.footer-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Два столбца внутри левой части */
    gap: 30px;
}

.footer-right {
    justify-content: flex-start; /* Логотип теперь слева (перенесется вправо из-за grid) */
    order: 2; /* Перемещаем вправо */
}

.footer-bottom {
    margin-top: 30px; /* Уменьшили отступ */
    padding-top: 15px; /* Уменьшили высоту подвала */
}

/* Для правильного расположения логотипа справа */
.footer-container {
    grid-template-areas: 
        "content logo"
        "bottom bottom";
}

.footer-left {
    grid-area: content;
}

.footer-right {
    grid-area: logo;
}

.footer-bottom {
    grid-area: bottom;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-phone, .footer-email {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.footer-phone:hover, .footer-email:hover {
    color: #0066ff;
}

.footer-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
	 text-decoration: none;
}

.social-link:hover {
    background-color: #0066ff;
    transform: translateY(-3px);
	 text-decoration: none;
}

.footer-logo-placeholder {
    width: 150px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 14px;
justify-content: flex-end;
}

    .footer-logo-placeholder {
        width: 120px;
        height: 50px;
    }





/* ==================== */
/* MOBILE ADAPTATION (768px и меньше) */
/* ==================== */
@media (max-width: 768px){
  /* 1. Общие стили */
  body {
    font-size: 15px;
    overflow-x: hidden;
  }
  
  * {
    cursor: auto !important;
  }
  .cursor, .cursor-follower {
    display: none;
  }

  /* 2. Шапка */
 header {
    width: 94% !important;     /* было 80% */
    top: 10px;
    padding: 0.7rem 0.8rem !important;
    border-radius: 20px;
    z-index: 2000;             /* ВАЖНО: выше подложки */
  }

  /* подложка — ниже header/nav, чтобы не блокировала клики по меню */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 1500;             /* ниже header(2000) и nav(2200) */
  }
  .nav-overlay.visible { display: block; }

  .burger { position: relative; z-index: 2300; }

  /* выпадашка: делаем шире и поверх подложки */
  header nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(96vw, 640px);   /* шире, чем сам header, и центрировано по экрану */
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    z-index: 2200;             /* выше .nav-overlay */
    background: rgba(34, 40, 38, 0.92);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  header nav.mobile-open { display: flex; }

  /* список — колонкой, по всей ширине выпадашки */
  header nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  header nav ul li { margin: 0; }

  header nav ul li a {
    display: block;
    width: 100%;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
  }
  header nav ul li a::after { display: none; }
  header nav ul li a:hover  { background: rgba(255,255,255,0.12); }
  header nav ul li a:active { transform: scale(0.98); }

  /* на мобилке бургер вправо — логотип «толкает» контент */
  .logo { margin-right: auto; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
  .logo {
    height: 18px;
  }
  
  .burger {
    display: flex !important;
    width: 28px;
    height: 20px;
  }
.theme-toggle { 
    display: none !important; 
  }
  /* 4. Герой */
.hero-background {
    background: 
      linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
      url('homebgmob.gif') center/cover no-repeat;
    background-position: 50% 20%;
	}
  .hero h1 {
    font-size: 3.5rem;
    padding: 10px 20px;
  }
  
  .hero p {
    font-size: 1.1rem;
    padding: 0 15px;
  }
  
  .contact-btn {
    margin-top: 0;
  }

  /* 5. Секции */
	 .section-title, 
  .skills-title, 
  .timeline-section .section-title, 
  .portfolio-gallery .section-title {
    font-size: 1.5rem !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 1.5rem !important;
  }
  .about-section {
    padding: 60px 15px !important;
  }
  
  .about-container {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  /* 6. Таймлайн */
  .timeline-section {
    padding: 60px 15px !important;
  }
  
  .timeline-track {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .timeline-content {
    width: 95% !important;
    padding: 20px !important;
    margin: 0 auto 20px !important;
    min-height: auto !important;
  }
  
  .timeline-item:not(:last-child)::after {
    content: '↓' !important;
    right: 50% !important;
    top: 100% !important;
    transform: translateX(50%) translateY(-50%) !important;
  }

  /* 7. Портфолио */
 .portfolio-gallery { 
	 padding: 40px 15px !important; } 
	.gallery-grid { 
		grid-template-columns: 1fr !important; gap: 20px; 
	} 
	.gallery-item { 
		min-height: 500px !important; /* Увеличиваем минимальную высоту */ 
		width: 100% !important; 
		margin: 0 auto 30px !important; 
	} 
	.image-container { 
		height: 280px !important; 
		 aspect-ratio: 3/4 !important; 
	}

  /* 8. Модальное окно */
.modal, .modal-overlay, .modal-container { z-index: 3000 !important; }

/* Когда открыта модалка — блокируем скролл и прячем шапку */
body.modal-open { overflow: hidden; }
body.modal-open header {
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* На всякий — подложка меню ниже модалки */
.nav-overlay { z-index: 1500; }
	
  .modal-container {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  
  .project-slider {
    height: auto !important;
    min-height: 250px !important;
    max-height: none !important;
	display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .project-content {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
    gap: 15px;
  }
  
  .close-modal {
    top: 10px !important;
    right: 10px !important;
    width: 35px !important;
    height: 35px !important;
  }

  /* 9. Подвал */
  .footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 30px !important;
  }
  
  .footer-left {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
  
  .footer-contacts {
    align-items: center !important;
    margin-bottom: 20px;
  }
  
  .footer-social {
    justify-content: center !important;
    margin-top: 15px;
  }
  
  .footer-right {
    order: 0 !important;
    margin: 0 auto !important;
  }
  
  .footer-bottom {
    margin-top: 20px !important;
    width: 100% !important;
  }
 }
/* Дополнительно для очень маленьких экранов */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .contact-btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

.timeline-content .timeline-date {
  padding-left: 0 !important;         /* раньше было 10px */
  margin-left: 0 !important;
}

.timeline-content > h3,
.timeline-content > p {
  padding-left: 0 !important;         /* на всякий случай перекрываем ранние правила */
  margin-left: 0 !important;
}










































