/* mobile.css - Мобильные стили для Szpital Wojewódzki */

/* ===== ОСНОВНЫЕ МОБИЛЬНЫЕ СТИЛИ ===== */
@media (max-width: 768px) {
  
  /* Базовые исправления для горизонтального скролла */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
  }
  
  body {
    width: 100%;
  }
  
  /* Скрываем чат на мобильных устройствах */
  .chat-widget {
    display: none !important;
  }
  
  /* Адаптация верхней панели */
  header {
    top: 15px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  .top-left-icons {
    left: 15px;
    gap: 8px;
  }
  
  .top-left-icons img,
  .top-right-icon img {
    width: 18px;
    height: 18px;
  }
  
  .main-nav {
    display: none; /* Скрываем основное меню на мобильных */
  }
  
    /* Бургер-меню для мобильных */
  .top-right-icon .search-container {
    display: none; /* Скрываем поиск на мобильных */
  }

  .burger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .burger-line {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
  }

  .burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Боковое меню */
  .side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
    overflow-y: auto;
  }

  .side-menu.open {
    right: 0;
  }

  .side-menu nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .side-menu a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
  }

  .overlay-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
  }

  .overlay-blur.active {
    display: block;
  }
  
  /* Адаптация hero секции */
  .hero {
    height: 70vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
  }
  
  .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .content {
    left: 20px;
    right: 20px;
    transform: translateY(-40%);
    text-align: center;
    width: calc(100% - 40px);
    box-sizing: border-box;
  }
  
  .content h1 {
    font-size: 28px;
    line-height: 1.3;
    word-wrap: break-word;
  }
  
  .address {
    justify-content: center;
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }
  
  .address img {
    width: 14px;
    height: 14px;
  }
  
  .hero-bottom-images {
    left: 20px;
    right: 20px;
    bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 40px);
  }
  
  .hero-bottom-images .logo-item:nth-child(1) img {
    height: 22px;
    max-width: 100%;
  }
  
  .hero-bottom-images .logo-item:nth-child(2) img {
    height: 18px;
    max-width: 100%;
  }
  
  .hero-bottom-images .logo-item:nth-child(3) img {
    height: 30px;
    max-width: 100%;
  }
  
  /* Исправляем горизонтальный скролл для остальных секций */
  .info-section,
  .service-section,
  .aktualnosci-section,
  .science-section,
  .custom-frame,
  .photo-frame-section,
  .team-section,
  .contact-section,
  .contact-map-section {
    width: 100%;
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
  
  .info-container,
  .service-container,
  .science-container,
  .custom-frame-container,
  .photo-frame-container,
  .team-container,
  .contact-container,
  .contact-map-container {
    max-width: 100%;
    width: 100%;
  }

    /* Адаптация info-section */
  .info-section {
    padding: 40px 20px;
  }

  .info-container {
    flex-direction: column;
    gap: 30px;
  }

  .info-left,
  .info-right {
    min-width: 100%;
  }

  .info-left h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .info-left p {
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 30px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    justify-items: center;
  }

  .stat-item {
    text-align: center;
    width: 100%;
  }

  .stat-item h3 {
    font-size: 24px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #000;
  }

  .stat-item p {
    font-size: 12px;
  }

  .info-right video {
    max-width: 100%;
    border-radius: 20px;
  }

    /* Адаптация service-section */
  .service-section {
    padding: 40px 20px;
  }

  .service-container {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .service-left,
  .service-right {
    min-width: 100%;
  }

  .service-left video {
    width: 100%;
    border-radius: 20px;
  }

  .service-item {
    margin-bottom: 20px;
  }

  .service-header {
    gap: 10px;
    margin-bottom: 8px;
  }

  .service-header .icon {
    font-size: 16px;
  }

  .service-item h3 {
    font-size: 16px;
  }

  .service-item p {
    font-size: 14px;
    line-height: 1.4;
  }

    /* Адаптация aktualnosci-section */
  .aktualnosci-section {
    padding: 30px 20px;
    height: auto;
    min-height: auto;
  }

  .aktualnosci-card {
    width: 100%;
    height: auto;
    max-width: 280px;
    margin: 0 auto;
    animation: none;
    transform: none;
    opacity: 1;
  }

  .aktualnosci-skewed {
    display: none;
  }

  .aktualnosci-content {
    padding: 15px;
    border-radius: 15px;
    animation: none;
    transform: none;
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .aktualnosci-video {
    border-radius: 12px;
    margin-bottom: 12px;
    animation: none;
    transform: none;
    opacity: 1;
  }

  .aktualnosci-footer {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .aktualnosci-footer h3 {
    font-size: 16px;
  }

  .aktualnosci-button {
    font-size: 12px;
    padding: 6px 12px;
  }

    /* Адаптация science-section */
  .science-section {
    padding: 40px 20px;
    text-align: center;
  }

  .science-section h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
  }

  .science-subtitle {
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
  }

  .timeline {
    display: none; /* Скрываем временную линию */
  }

  /* Альтернатива - простой список преимуществ */
  .science-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .benefit-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
  }

  .benefit-item p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
  }

  /* Исправление для custom-frame секции */
  .custom-frame {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .cards-wrapper {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
  }
  
  .custom-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
  }
  
  /* Убедитесь, что контейнеры видны */
  .custom-frame-container {
    display: block !important;
    width: 100%;

  }

   .custom-main-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px; /* Было -40px */
  }

  .custom-subtitle {
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
  }

  .card-text {
    font-size: 14px;
  }

  .card-number {
    font-size: 120px;
  }

  .icon {
    width: 40px;
    height: 40px;
  }

  .vector {
    width: 20px;
    height: 20px;
  }

  /* Адаптация photo-frame-section */
  .photo-frame-section {
    padding: 40px 20px;
  }

  .photo-frame-container {
    max-width: 100%;
  }

  .main-photo-frame {
    width: 100%;
    height: 250px;
    border-radius: 20px;
  }

  .frame-bottom-left {
    bottom: 15px;
    left: 15px;
    width: 85%;
    max-width: 250px;
    padding: 12px;
    border-radius: 15px;
  }

  .frame-bottom-left p {
    font-size: 14px;
    line-height: 1.3;
  }

  .frame-top-right {
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 18px;
  }

    /* Адаптация team-section */
  .team-section {
    padding: 40px 20px;
  }

  .team-main-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
  }

  .team-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-card {
    height: 350px;
  }

  .card-content {
    padding: 20px;
  }

  .team-card-title {
    font-size: 18px;
  }

  .team-card-text {
    font-size: 14px;
  }

  .team-card-text-new {
    font-size: 14px;
  }

    /* Адаптация contact-section */
  .contact-section {
    padding: 40px 20px;
  }

  .contact-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
  }

  .contact-form {
    flex-direction: column;
    gap: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

    .form-row input,
  textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 20px;
    box-sizing: border-box;
  }

  .form-left {
    width: 100%;
  }

  .form-row input {
    width: 100%;
    box-sizing: border-box;
  }

  textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 150px;
  }

  .form-right {
    width: 100%;
    justify-content: center;
  }

  .send-button {
    width: 100%;
    height: 60px;
    border-radius: 20px;
    margin-top: 10px;
  }

  .send-button img {
    width: 30px;
  }

    /* Адаптация contact-map-section */
  .contact-map-section {
    padding: 40px 20px;
  }

  .contact-map-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
  }

  .contact-map-content {
    flex-direction: column;
    gap: 30px;
  }

  .contact-map-left,
  .contact-map-right {
    min-width: 100%;
  }

  .contact-map-left h3 {
    font-size: 20px;
    text-align: center;
  }

  .contact-map-left p {
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
  }

  .contact-map-right iframe {
    height: 300px;
    border-radius: 15px;
  }

  .route-btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .route-inputs {
    min-width: 250px;
    right: 0;
    left: auto;
  }

    /* Адаптация footer */
  .site-footer {
    padding: 30px 20px;
    text-align: center;
  }

  .footer-container {
    font-size: 14px;
  }

  /* Дополнительные исправления для переполнения */
  * {
    max-width: 100%;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  /* Скрываем announcement на мобильных */
  .announcement {
    display: none !important;
  }
}

