/* =========================================
   RESPONSIVE — mobile first breakpoint: 770px
   ========================================= */



@media (max-width: 1200px) {
  .useful-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .concultation-wrapper {
    padding: 60px 40px;
  }
}

@media (max-width: 1024px) {
  .welcome-content img {
    min-width: 350px;
    margin-left: 20px;
    margin-bottom: 0;
  }

  .concultation-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    height: 600px;
  }

  .footer-center {
    display: none;
  }

  .footer-list {
    gap: 10px;
  }

  .footer-center-mobile {
    display: flex;
    flex-direction: column;
  }

  .footer-right {
    display: none;
  }

  .footer-right-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-left {
    gap: 30px;
  }
}

@media (max-width: 770px) {

  /* --- Base --- */
  body.lock {
    overflow: hidden;
  }

  .wrapper {
    max-width: 100%;
    width: 100%;
  }

  h2 {
    font-size: 32px;
    line-height: 36px;
  }

  h3 {
    font-size: 21px;
    line-height: 25px;
  }

  p {
    font-size: 16px;
  }

  /* --- Header --- */
  .header-wrapper {
    padding: 15px 20px;
    gap: 5px;
  }

  .header-list {
    display: none;
  }

  .logo-text h3 {
    font-size: 18px;
    line-height: 22px;
  }

  .logo-text p {
    font-size: 12px;
    line-height: 16px;
  }

  /* Burger button */
  .header_burger {
    display: block;
    position: relative;
    width: 33px;
    height: 26px;
    z-index: 13;
    transform: rotate(180deg);
    cursor: pointer;
  }

  .header_burger span {
    position: absolute;
    background-color: #040404;
    left: 0;
    width: 70%;
    height: 2px;
    top: 12px;
    transition: all 0.3s ease;
  }

  .header_burger::before,
  .header_burger::after {
    content: "";
    background-color: #ab0101;
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    transition: all 0.3s ease;
  }

  .header_burger::before {
    top: 0;
  }

  .header_burger::after {
    bottom: 0;
  }

  .header_burger.active span {
    transform: scale(0);
  }

  .header_burger.active::before {
    transform: rotate(45deg);
    top: 12px;
    background-color: #fff;
  }

  .header_burger.active::after {
    transform: rotate(-45deg);
    bottom: 12px;
    background-color: #fff;
  }

  /* Burger menu */
  .burger_menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: -200%;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #ab0101;
    padding: 70px 10px 20px;
    transition: all 0.3s ease;
    z-index: 11;
  }

  .burger_menu.active {
    top: 0;
  }

  .burger_list {
    margin: 50px 0 20px 100px;
  }

  .burger_list a {
    font-size: 20px;
    color: #fff;
  }

  /* --- Hero --- */
  #myVideo {
    height: 80vh;
  }

  .content-top {
    margin-bottom: 20px;
  }

  .content-bottom {
    font-size: 32px;
    line-height: 36px;
    margin-bottom: 30px;
  }

  .btn {
    padding: 16px 28px;
    font-size: 13px;
  }

  /* --- Welcome --- */
  .welcome-wrapper {
    padding: 60px 20px;
    gap: 20px;
  }

  .welcome-title h2::after {
    display: none;
  }

  .welcome-content {
    flex-direction: column;
  }

  .welcome-text {
    width: 100%;
    order: 2;
  }

  .welcome-img {
    order: 1;
  }

  .welcome-content img {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-bottom: 20px;
    max-width: none;
  }

  .welcome-text-mobile {
    display: block;
    margin-bottom: 20px;
  }

  .welcome-text p:first-child {
    display: none;
  }

  /* --- Central CTA --- */
  #central {
    height: 110vh;
  }

  .central-wrapper {
    padding: 10px;
    justify-content: center;
  }

  .central-content {
    width: 100%;
    padding: 20px;
  }

  .central-content h2 {
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 12px;
  }

  .central-content p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* --- Cards --- */
  .concultation-wrapper {
    padding: 60px 20px;
    gap: 30px;
  }

  .concultation-wrapper h2::after {
    display: none;
  }

  .concultation-cards {
    grid-template-columns: 1fr;
  }

  .card {
    height: 400px;
  }

  /* --- Reviews --- */
  #reviews {
    height: auto;
    min-height: 100vh;
  }

  .reviews-wrapper {
    padding: 40px 20px;
    gap: 20px;
  }

  .reviews-wrapper h2::after {
    display: none;
  }

  .reviews-slider {
    max-width: 100%;
    margin: 10px auto;
  }

  .reviews-slider-item {
    margin: 0 5px;
  }

  .reviews-title h4 {
    font-size: 16px;
  }

  .reviews-title p {
    font-size: 10px;
  }

  .reviews-text p {
    font-size: 13px;
  }

  .reviews-slider .slick-arrow {
    display: none !important;
  }

  /* --- Contacts (homepage) --- */
  .contacts-wrapper {
    padding: 30px 20px;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
  }

  .contacts-wrapper h2::after {
    display: none;
  }

  .contacts-block a span {
    font-size: 15px;
    margin-left: 10px;
    margin-top: 4px;
  }

  /* --- Appointment Form --- */
  .appointment-wrapper {
    padding: 30px 20px 46px;
    max-width: 100%;
  }

  .appointment-wrapper h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .appointment-wrapper h2::after {
    display: none;
  }

  .appointment-wrapper .appointment-subtitle {
    font-size: 14px;
  }

