* {
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 140px;
}

main {
  margin-bottom: 24px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #C7CCFA 0%, #D1F2EB 100%),
              radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.08) 100%);
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - 140px);
  align-items: center;
  padding: 60px 100px;
  isolation: isolate;
}

.hero-image {
  width: 100%;
  max-width: 600px;
  justify-self: center;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.shapes {
  position: absolute;
  top: -10%;
  right: -5%;
  bottom: -10%;
  left: 40%;
  z-index: -1;
  overflow: visible;
}

.shape {
  position: absolute;
  opacity: 0.3;
  filter: blur(2px);
  animation: morphing 15s ease-in-out infinite;
}

.shape-circle {
  border-radius: 50%;
  background: linear-gradient(135deg, #6f6cff, #28E2C2);
}

.circle-1 { width: 250px; height: 250px; top: 10%; right: 15%; animation-delay: 0s; opacity: 0.25; }
.circle-2 { width: 350px; height: 350px; bottom: 5%; right: -5%; background: linear-gradient(135deg, #8f9bff, #7DEAD7); animation-delay: -5s; opacity: 0.2; }
.circle-3 { width: 180px; height: 180px; top: 40%; right: 35%; background: linear-gradient(135deg, #28E2C2, #6f6cff); animation-delay: -2s; opacity: 0.3; }

.shape-triangle {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 170px solid rgba(111,108,255,0.2);
  transform-origin: center;
}

.triangle-1 { top: 15%; right: 25%; transform: rotate(15deg); animation-delay: -3s; }
.triangle-2 { top: 60%; right: 10%; border-bottom-color: rgba(40,226,194,0.2); transform: rotate(45deg); animation-delay: -7s; }

.shape-square {
  background: linear-gradient(45deg, rgba(111,108,255,0.2), rgba(40,226,194,0.2));
  border-radius: 20px;
  transform-origin: center;
}

.square-1 { width: 150px; height: 150px; top: 25%; right: 45%; transform: rotate(10deg); animation-delay: -1s; }
.square-2 { width: 200px; height: 200px; bottom: 15%; right: 25%; transform: rotate(30deg); background: linear-gradient(135deg, rgba(143,155,255,0.15), rgba(125,234,215,0.15)); animation-delay: -4s; }

.shape-rhombus {
  background: rgba(111,108,255,0.2);
  transform: rotate(45deg) scale(0.8);
  border-radius: 10px;
}

.rhombus-1 { width: 120px; height: 120px; top: 70%; right: 40%; background: rgba(40,226,194,0.2); animation-delay: -6s; }
.rhombus-2 { width: 80px; height: 80px; top: 30%; right: 60%; background: rgba(143,155,255,0.25); animation-delay: -2s; }

.shape-wavy {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: linear-gradient(135deg, rgba(111,108,255,0.15), rgba(40,226,194,0.15));
  animation: morphingBlob 18s ease-in-out infinite;
}

.wavy-1 { width: 300px; height: 200px; top: -5%; right: 0; animation-delay: 0s; }
.wavy-2 { width: 250px; height: 350px; bottom: 0; right: 20%; background: linear-gradient(135deg, rgba(143,155,255,0.1), rgba(125,234,215,0.1)); animation-delay: -8s; animation-duration: 22s; }
.wavy-3 { width: 180px; height: 280px; top: 40%; right: 50%; background: linear-gradient(135deg, rgba(40,226,194,0.15), rgba(111,108,255,0.15)); animation-delay: -3s; }

.floating-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(111,108,255,0.4);
  border-radius: 50%;
  animation: dotFloat 12s ease-in-out infinite;
}

.dot-1 { top: 15%; right: 30%; animation-delay: 0s; }
.dot-2 { top: 35%; right: 15%; width: 12px; height: 12px; background: rgba(40,226,194,0.5); animation-delay: -3s; }
.dot-3 { top: 55%; right: 45%; width: 6px; height: 6px; animation-delay: -7s; }
.dot-4 { top: 75%; right: 20%; width: 10px; height: 10px; background: rgba(143,155,255,0.5); animation-delay: -2s; }
.dot-5 { top: 85%; right: 55%; animation-delay: -9s; }
.dot-6 { top: 25%; right: 70%; width: 14px; height: 14px; background: rgba(125,234,215,0.4); animation-delay: -5s; }

@keyframes morphing {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  33% { transform: translateY(-20px) rotate(5deg) scale(1.1); }
  66% { transform: translateY(15px) rotate(-5deg) scale(0.9); }
}

@keyframes morphingBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translateY(0) scale(1); }
  33% { border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%; transform: translateY(-15px) scale(1.05); }
  66% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; transform: translateY(15px) scale(0.95); }
}

@keyframes dotFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

.card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  padding: 48px 52px;
  border-radius: 28px;
  max-width: 560px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
  z-index: 2;
}

.features {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 16px;
  color: #2f2f55;
}

.card h1 {
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.card p {
  font-size: 18px;
  color: #333;
  margin-bottom: 32px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: linear-gradient(90deg, #28E2C2, #7DEAD7);
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(40,226,194,0.45), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: 0.2s;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(40,226,194,0.55), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ===== О ПРОЕКТЕ ===== */
.about-project {
  padding: 80px 100px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  margin: 60px 80px 0;
  border-radius: 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.about-project h2 {
  font-size: 42px;
  font-weight: 800;
  color: #1f1f3a;
  margin: 0 0 20px;
  text-align: center;
}

.project-subhead {
  text-align: center;
  font-size: 20px;
  color: #6f6cff;
  font-weight: 600;
  margin-bottom: 50px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.project-info {
  background: white;
  padding: 40px;
  border-radius: 32px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.project-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: #6f6cff;
  margin: 30px 0 20px;
}

.project-info h3:first-of-type {
  margin-top: 0;
}

.project-info p {
  font-size: 17px;
  color: #2d2d4a;
  line-height: 1.7;
  margin: 15px 0;
}

.project-info strong {
  color: #6f6cff;
}

.quote-block {
  background: rgba(111,108,255,0.1);
  border-left: 4px solid #6f6cff;
  padding: 20px 25px;
  border-radius: 16px;
  margin: 30px 0;
}

.quote-block p {
  margin: 0;
  font-style: italic;
}

.feature-list {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
}

.feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-text p {
  margin: 0;
  color: #2d2d4a;
  line-height: 1.6;
}

.feature-text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1f1f3a;
  margin-bottom: 8px;
}

.project-photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.photo-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.photo-card img {
  width: 100%;
  display: block;
}

.portrait-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.portrait-card:first-child img,
.portrait-card:last-child img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.photo-label {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #1f1f3a;
  font-size: 14px;
  background: white;
}

.big-preview {
  margin-top: 20px;
}

.big-preview .photo-card {
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.big-preview .photo-label {
  padding: 16px;
  font-size: 16px;
  background: #f8f9ff;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  background: white;
  padding: 25px 20px;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(111,108,255,0.15);
}

.stat-item .number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #6f6cff;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 14px;
  color: #4a4a6a;
  line-height: 1.4;
}

/* ===== АДАПТИВНАЯ ВЕРСТКА ===== */

/* Планшеты (768px - 1100px) */
@media (max-width: 1100px) {
  .hero {
    padding: 40px;
  }
  .about-project {
    padding: 60px;
    margin: 40px 16px 0;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .shapes {
    opacity: 0.4;
  }
  .hero-image {
    max-width: 350px;
  }
}

/* Телефоны (до 768px) */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 20px;
    min-height: auto;
  }
  .hero-image {
    display: none;
  }
  .card {
    padding: 30px 20px;
    max-width: 100%;
  }
  .card h1 {
    font-size: 24px;
  }
  .card p {
    font-size: 16px;
  }
  .about-project {
    padding: 30px 20px;
    margin: 30px 15px 0;
  }
  .about-project h2 {
    font-size: 28px;
  }
  .project-subhead {
    font-size: 16px;
  }
  .project-info {
    padding: 20px;
  }
  .project-info h3 {
    font-size: 22px;
  }
  .project-info p {
    font-size: 15px;
  }
  .project-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .stat-item {
    padding: 15px;
  }
  .stat-item .number {
    font-size: 28px;
  }
  .photo-row {
    grid-template-columns: 1fr;
  }
  .shapes {
    display: none;
  }
  .big-preview .photo-label {
    font-size: 12px;
  }
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
  .hero {
    padding: 15px;
  }
  .card {
    padding: 20px 15px;
  }
  .card h1 {
    font-size: 20px;
  }
  .card p {
    font-size: 14px;
  }
  .features li {
    font-size: 14px;
  }
  .cta {
    padding: 10px 20px;
    font-size: 14px;
  }
  .about-project {
    padding: 20px 15px;
  }
  .about-project h2 {
    font-size: 24px;
  }
  .project-info {
    padding: 15px;
  }
  .project-info h3 {
    font-size: 18px;
  }
  .quote-block {
    padding: 15px;
  }
  .photo-label {
    font-size: 10px;
  }
}