/* mobile.css - Мобильные стили для Szpital Wojewódzki */

/* ===== ОСНОВНЫЕ МОБИЛЬНЫЕ СТИЛИ ===== */
@media (max-width: 1024px) {
  
  /* Базовые исправления для горизонтального скролла */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
  }
  
  body {
    width: 100%;
  }
  
  /* Скрываем чат на мобильных устройствах */
  .chat-widget {
    display: none !important;
  }
  
  /* Адаптация верхней панели */
  header {
    top: 15px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  .top-left-icons {
    left: 15px;
    gap: 8px;
  }
  
  .top-left-icons img,
  .top-right-icon img {
    width: 18px;
    height: 18px;
  }
  
  .main-nav {
    display: none; /* Скрываем основное меню на мобильных */
  }
  
  .top-right-icon {
    right: 15px;
  }
  
  /* Адаптация hero секции */
  .hero {
    height: 70vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
  }
  
  .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .content {
    left: 20px;
    right: 20px;
    transform: translateY(-40%);
    text-align: center;
    width: calc(100% - 40px);
    box-sizing: border-box;
  }
  
  .content h1 {
    font-size: 28px;
    line-height: 1.3;
    word-wrap: break-word;
  }
  
  .address {
    justify-content: center;
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }
  
  .address img {
    width: 14px;
    height: 14px;
  }
  
  .hero-bottom-images {
    left: 20px;
    right: 20px;
    bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 40px);
  }
  
  .hero-bottom-images .logo-item:nth-child(1) img {
    height: 22px;
    max-width: 100%;
  }
  
  .hero-bottom-images .logo-item:nth-child(2) img {
    height: 18px;
    max-width: 100%;
  }
  
  .hero-bottom-images .logo-item:nth-child(3) img {
    height: 30px;
    max-width: 100%;
  }
  
  /* Исправляем горизонтальный скролл для остальных секций */
  .info-section,
  .service-section,
  .aktualnosci-section,
  .science-section,
  .custom-frame,
  .photo-frame-section,
  .team-section,
  .contact-section,
  .contact-map-section {
    width: 100%;
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
  
  .info-container,
  .service-container,
  .science-container,
  .custom-frame-container,
  .photo-frame-container,
  .team-container,
  .contact-container,
  .contact-map-container {
    max-width: 100%;
    width: 100%;
  }

    /* Адаптация info-section */
  .info-section {
    padding: 40px 20px;
  }

  .info-container {
    flex-direction: column;
    gap: 30px;
  }

  .info-left,
  .info-right {
    min-width: 100%;
  }

  .info-left h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .info-left p {
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 30px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    justify-items: center;
  }

  .stat-item {
    text-align: center;
    width: 100%;
  }

  .stat-item h3 {
    font-size: 24px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #000;
  }

  .stat-item p {
    font-size: 12px;
  }

  .info-right video {
    max-width: 100%;
    border-radius: 20px;
  }

    /* Адаптация service-section */
  .service-section {
    padding: 40px 20px;
  }

  .service-container {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .service-left,
  .service-right {
    min-width: 100%;
  }

  .service-left video {
    width: 100%;
    border-radius: 20px;
  }

  .service-item {
    margin-bottom: 20px;
  }

  .service-header {
    gap: 10px;
    margin-bottom: 8px;
  }

  .service-header .icon {
    font-size: 16px;
  }

  .service-item h3 {
    font-size: 16px;
  }

  .service-item p {
    font-size: 14px;
    line-height: 1.4;
  }

    /* Адаптация aktualnosci-section */
  .aktualnosci-section {
    padding: 30px 20px;
    height: auto;
    min-height: auto;
  }

  .aktualnosci-card {
    width: 100%;
    height: auto;
    max-width: 280px;
    margin: 0 auto;
    animation: none;
    transform: none;
    opacity: 1;
  }

  .aktualnosci-skewed {
    display: none;
  }

  .aktualnosci-content {
    padding: 15px;
    border-radius: 15px;
    animation: none;
    transform: none;
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .aktualnosci-video {
    border-radius: 12px;
    margin-bottom: 12px;
    animation: none;
    transform: none;
    opacity: 1;
  }

  .aktualnosci-footer {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .aktualnosci-footer h3 {
    font-size: 16px;
  }

  .aktualnosci-button {
    font-size: 12px;
    padding: 6px 12px;
  }

    /* Адаптация science-section */
  .science-section {
    padding: 40px 20px;
    text-align: center;
  }

  .science-section h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
  }

  .science-subtitle {
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
  }

  .timeline {
    display: none; /* Скрываем временную линию */
  }

  /* Альтернатива - простой список преимуществ */
  .science-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .benefit-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
  }

  .benefit-item p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
  }

    /* Адаптация custom-frame */
  .custom-frame {
    padding: 40px 20px;
  }

  .custom-frame-container {
    padding: 0;
  }

   .custom-main-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px; /* Было -40px */
  }

  .custom-subtitle {
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
  }

  .cards-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .custom-card {
    width: 100%;
    max-width: 300px;
    height: 300px;
    padding: 20px;
  }

  .card-text {
    font-size: 14px;
  }

  .card-number {
    font-size: 120px;
  }

  .icon {
    width: 40px;
    height: 40px;
  }

  .vector {
    width: 20px;
    height: 20px;
  }

  /* Адаптация photo-frame-section */
  .photo-frame-section {
    padding: 40px 20px;
  }

  .photo-frame-container {
    max-width: 100%;
  }

  .main-photo-frame {
    width: 100%;
    height: 250px;
    border-radius: 20px;
  }

  .frame-bottom-left {
    bottom: 15px;
    left: 15px;
    width: 85%;
    max-width: 250px;
    padding: 12px;
    border-radius: 15px;
  }

  .frame-bottom-left p {
    font-size: 14px;
    line-height: 1.3;
  }

  .frame-top-right {
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 18px;
  }

    /* Адаптация team-section */
  .team-section {
    padding: 40px 20px;
  }

  .team-main-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
  }

  .team-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-card {
    height: 350px;
  }

  .card-content {
    padding: 20px;
  }

  .team-card-title {
    font-size: 18px;
  }

  .team-card-text {
    font-size: 14px;
  }

  .team-card-text-new {
    font-size: 14px;
  }

    /* Адаптация contact-section */
  .contact-section {
    padding: 40px 20px;
  }

  .contact-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
  }

  .contact-form {
    flex-direction: column;
    gap: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

    .form-row input,
  textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 20px;
    box-sizing: border-box;
  }

  .form-left {
    width: 100%;
  }

  .form-row input {
    width: 100%;
    box-sizing: border-box;
  }

  textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 150px;
  }

  .form-right {
    width: 100%;
    justify-content: center;
  }

  .send-button {
    width: 100%;
    height: 60px;
    border-radius: 20px;
    margin-top: 10px;
  }

  .send-button img {
    width: 30px;
  }

    /* Адаптация contact-map-section */
  .contact-map-section {
    padding: 40px 20px;
  }

  .contact-map-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
  }

  .contact-map-content {
    flex-direction: column;
    gap: 30px;
  }

  .contact-map-left,
  .contact-map-right {
    min-width: 100%;
  }

  .contact-map-left h3 {
    font-size: 20px;
    text-align: center;
  }

  .contact-map-left p {
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
  }

  .contact-map-right iframe {
    height: 300px;
    border-radius: 15px;
  }

  .route-btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .route-inputs {
    min-width: 250px;
    right: 0;
    left: auto;
  }
}

