

/* === Шрифты === */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat/static/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat/static/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

.container{max-width:1100px;margin:0 auto;padding:24px}


/* === Базовые стили === */
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f8f8fa;
  color: #1d1d1f;
  line-height: 1.6;
}

h1, h2, h3, p {
  margin: 0 0 15px 0;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.highlight {
  background: #f0f0f5;
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

/* === Навигация === */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}
nav a {
  font-weight: 500;
  transition: color 0.3s;
}
nav a:hover { color: #007AFF; }
.logo {
  font-size: 1.5em;
  font-weight: 700;
}

/* === Hero === */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}
.hero-content { max-width: 500px; }
.hero h1 { font-size: 2.8em; font-weight: 700; }
.hero h2 { font-size: 1.6em; color: #007AFF; font-weight: 500; }
.hero p  { font-size: 1.1em; color: #333; }

.btn {
  padding: 12px 24px;
  background: #007AFF;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s;
}

.btn-submit {
  font-size: 18px;
  padding: 14px 28px;
}

.btn:hover {
  background: #5AC8FA;
  transform: scale(1.05);
}
.portrait-hero {
  max-width: 350px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* === About + Skills + Video === */
.about-skills {
  background: #fff;
  border-radius: 20px;
  padding: 60px 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.about-text {
  flex: 1 1 400px;
  max-width: 550px;
}
.about-text h2 {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1d1d1f;
}
.about-text p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #333;
  margin-bottom: 25px;
}
.about-video {
  flex: 1 1 350px;
  max-width: 500px;
}
.about-video .video {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-video .video:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* список навыков */
.skills-list { list-style: none; padding: 0; margin: 0; }
.skills-list li {
  margin-bottom: 15px;
  font-size: 1em;
  color: #555;
}
.skills-list li span {
  font-weight: 600;
  color: #007AFF;
}

/* === Skills === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
}
.skill-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: default;
}
.skill-item:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  filter: brightness(1.3);
}
.skills-grid .skill-item:nth-child(1) { background: #ffe0cc; }
.skills-grid .skill-item:nth-child(2) { background: #d6f5ff; }
.skills-grid .skill-item:nth-child(3) { background: #e0e6ff; }
.skills-grid .skill-item:nth-child(4) { background: #fff0b3; }
.skills-grid .skill-item:nth-child(5) { background: #e6ffe6; }

/* === Portfolio === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.portfolio-item {
  background: #fff;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.portfolio-item img {
  max-width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: transform 0.3s;
}
.portfolio-item img:hover { transform: scale(1.05); }

/* === Experience === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th, td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: center;
}
th { background: #007AFF; color: #fff; font-weight: 600; }
tr:nth-child(even) { background: #f0f0f5; }

/* === Contacts === */
form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}
input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
}
button {
  background: #007AFF;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover { background: #5AC8FA; }
.contacts { text-align: center; }
.contacts a:hover { text-decoration: underline; }

/* === Footer === */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #777;
}

/* === Видео === */
.video { display: block; margin: 0 auto; }

/* === Кастомный курсор === */
#cursor-follower {
  width: 20px;
  height: 20px;
  border: 2px solid #007AFF;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, left 0.1s ease, top 0.1s ease;
  z-index: 1000;
}

#cursor-follower.active {
  transform: translate(-50%, -50%) scale(2);
  background: #007aff;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background: #6200EA;
  color: #fff;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.3s;
}
.back-to-top:hover {
  background: #5AC8FA;
  transform: scale(1.1);
}

/* === Адаптив === */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-video, .about-text { max-width: 100%; }
  .skills-list li { font-size: 1.05em; }
}
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; }
  nav ul { flex-direction: column; gap: 15px; }
  .portrait-hero { max-width: 100%; margin-top: 20px; }
  .services-grid, .skills-grid, .portfolio-grid { grid-template-columns: 1fr; }
}

/* Отступы внутри карточки */
.portfolio-item h4 {
  margin-bottom: 8px;
}

.portfolio-item p {
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Цветовые вариации кнопок */

.btn-green {
  background: #34C759;
  color: #fff;
}
.btn-green:hover {
  background: #66D37A;
}

.btn-orange {
  background: #FF9500;
  color: #fff;
}
.btn-orange:hover {
  background: #FFB84D;
}

.btn-github {
  background: #0D1117;
  color: #fff;
}
.btn-github:hover {
  background: #6E7681;
}

