* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
}

/* Header */
.header {
    position: sticky;
    top: 1rem;
    margin: 1rem auto;
    max-width: 1400px;
    padding: 1rem 2rem;
    background-color: #ffffffe2;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }
  
  /* Контейнер логотип + кнопка */
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
  }
  
  /* Отдельно меню */
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    justify-content: center;
    padding: 0;
    margin-top: 1rem;
  }
  
  .nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }
  
  .logo {
    font-size: 1.25rem;
    font-weight: bold;
    white-space: nowrap;
  }
  
  .contact-btn {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 1.5rem;
    background-image: linear-gradient(100deg, #ff6ec4, #7873f5, #4adede, #ffc371);
    background-size: 300% 300%;
    animation: gradientFlow 6s ease infinite;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.3s;
  }
  
  .contact-btn:hover {
    transform: scale(1.05);
  }
  
  @keyframes gradientFlow {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }



/* Hero Section */
.hero {
    margin: 2rem auto;
    max-width: 1400px;
    border-radius: 20px;
    overflow: hidden;
  }
  
  .hero-background {
    position: relative;
    height: 600px;
    background-image: url('https://cdn.sanity.io/images/r115idoc/production/3293c8139d836a5b0307aefc8c74955984ffda39-3240x2160.png?w=3840&q=75&fit=clip&auto=format'); /* замените на путь к нужному изображению */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1); /* затемнение */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 6rem;
    margin-bottom: 4rem;
    font-weight: 600;
    line-height: 1.1;
  }
  
  /* Для экранов до 768px (планшеты и телефоны) */
  @media (max-width: 768px) {
    .hero-title {
      font-size: 3rem;
      margin-bottom: 2rem;
    }
  }
  
  /* Для совсем маленьких экранов до 480px */
  @media (max-width: 480px) {
    .hero-title {
      font-size: 2.25rem;
      margin-bottom: 1.5rem;
    }
  }
  
  .usp-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: stretch; /* чтобы растянуть карточки по всей ширине */
    max-width: 1200px;
    width: 100%; /* растягиваем контейнер по ширине родителя */
  }
  
  .usp-card {
    background: white;
    color: #111;
    padding: 0.5rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    text-align: left;
    
    display: flex;
    flex-direction: column; /* вертикальный стек */
    
    flex: 1 1 300px;
    min-width: 300px;
  }
  
  .usp-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem; /* отступ между заголовком и описанием */
  }
  
  .usp-icon {
    font-size: 1.4rem;
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  .usp-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
  }
  
  .usp-description {
    font-size: 0.8rem;
    color: #444;
    margin: 0;
  }

  
  
  

/* Sections */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #000;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    background-image: linear-gradient(100deg, #ff6ec4, #7873f5, #4adede, #ffc371);
    background-size: 300% 300%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.project-description {
    color: #6c757d;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    color: #495057;
}

