/* Общие стили */
:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
/* Шапка */
.header {
    padding: 20px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.header__social-list {
    display: flex;
    list-style: none;
    gap: 15px;
}

.header__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f7ff;
    transition: var(--transition);
}

.header__social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.header__social-link:hover .header__social-icon {
    fill: white;
}

.header__social-icon {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    transition: var(--transition);
}

/* Герой секция */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--gray);
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  color: #333;
}

h2 {
  /* border-bottom: 2px solid #007BFF; */
  padding-bottom: 10px;
  margin-top: 30px;
  text-align: center;
}

.cases-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.case-block {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.case-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.case-block img {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
}

.case-block h3 {
  margin: 10px 0;
  font-size: 1.2em;
}

.open-modal {
  background: #007BFF;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 5px;
}

.open-modal:hover {
  background: #0056b3;
}

.project-link {
  display: block;
  margin-top: 10px;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  /* Добавлено: */
  padding: 20px;
  overflow: auto;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  /* Добавлено: */
  max-height: 90vh;
  overflow-y: auto;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.modal-content ul {
  text-align: left;
  padding-left: 20px;
}
