/* ========================================
   БАЗОВЫЕ СТИЛИ И ОБНУЛЕНИЕ
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* ========================================
     FLASH MESSAGES
  ======================================== */
  
  .flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
  }
  
  .flash-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  .flash-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
  }
  
  .flash-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
  }
  
  @keyframes slideIn {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  /* Mobile адаптация Flash Messages */
  @media (max-width: 480px) {
    .flash-messages {
      right: 10px;
      left: 10px;
      max-width: none;
    }
  
    .flash-message {
      padding: 0.8rem 1rem;
      font-size: 0.9rem;
    }
  }
  
  /* ========================================
     НАВИГАЦИЯ
  ======================================== */
  
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 70px;
  }
  
  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .navbar.scrolled .nav-brand .logo {
    color: #2c3e50;
  }
  
  .navbar.scrolled .nav-menu a {
    color: #2c3e50;
  }
  
  .navbar.scrolled .nav-menu a:hover {
    color: #ff6b6b;
  }
  
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-brand .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
  }
  
  .nav-menu {
    display: flex;
    gap: 2rem;
  }
  
  .nav-menu a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-menu a:hover {
    color: #ff6b6b;
  }
  
  /* Mobile адаптация Навигации */
  @media (max-width: 768px) {
    .navbar {
      min-height: 60px;
    }
  
    .nav-menu {
      display: none;
    }
  }
  
  @media (max-width: 480px) {
    .navbar .container {
      padding: 0 15px;
    }
  
    .nav-brand .logo {
      font-size: 1.3rem;
    }
  }
  
  /* ========================================
     HERO SECTION
  ======================================== */
  
  .hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 120px;
  }
  
  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: -2;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
  }
  
  .hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem 0;
  }
  
  .hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .hero-text {
    color: white;
  }
  
  .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    margin-top: 0;
  }
  
  .highlight {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  .hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ffd93d;
  }
  
  .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  .hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    margin-top: 2rem;
  }
  
  .cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
  }
  
  .cta-consultation {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border: none;
  }
  
  .cta-consultation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252 0%, #ff7979 100%);
  }
  
  .cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
  }
  
  .cta-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
  }
  
  .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .code-window {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
  }
  
  
  
  .window-header {
    background: #2d2d2d;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .window-buttons {
    display: flex;
    gap: 0.5rem;
  }
  
  .btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }
  
  .btn.red { background: #ff5f56; }
  .btn.yellow { background: #ffbd2e; }
  .btn.green { background: #27ca3f; }
  
  .window-title {
    color: #ccc;
    font-size: 0.9rem;
  }
  
  .code-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .code-line {
    margin-bottom: 0.5rem;
  }
  
  .keyword { color: #569cd6; }
  .module { color: #4ec9b0; }
  .function { color: #dcdcaa; }
  .variable { color: #9cdcfe; }
  .string { color: #ce9178; }
  .comment { color: #6a9955; }
  
  .scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
  }
  
  .scroll-arrow {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  /* ========================================
КНОПКИ С АНИМАЦИЯМИ
======================================== */


.cta-consultation {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-consultation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cta-consultation:hover::before {
    left: 100%;
}

.cta-consultation:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252 0%, #ff7979 100%);
}

.cta-consultation:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}
  
  /* Mobile адаптация Hero Section */
  @media (max-width: 768px) {
    .hero-section {
      padding-top: 80px;
    }
  
    .hero-content {
      padding: 4rem 0 3rem 0;
    }
  
    .hero-content .container {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }
  
    .hero-title {
      font-size: 2.5rem;
      margin-top: 10px;
    }
  
    .hero-stats {
      justify-content: center;
      flex-wrap: wrap;
      gap: 1rem;
    }
  
    .stat-item {
      min-width: 120px;
    }
  
    .hero-cta {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      margin-bottom: 5rem;
    }
  
    .cta-primary, .cta-secondary {
      width: 100%;
      max-width: 280px;
      text-align: center;
      padding: 1rem 1.5rem;
      font-size: 1rem;
    }
  
    .hero-image {
      display: none;
    }
  
    .scroll-indicator {
      display: none;
    }
  }
  
  @media (max-width: 480px) {
    .hero-cta {
      margin-bottom: 6rem;
    }
  
    .hero-content {
      padding: 3rem 0 2rem 0;
    }
  
    .hero-title {
      font-size: 2rem;
      line-height: 1.1;
      margin-top: 10px;
    }
  
    .hero-subtitle {
      font-size: 1rem;
      margin-top: 1rem;
    }
  
    .hero-stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      justify-items: center;
    }
  
    .stat-number {
      font-size: 1.5rem;
    }
  
    .stat-label {
      font-size: 0.8rem;
    }
  
    .cta-primary, .cta-secondary {
      padding: 0.9rem 1.5rem;
      font-size: 0.95rem;
      max-width: 250px;
    }
  
    .scroll-indicator {
      display: none;
    }
  }
  
/* ========================================
КАРТОЧКИ УСЛУГ С АНИМАЦИЯМИ
======================================== */

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card:hover::before {
    height: 8px;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}



.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.service-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.service-features {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.service-features li {
    padding: 0.3rem 0;
    color: #666;
    position: relative;
    padding-left: 1.2rem;
    transition: color 0.3s ease;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.service-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

.service-duration {
    color: #6c757d;
    font-size: 0.9rem;
}

  /* ========================================
     ОБЩИЕ СТИЛИ СЕКЦИЙ
  ======================================== */
  
  section {
    padding: 2rem 0;
  }
  
  h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
  }
  
  /* Mobile адаптация общих стилей */
  @media (max-width: 768px) {
    section {
      padding: 3rem 0;
    }
  
    h2 {
      font-size: 2rem;
    }
  }
  
  @media (max-width: 480px) {
    section {
      padding: 2rem 0;
    }
  
    h2 {
      font-size: 1.8rem;
      margin-bottom: 2rem;
    }
  
    .container {
      padding: 0 15px;
    }
  }
  
  /* ========================================
     СЕРВИСЫ
  ======================================== */
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  
  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
  }
  
  .service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }
  
  .service-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
  }
  
  .service-features {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
  }
  
  .service-features li {
    padding: 0.3rem 0;
    color: #666;
    position: relative;
    padding-left: 1.2rem;
  }
  
  .service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
  }
  
  .service-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
  }
  
  .price-tag {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
  }
  
  .service-duration {
    color: #6c757d;
    font-size: 0.9rem;
  }
  
  /* Mobile адаптация Сервисов */
  @media (max-width: 768px) {
    .services-grid {
      grid-template-columns: 1fr;
    }
  
    .service-card {
      padding: 2rem;
    }
  }
  
  @media (max-width: 480px) {
    .service-card {
      padding: 1.5rem;
    }
  
    .service-icon {
      width: 50px;
      height: 50px;
      font-size: 1.2rem;
    }
  
    .service-card h3 {
      font-size: 1.2rem;
    }
  }

  /* ========================================
ПРОГРЕСС-БАР ФОРМЫ
======================================== */

.form-progress {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
    position: relative;
}




.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.progress-text.completed {
    color: #28a745;
    font-weight: 600;
}
  
  /* ========================================
     ПОРТФОЛИО
  ======================================== */
  
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .portfolio-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateY(0);
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.portfolio-card:hover .portfolio-header {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.portfolio-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.portfolio-category {
    font-size: 0.9rem;
    opacity: 0.9;
}

.portfolio-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.complexity-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.complexity-basic {
    background: #d4edda;
    color: #155724;
}

.complexity-medium {
    background: #fff3cd;
    color: #856404;
}

.complexity-advanced {
    background: #f8d7da;
    color: #721c24;
}

.portfolio-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0;
}

.tech-tag {
    background: #f1f3f4;
    color: #5f6368;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e8eaed;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #1a73e8;
    transform: translateY(-2px);
}

.portfolio-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.portfolio-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #28a745;
    display: flex;
    align-items: center;
}

.portfolio-duration {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    background: #e9ecef;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}
  
  /* Mobile адаптация Портфолио */
  @media (max-width: 768px) {
    .portfolio-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .portfolio-card {
      margin-bottom: 1rem;
    }
  
    .portfolio-header {
      padding: 1.2rem;
    }
  
    .portfolio-title {
      font-size: 1.2rem;
    }
  
    .portfolio-content {
      padding: 1.2rem;
    }
  
    .portfolio-footer {
      padding: 1rem 1.2rem;
      flex-direction: column;
      gap: 0.8rem;
      text-align: center;
    }
  
    .portfolio-price {
      font-size: 1.4rem;
    }
  
    .portfolio-duration {
      font-size: 0.85rem;
    }
  }
  
  @media (max-width: 480px) {
    .portfolio-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .portfolio-header {
      padding: 1rem;
    }
  
    .portfolio-title {
      font-size: 1.1rem;
    }
  
    .portfolio-content {
      padding: 1rem;
      gap: 0.8rem;
    }
  
    .portfolio-tech {
      gap: 0.4rem;
    }
  
    .tech-tag {
      font-size: 0.75rem;
      padding: 0.3rem 0.6rem;
    }
  
    .portfolio-footer {
      padding: 0.8rem 1rem;
    }
  }
  
  /* ========================================
     СТАТИСТИКА
  ======================================== */
  
  .tech-stack-section {
    color: #2c3e50;
    padding: 4rem 0;
  }
  .tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  .tech-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
    opacity: 0;
    transform: translateY(30px);
  }
  .tech-card:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  .tech-icon {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .tech-card .tech-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .tech-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
  }
  .tech-desc {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
  }
  /* Анимация появления, добавить через JS или IntersectionObserver */
  .tech-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .tech-card.visible .tech-icon {
    animation: iconPulse 0.6s ease-in-out;
  }
  @keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  @media (max-width: 768px) {
    .tech-stack-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 480px) {
    .tech-stack-grid { grid-template-columns: 1fr; }
    .tech-card { padding: 1.2rem 0.5rem;}
  }
  
  
/* ========================================
ОТЗЫВЫ СО СЛАЙДЕРОМ (Кнопки снаружи, компактная версия)
======================================== */

.testimonials {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 20px; /* Отступ для кнопок снизу */
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 33.33%; /* 3 карточки на десктопе */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 10px;
  min-width: 300px;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.client-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.client-info h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.client-position {
  margin: 5px 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.stars {
  color: #ffd700;
  font-size: 1.1rem;
}

.date {
  font-size: 0.8rem;
  opacity: 0.7;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-text p {
  margin: 0;
  position: relative;
}

.testimonial-text p::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  left: -20px;
  top: -10px;
  opacity: 0.3;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px; /* Отступ от слайдера */
}

.slider-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Яркий градиент в стиле сайта */
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 50px; /* Скругленные для стиля */
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); /* Инвертированный градиент для hover */
  transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .testimonial-card {
      flex: 0 0 50%;
      min-width: 280px;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
      flex: 0 0 100%;
      margin: 0 5px;
      padding: 15px;
  }
  
  .testimonials h2 {
      font-size: 2rem;
  }
  
  .slider-btn {
      font-size: 1.2rem;
      padding: 8px 16px;
  }
  
  .client-photo {
      width: 50px;
      height: 50px;
  }
  
  .slider-controls {
      gap: 15px;
  }
}




/* ========================================
FAQ SECTION
======================================== */

.faq-section {
  background: #f8f9fa;
  padding: 4rem 0;
}

.faq-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: height 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.faq-item:hover::before {
  height: 6px;
}

.faq-question {
  padding: 2rem 2.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question h3 {
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.faq-toggle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding: 0 2.5rem 2rem 2.5rem;
}

.faq-answer p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* Mobile адаптация FAQ */
@media (max-width: 768px) {
  .faq-section {
      padding: 3rem 0;
  }
  
  .faq-section h2 {
      font-size: 2rem;
      margin-bottom: 2rem;
  }
  
  .faq-question {
      padding: 1.5rem;
  }
  
  .faq-question h3 {
      font-size: 1.1rem;
  }
  
  .faq-toggle {
      width: 30px;
      height: 30px;
      font-size: 1rem;
      margin-left: 0.5rem;
  }
  
  .faq-item.active .faq-answer {
      padding: 0 1.5rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
      padding: 1.2rem;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }
  
  .faq-question h3 {
      font-size: 1rem;
  }
  
  .faq-toggle {
      align-self: flex-end;
      margin-left: 0;
  }
  
  .faq-item.active .faq-answer {
      padding: 0 1.2rem 1.2rem 1.2rem;
  }
  
  .faq-answer p {
      font-size: 0.9rem;
  }
}

  
  /* ========================================
     КОНТАКТЫ
  ======================================== */
  
  .contact-section {
    padding: 2rem 0;
    background: #f8f9fa;
  }
  
  .contact-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
  }
  
  .consultation-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
  }
  
  .contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
  }
  
  .form-group {
    margin-bottom: 2rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
  }
  
  .form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  
  .form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  }
  
  .form-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
  }
  
  .contact-info {
    background: #34495e;
    padding: 3rem 0;
    text-align: center;
    color: white;
  }
  
  .contact-info h2 {
    color: white;
    margin-bottom: 2rem;
  }
  
  .contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .contact-item strong {
    color: #3498db;
  }
  
  .whatsapp-btn, .telegram-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  }
  
  .telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #005577 100%);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
  }
  
  .whatsapp-btn:hover, .telegram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  }
  
  .telegram-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
  }
  
  .whatsapp-icon, .telegram-icon {
    font-size: 1.5rem;
  }
  
  /* Mobile адаптация Контактов */
  @media (max-width: 768px) {
    .contact-form {
      padding: 2rem;
      margin: 0 1rem;
    }
  
    .consultation-subtitle {
      font-size: 1rem;
      padding: 0 1rem;
    }
  
    .contact-details {
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
    }
  
    .whatsapp-btn, .telegram-btn {
      width: 100%;
      max-width: 300px;
      justify-content: center;
    }
  }
  
  @media (max-width: 480px) {
    .contact-form {
      padding: 1.5rem;
    }
  
    .form-group input,
    .form-group textarea {
      padding: 1rem;
    }
  
    .form-submit {
      padding: 1.1rem 2rem;
      font-size: 1.1rem;
    }
  
    .whatsapp-btn, .telegram-btn {
      padding: 0.8rem 1.2rem;
      font-size: 0.9rem;
    }
  
    .whatsapp-icon, .telegram-icon {
      font-size: 1.3rem;
    }
  }
  
  /* ========================================
     ФУТЕР
  ======================================== */
  
  footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
  }
  