.look-project-btn {
    margin-top: 1rem;
    padding: 0.3rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 1.5rem;
    background-image: linear-gradient(100deg, #ff6ec4, #7873f5, #4adede, #ffc371);
    background-size: 300% 300%;
    animation: gradientFlow 6s ease infinite;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s;
  }
  
  @keyframes gradientFlow {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

/* Calculator */
.calculator {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.calc-section {
    margin-bottom: 2rem;
}

.calc-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000;
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.calc-option {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.calc-option:hover {
    border-color: #007bff;
}

.calc-option.selected {
    color: white;
    border: 2px solid transparent;
    background-image: linear-gradient(100deg, #ff6ec4, #7873f5, #4adede, #ffc371);
    background-size: 300% 300%;
    animation: gradientFlow 30s ease infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

@keyframes gradientFlow {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  .calc-option .option-description {
    font-size: 0.9rem;
    color: #8c8c8c;
    transition: color 0.3s;
}

.calc-option.selected .option-description {
    color: #f7f7f7;
}
.price-display {
    display: flex;
  align-items: flex-start;
  justify-content: space-between;
    background-image: url('https://cdn.sanity.io/images/r115idoc/production/3293c8139d836a5b0307aefc8c74955984ffda39-3240x2160.png?w=3840&q=75&fit=clip&auto=format'); /* замените на путь к нужному изображению */
    background-size: cover;
    background-position: center;
    background-blend-mode: darken;
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    margin-top: 2rem;
    flex-wrap: wrap; /* позволяет адаптироваться на маленьких экранах */
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
   
}

.price-timeline {
    font-size: 1.25rem;
    opacity: 0.9;
}

.price-info {
    flex: 1;
    min-width: 220px;
  }
  
  .price-consult-card {
    background: white;
    color: #111;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    flex: 1;
    min-width: 260px;
  }
  
  .consult-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  .contact-btn {
    padding: 0.5rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 1.5rem;
    background-image: linear-gradient(100deg, #ff6ec4, #7873f5, #4adede, #ffc371);
    background-size: 300% 300%;
    animation: gradientFlow 6s ease infinite;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s;
  }
  
  .contact-btn:hover {
    transform: scale(1.05);
  }

/* Переиспользуем уже готовый стиль кнопки */
.contact-btn {
    padding: 0.5rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 1.5rem;
    background-image: linear-gradient(100deg, #ff6ec4, #7873f5, #4adede, #ffc371);
    background-size: 300% 300%;
    animation: gradientFlow 6s ease infinite;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s;
}

.contact-btn:hover {
    transform: scale(1.05);
}


/* FAQ */
  .faq-section {
    padding: 64px 0;
    background-color: #f9f9f9;
  }
  
  .faq-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 48px;
    text-align: center;
    color: #111;
  }
  
  .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  @media (min-width: 768px) {
    .faq-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .faq-card {
    background-color: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.3s ease;
  }
  
  .faq-card:hover {
    box-shadow: 0 8px 16px radial-gradient(circle at center, #ff6ec4, #7873f5, #4adede);;
  }
  
  .faq-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #222;
  }
  
  .faq-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
  }
  

/* Footer */
.footer {
    background: #000;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

/* Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        transform: none;
    }
    
    .phone-screen {
        width: 210px;
        height: 460px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-options {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ЧАТ ГПТ */
.chatgpt-section {
    padding: 60px 0;
    background-color: #f9f9f9;
  }
  
  .chatgpt-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .chatgpt-box {
    flex: 1 1 45%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  
  .chatgpt-box h3 {
    margin-bottom: 10px;
  }
  
  textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
  }
  
  .chatgpt-submit-btn {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  
  .chatgpt-response {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    background-color: #f0f0f0;
    min-height: 150px;
  }
  


/* Адаптивность для мобилки */
@media (max-width: 768px) {
    .usp-cards {
      flex-wrap: wrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 1rem;
      gap: 1rem;
    }
  
    .usp-card {
      flex: 0 0 85%;
      min-width: 260px;
      max-width: 100%;
      scroll-snap-align: start;
    }
  
    .hero-overlay {
      padding: 1rem;
    }

  .nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-menu {
    flex-direction: column;
    align-items: right;
    gap: 0.5rem;
  }

  .contact-btn {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  .logo {
    font-size: 1rem;
  }

}

  /* Для совсем маленьких экранов */
  @media (max-width: 480px) {
    .usp-card {
      flex: 0 0 95%;
      min-width: 240px;
    }
  
    .hero-title {
      font-size: 3rem;
    }
  
    .header {
      padding: 0.75rem 1rem;
      margin: 0.5rem;
      border-radius: 16px;
    }
  
    .contact-btn {
      font-size: 0.8rem;
      padding: 0.4rem 1.25rem;
    }
  
    .nav-menu {
      gap: 1rem;
      flex-direction: column;
      align-items: flex-start;
    }
  
    .nav {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
  }
  