/* ===== СКРЫТИЕ МОБИЛЬНОГО МЕНЮ В ДЕСКТОП ВЕРСИИ ===== */
  @media (min-width: 769px) {
    .burger-menu,
    .side-menu,
    .overlay-blur {
      display: none !important;
    }
  }

  /* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ДЛЯ KONTAKT.PHP ===== */
  @media (max-width: 768px) {
    /* Скрываем основное меню на мобильных */
    .main-nav {
      display: none !important;
    }
    
    /* Показываем бургер-меню на мобильных */
    .burger-menu {
      display: flex !important;
    }
    
    /* Отступ сверху для секции контактов */
    .contact-section {
      padding: 80px 15px 30px 15px !important;
      margin-top: 0;
    }
    
    .contact-container {
      max-width: 100% !important;
      width: 100% !important;
    }
    
    .contact-title {
      font-size: 24px !important;
      text-align: center;
      margin-bottom: 25px;
    }
    
    /* Адаптация панели поиска */
    .contact-search-panel {
      margin: 20px 0;
      max-width: 100%;
    }
    
    .contact-search-input {
      padding: 14px 45px 14px 15px;
      font-size: 14px;
    }
    
    .search-icon {
      right: 15px;
    }
    
    /* Адаптация контактной информации */
    .contact-info {
      grid-template-columns: 1fr !important;
      gap: 20px !important;
      margin-top: 25px !important;
    }
    
    .contact-group {
      padding: 20px 15px !important;
      margin-bottom: 0 !important;
    }
    
    .contact-group h3 {
      font-size: 18px !important;
      margin-bottom: 15px !important;
      text-align: center;
    }
    
    .contact-group p {
      font-size: 14px !important;
      margin: 10px 0 !important;
      line-height: 1.4 !important;
    }
    
    /* Адаптация результатов поиска */
    .search-results {
      position: fixed !important;
      top: 50% !important;
      left: 5% !important;
      right: 5% !important;
      width: 90% !important;
      max-height: 60vh !important;
      z-index: 1000;
    }
    
    .search-result-item {
      padding: 12px 15px !important;
      flex-direction: column !important;
      align-items: flex-start !important;
    }
    
    .call-button {
      margin-top: 8px;
      align-self: flex-end !important;
    }
  }

  @media (max-width: 480px) {
    .contact-section {
      padding: 70px 10px 20px 10px !important;
    }
    
    .contact-title {
      font-size: 22px !important;
    }
    
    .contact-group {
      padding: 15px 12px !important;
    }
    
    .contact-group h3 {
      font-size: 16px !important;
    }
    
    .contact-group p {
      font-size: 13px !important;
    }
    
    .contact-search-input {
      font-size: 13px;
      padding: 12px 40px 12px 12px;
    }
  }

@media (max-width: 768px) {
  /* Исправление для custom-frame секции */
  .custom-frame {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .cards-wrapper {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
  }
  
  .custom-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
  }
  
  /* Убедитесь, что контейнеры видны */
  .custom-frame-container {
    display: block !important;
    width: 100%;
  }
}