
/* =================================
   МОБИЛЬНАЯ ВЕРСИЯ - ПОЛНАЯ ПЕРЕРАБОТКА
   ================================= */

@media (max-width: 768px) {
  
  /* Общие стили */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .container {
    padding: 0 15px;
  }

  /* ===== ШАПКА ===== */
  .header {
    padding: 12px 0;
    background: linear-gradient(135deg, #C5D669, #E2EEDA);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .header-container {
    flex-direction: row;
    height: auto;
    padding: 10px 15px;
    gap: 0;
    justify-content: space-between;
    align-items: center;
  }

  /* Верхняя строка: лого и гамбургер */
  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo {
    transform: scale(0.9);
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .logo h1 {
    font-size: 24px;
    display: block !important;
  }

  .logo p {
    font-size: 12px;
    display: block !important;
  }

  .hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: #412A22;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
  }

  .hamburger:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
  }

  /* Навигация */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    z-index: 999;
  }

  @keyframes slideDown {
    0% {
      opacity: 0;
      transform: translateY(-20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
  }

  nav li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 15px;
  }

  nav a:hover {
    background: linear-gradient(135deg, #D0305A, #E66C9B);
    color: #fff;
    transform: translateX(5px);
  }

  /* Скрываем контактную кнопку в мобильной версии */
  .header-contact {
    display: none;
  }

  /* ===== HERO СЕКЦИЯ ===== */
  .hero {
    height: 70vh;
    min-height: 500px;
    margin-top: 100px;
  }

  .hero-content {
    margin: 0 15px;
    padding: 30px 20px;
    border-radius: 15px;
    max-width: none;
    animation: mobileHeroAppear 1.5s ease-out;
  }

  @keyframes mobileHeroAppear {
    0% {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .hero-content .cta-button {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    margin-top: 20px;
  }

  /* ===== СЕКЦИЯ "ОБО МНЕ" ===== */
  .about {
    padding: 60px 0 50px;
  }

  .about h2 {
    font-size: 28px;
    margin-bottom: 35px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  }

  .about-text {
    padding: 0 10px;
  }

  .about-text p {
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
  }

  /* ===== УСЛУГИ ===== */
  .services {
    padding: 60px 0;
  }

  .services h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .price-table h3 {
    font-size: 22px;
    margin: 35px 0 20px;
    padding: 0 10px;
  }

  .price-table {
    margin: 0;
    overflow-x: hidden;
  }

  .price-table table {
    margin: 0 0 25px;
    width: 100%;
    font-size: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .price-table thead,
  .price-table tbody,
  .price-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .price-table th {
    padding: 12px 8px;
    font-size: 11px;
    text-align: center;
  }

  .price-table th:first-child {
    width: 50%;
  }

  .price-table th:nth-child(2) {
    width: 25%;
  }

  .price-table th:last-child {
    width: 25%;
  }

  .price-table td {
    padding: 12px 8px;
    font-size: 11px;
    line-height: 1.3;
    word-wrap: break-word;
    white-space: normal;
  }

  .price-table td:first-child {
    font-weight: 500;
    width: 50%;
  }

  .price-table td:nth-child(2) {
    width: 25%;
    text-align: center;
    font-size: 10px;
  }

  .price-table td:last-child {
    font-weight: 600;
    color: #D0305A;
    text-align: right;
    width: 25%;
  }

  /* ===== ОТЗЫВЫ ===== */
  .reviews {
    padding: 60px 0;
  }

  .reviews h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .review-slider {
    padding: 0 50px;
    margin: 0 15px;
  }

  .review-slide {
    padding: 30px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #E2EEDA, #C5D669);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  }

  .review-slide p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .review-slide h4 {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .review-slide span {
    font-size: 13px;
  }

  .review-buttons {
    left: 15px;
    right: 15px;
    width: calc(100% - 30px);
  }

  .review-buttons button {
    padding: 12px 15px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(208, 48, 90, 0.3);
    transition: all 0.3s ease;
  }

  .review-buttons button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(208, 48, 90, 0.4);
  }

  /* ===== КОНТАКТЫ ===== */
  .contacts {
    padding: 50px 0;
  }

  .contacts h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .contacts p {
    font-size: 16px;
    margin-bottom: 12px;
    text-align: left;
    padding: 0 10px;
  }

  .contacts i {
    font-size: 20px;
    margin-right: 8px;
    color: #D0305A;
  }

  .contacts .cta-button {
    width: 100%;
    max-width: 300px;
    margin: 25px auto 0;
    padding: 18px 25px;
    font-size: 16px;
    display: block;
    text-align: center;
  }

  /* ===== FAQ ===== */
  .faq {
    padding: 50px 0;
  }

  .faq h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .faq-item {
    margin: 0 15px 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #E2EEDA, #C5D669);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .faq-question:hover {
    background: linear-gradient(135deg, #C5D669, #E2EEDA);
  }

  .faq-question::after {
    font-size: 16px;
  }

  .faq-answer {
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.9);
  }

  /* ===== ПОДВАЛ ===== */
  .footer {
    padding: 30px 0;
    background: linear-gradient(135deg, #C5D669, #E2EEDA);
  }

  .footer-layout {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-left p {
    font-size: 14px;
    font-weight: 500;
  }

  .footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .footer-social a {
    font-size: 24px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .footer-social a:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
  }

  .footer-right {
    font-size: 14px;
  }

  .footer-right a {
    font-weight: 600;
  }

  /* ===== ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ ===== */
  .animate-in {
    animation: fadeInUp 0.8s ease-out both;
  }

  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Плавные переходы для всех элементов */
  * {
    transition: all 0.3s ease;
  }

  /* Улучшенные кнопки */
  .cta-button {
    position: relative;
    overflow: hidden;
  }

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

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

/* ===== ДОПОЛНИТЕЛЬНЫЕ МЕДИА-ЗАПРОСЫ ===== */

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .hero {
    height: 60vh;
    min-height: 450px;
    margin-top: 90px;
  }

  .hero-content {
    padding: 25px 15px;
  }

  .hero-content h1 {
    font-size: 24px;
  }
  
  .hero-content p {
    font-size: 14px;
  }
  
  .price-table table {
    font-size: 10px;
  }
  
  .price-table th,
  .price-table td {
    padding: 10px 6px;
  }

  .price-table td:first-child {
    font-size: 10px;
  }
  
  .review-slider {
    padding: 0 40px;
  }
}

/* Для планшетов в портретной ориентации */
@media (max-width: 768px) and (min-width: 481px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .about-content {
    gap: 40px;
  }
  
  .about-image {
    max-width: 320px;
  }
}
