/* Стили для планшетов (ширина до 1024px) */
@media (max-width: 1024px) {
  .contact-info1 {
    display: none;
  }

  .about-text {
    order: 2;
  }

  .container h2 {
    text-align: center;
  }

  .price-name {
    font-weight: bold;
    text-align: left;
    font-size: 1.2rem;
  }

  .price-value {
    font-weight: bold;
    text-align: right;
    font-size: 1.2rem;
  }



  .contact-info {
    display: block;
    width: 30%;
    margin: 20px auto;
    padding: 15px;
    font-size: 0.9em;
    text-align: center;
    z-index: 10;
  }

  .social-links img {
    width: 40px;
    height: 40px;
  }

  .contact-map-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .map-container {
    width: 100%;
    height: 400px;
    margin-top: 10px;
  }

  .services-cards {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    max-width: 500px;
    width: 100%;
  }

  .quote-text {
    font-size: 0.4em;
    line-height: 1.6;
    font-style: normal;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Стили для мобильных устройств (ширина до 768px) */
@media (max-width: 776px) {

  /* .navbar .container {
    flex-direction: column;
    align-items: center;
  }

  .navbar .logo {
    margin-bottom: 15px;
  }

  .logo img {
    width: 80px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.2rem;
  } */

  /* Кнопка контакта */
  .contact-button {
    position: static;
    margin-top: 20px;
  }

  /* Иконки социальных сетей */
  .social-links img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
  }

  /* Секции */
  .about-section,
  .price-list-section,
  .contact-form-section,
  .contact-map-section {
    padding: 20px;
  }

  .price-name {
    font-weight: bold;
    text-align: left;
    font-size: 1rem;
  }

  .price-value {
    font-weight: bold;
    text-align: right;
    font-size: 1rem;
  }

  /* Контактная информация */


  .contact-map-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0;
  }

  .contact-info {
    display: none;
  }

  .contact-info1 {
    display: block;
    /* Отображать дублирующий блок на мобильных устройствах */
    width: 90%;
    margin: 5px auto;
    padding: 15px;
    text-align: center;
    box-shadow: none;
    /* Убрать тень для более простого вида */
  }

  /* Настройка размеров иконок социальных сетей */
  .contact-info1 .social-links img {
    width: 50px;
    height: 50px;
    margin: 10px;
  }

  .contact-info1 h3 {
    font-size: 1.5rem;
    /* Уменьшаем размер заголовка */
  }

  .contact-info1 p,
  .contact-info1 a {
    font-size: 1rem;
    /* Уменьшаем размер текста */
  }


  /* Общие стили для контактных блоков */
  .contact-info,
  .contact-info1 {
    background-color: white;
    /* padding: 20px; */
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }

  .social-links a img {
    width: 40px;
    height: 40px;
  }

  .map-container {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 20px;
  }

  /* Стили для блока "О себе" */
  .about-section>.container>h2 {
    text-align: center;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-video {
    order: 1;
    margin-bottom: 20px;
  }

  .about-text {
    order: 2;
    display: none;
  }

  /* Стили для карточек услуг */
  .services-cards {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
    max-width: 500px;
    padding: 10px;
  }

  .service-icon {
    margin-right: 15px;
    flex: 0 0 60px;
  }

  .service-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
  }

  .service-text h3 {
    font-size: 1.3rem;
  }

  .service-text p {
    font-size: 0.9rem;
  }

  /* Стили для блока "Моя студия" */
  .studio-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .studio-image {
    order: 2;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .studio-text {
    order: 3;
  }

  .studio-text h2 {
    font-size: 2rem;
  }

  .studio-text p {
    font-size: 0.95rem;
  }

  /* Уменьшение размера шрифта и элементов в блоке контактов */
  .contact-info h3 {
    font-size: 1.5rem;
  }

  .contact-info p,
  .contact-info a {
    font-size: 1rem;
  }

  .contact-form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
  }

  .contact-form-section p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* Большее расстояние между элементами формы */
    align-items: center;
  }

  .quote-text {
    font-size: 0.4em;
    line-height: 1.6;
    font-style: normal;
    max-width: 1200px;
    margin: 0 auto;
  }
}