.appointment-form {
    width: 100%;
}
.appointment-form textarea {
    margin-bottom: 30px;
}
  .appointment-form .btn {
    width: 100%;
  } 

  /* --- Footer --- */
  .footer-wrapper {
    padding: 30px 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

.footer-logo {
    flex-direction: column;
}
  .footer-left {
    align-items: center;
  }

  .logo-text-footer h3 {
    font-size: 20px;
  }

  .logo-text-footer p {
    font-size: 12px;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-right {
    display: none;
  }

  .footer-center {
    width: 100%;
  }

  .footer-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }


  /* --- Prices page --- */
  .price-wrapper {
    padding: 30px 20px;
  }

.price-wrapper h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.price-wrapper h1::after {
    display: none;
}

.relevant {
    margin: 0 auto 30px;
    font-size: 22px;
}
  .price-item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

.price-item-left {
    max-width: 100%;
}
  .price-item-right {
    font-size: 18px;
  }

  /* --- Useful page --- */
  .useful-page-wrapper {
    padding: 30px 20px;
  }

  .useful-page-wrapper>h1 {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .useful-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .useful-card-thumb {
    height: 180px;
  }

  /* --- Single useful --- */
  .single-useful-wrapper {
    padding: 30px 20px;
  }

  .single-useful-wrapper h1 {
    font-size: 24px;
  }

  /* --- About page --- */
  /*.about-page-wrapper {*/
  /*  padding: 30px 20px;*/
  /*}*/

  .about-hero {
    flex-direction: column;
    padding: 30px 20px;
    gap: 25px;
  }

  .about-hero-img {
    width: 100%;
  }

  .about-hero-img {
    display: none;
  }

  .about-content .wp-block-preformatted:first-child {
    margin-bottom: 0;
  }

  .about-content img {
    display: block;
    width: 80%;
    margin: 0 auto;
  }

  .about-hero-text h1 {
    font-size: 26px;
    margin-bottom: 30px;
  }

.about-hero-text h1::after {
    display: none;
}
  .about-hero a {
    width: 100%;
  }

  /*.about-certs-grid {*/
  /*  grid-template-columns: repeat(2, 1fr);*/
  /*  gap: 12px;*/
  /*}*/

.admission-wrapper {
    max-width: 100%;
    padding: 30px 20px;
}
  .admission-line_top-mobile {
    top: 23%;
    left: 5.4%;
  }

.admission-wrapper h2 {
    font-size: 26px;
    margin-bottom: 30px;
}

.admission-wrapper h2::after {
    display: none;
}
  .admission-blocks {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 16px;
    gap: 0;
  }

  .admission-block {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
  }

  .admission-block img {
    width: 36px;
  }

  .admission-line_top-mobile {
    top: 23%;
    left: 5.4%;
  }

  .admission-line_top-mobile,
  .admission-line_bootom-mobile {
    display: block;
    border-right: 2px solid #ab0101;
    max-height: 22.5px;
    height: 100%;
    position: absolute;
  }

  #help {
    position: relative;
  }

  .help-wrapper {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 0;
  }

  .help-img-desctop {
    display: none;
  }

  .help-img-mobile {
    display: flex;
    position: absolute;
    top: 22.6%;
    right: 0;
  }

  .help-containt {
    margin: 0;
  }

  .help-containt h3 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
  }

  .help-list {
    margin-top: 16px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 10;
  }

  .help-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    align-items: center;
  }

  .help-item img {
    width: 9.19px;
  }

  /* --- Contacts page --- */
  .contacts-page-wrapper {
    padding: 30px 20px;
  }

  .contacts-page-wrapper>h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .contacts-page-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contacts-map-full iframe {
    height: 280px;
  }

  .contacts-info-item a,
  .contacts-info-item p {
    font-size: 15px;
  }

  /*--- 404  ---*/
  .error-404-container {
    padding: 20px 15px;
  }

  .page-title {
    font-size: 1.8em;
  }

  .error-message {
    font-size: 1.1em;
  }


  .search-form-wrapper input[type="search"] {
    min-width: 200px;
  }
  
  /* =========================================
   Політика конфіденційності
   ========================================= */
   .privacy-page-wrapper {
    max-width: 100%;
    padding: 30px 20px;
}

.privacy-title {
    margin-bottom: 30px;
}

.privacy-title::after {
  display: none;
}

/* Ховаємо відео на мобільних для швидкого завантаження */

/*#myVideo {*/
/*        display: none;*/
/*    }*/

.mobile-hero-bg {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/wp-content/themes/podolog/img/home-poster.jpg');
        background-size: cover;
        background-position: center;
        z-index: 0;
    }
    
/*#video-text {*/
/*        min-height: 100svh;*/
/*    }*/

}