html, body {
    height: 100%;
    width: 100%;
   
    font-family: Arial, sans-serif;
}

.nav-header {
    width: 100%;
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

.nav {
    position: relative;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    position: relative;
}

.nav ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    padding: 8px 14px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.nav ul li.active a {
    color: #6b6ffe;
}

.nav-bg {
    position: absolute;
    top: 0;
    left: 0; 
    width: 140px;       
    height: 30px;
    background: rgb(230,230,230);
    border-radius: 18px;
    z-index: 1;
    transition: 0.3s ease;
    transform: translateX(0);
}


.nav ul li:hover a {
    color: #6b6ffe;
}
.nav ul li {
    position: relative;
}

.nav ul li::before {
    content: "";
    position: absolute;
    top: -6px;         
    left: 0;
    width: 0%;
    height: 4px;        
    background: rgba(102, 107, 252, 1);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav ul li:hover::before {
    width: 100%;
}

.nav ul li.active::before {
    width: 100%;
}



@media (max-width: 768px) {
  .card1 {
    flex: 0 0 100%; 
  }
}
.more-items {
  display: none;
}
.show-more-btn {
  margin-top: 10px;
  cursor: pointer;
  color: blue;
  
  border: none;
}
.show-more-btn {
  color: blue;
  background: none;
}

.show-more-btn:hover {
  color: blue !important;
  background: none !important;
}


.mobile-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 18px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  justify-content: center;
}



   @media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-header {
        display: none;
    }


  .nav-links {
    display: none !important;
  }

  .mobile-menu.show {
    display: flex !important;
    max-height: 500px;
    padding: 15px 20px;
  }

  .cont1{
    display: none;
  }

  .Htext span{
    font-size: 18px;
    width: 200px;
  }


  
  .mobile-menu.show a {
    opacity: 1;
    transform: translateY(0);
  }

  
  .mobile-menu.show a:nth-child(1) { transition-delay: 0.05s; }
  .mobile-menu.show a:nth-child(2) { transition-delay: 0.15s; }
  .mobile-menu.show a:nth-child(3) { transition-delay: 0.25s; }
  .mobile-menu.show a:nth-child(4) { transition-delay: 0.35s; }
}


.burger {
    position: fixed;
    top: 50px;
    right: 20px;
    font-size: 52px;
    cursor: pointer;
    z-index: 1001;
    color: rgba(102, 107, 252, 1);
    display: none;
}
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
}

.overlay.show {
    display: block;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }
}




.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9;
}

.overlay.show {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 10;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px; /* сховане за правим краєм */
    width: 250px;
    height: 25%;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    z-index: 1001;
    transition: right 0.35s ease;
}

.mobile-menu.show {
    right: 0; /* виїжджає на екран */
}

.mobile-menu a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.overlay.show {
    display: block;
    opacity: 1;
}




.mobile-menu a:hover a {
    color: #6b6ffe;
}
.mobile-menu a {
    position: relative;
}

.mobile-menu a::before {
    content: "";
    position: absolute;
    top: -6px;         
    left: 0;
    width: 0%;
    height: 4px;        
    background: rgba(102, 107, 252, 1);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.mobile-menu a:hover::before {
    width: 100%;
}

.mobile-menu a.active::before {
    width: 100%;
}

.logo{
    display: flex;
    justify-content: flex-start;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.Htext h3 {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 53px;
}

.Htext h3 span {
    display: block;
}

.Htext h3 .highlight {
    color: rgba(102, 107, 252, 1); 
}
.social-float {
  position: fixed;
  right: 20px;
  top: 14%;
  transform: translateY(-50%);
  width: 70px;
  height: 30px;
  background: #6366f1;
  border-radius: 40px;
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; 
  transition: height 0.3s ease;
  height: 25px; 
    box-shadow:
      0 0 15px rgba(99,102,241,0.6),
      0 0 30px rgba(99,102,241,0.35);
}
.cont1 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    width: 100%;    
}

.Htext {
    width: 80%;   

}

.toggle img {
  width: 25px;
  cursor: pointer;

}

.toggle {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.toggle img {
    width: 25px;
    height: auto;
    z-index: 2;
}


.vk-arrow {
    position: absolute;
 
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
    z-index: 3;
    pointer-events: none;
}


.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: 0.25s ease;
  margin-top: 12px;
}


.panel a img {
  width: 28px;
}


.panel.active {
  opacity: 1;
}


.social-float.open {
  height: 120px; 
}

.panel img{
  width: 75px;
  cursor: pointer;
}
.button1 {
  background-color: rgba(102, 107, 252, 1); 
   box-shadow:
      0 0 15px rgba(99,102,241,0.6),
      0 0 30px rgba(99,102,241,0.35);
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
    position: relative;
    top: -60px; 
    border: none; 
}
.nav-header {
    width: 100%;
    padding-top: 20px;
    display: flex;
    justify-content: center;
}
.nav {
    position: relative;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    position: relative;
}

.nav ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    padding: 8px 14px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.nav ul li.active a {
    color: #6b6ffe;
}

.nav-bg {
    position: absolute;
    top: 0;
    left: 0; 
    width: 140px;       
    height: 30px;
    background: rgb(230,230,230);
    border-radius: 18px;
    z-index: 1;
    transition: 0.3s ease;
    transform: translateX(0);
}


.nav ul li:hover a {
    color: #6b6ffe;
}
.nav ul li {
    position: relative;
}

.nav ul li::before {
    content: "";
    position: absolute;
    top: -6px;         
    left: 0;
    width: 0%;
    height: 4px;        
    background: rgba(102, 107, 252, 1);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav ul li:hover::before {
    width: 100%;
}

.nav ul li.active::before {
    width: 100%;
}



@media (max-width: 768px) {
  .card1 {
    flex: 0 0 100%; 
  }
}
.more-items {
  display: none;
}
.show-more-btn {
  margin-top: 10px;
  cursor: pointer;
  color: blue;
  
  border: none;
}
.show-more-btn {
  color: blue;
  background: none;
}

.show-more-btn:hover {
  color: blue !important;
  background: none !important;
}


.mobile-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 18px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  justify-content: center;
}



   @media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-header {
        display: none;
    }


  .nav-links {
    display: none !important;
  }

  .mobile-menu.show {
    display: flex !important;
    max-height: 500px;
    padding: 15px 20px;
  }

  .cont1{
    display: none;
  }

  .Htext span{
    font-size: 18px;
    width: 200px;
  }


  
  .mobile-menu.show a {
    opacity: 1;
    transform: translateY(0);
  }

  
  .mobile-menu.show a:nth-child(1) { transition-delay: 0.05s; }
  .mobile-menu.show a:nth-child(2) { transition-delay: 0.15s; }
  .mobile-menu.show a:nth-child(3) { transition-delay: 0.25s; }
  .mobile-menu.show a:nth-child(4) { transition-delay: 0.35s; }
}


.burger {
    position: fixed;
    top: 50px;
    right: 20px;
    font-size: 52px;
    cursor: pointer;
    z-index: 1001;
    color: rgba(102, 107, 252, 1);
    display: none;
}
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
}

.overlay.show {
    display: block;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }
}




.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9;
}

.overlay.show {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 10;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px; 
    width: 250px;
    height: 25%;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    z-index: 1001;
    transition: right 0.35s ease;
}

.mobile-menu.show {
    right: 0; 
}

.mobile-menu a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.overlay.show {
    display: block;
    opacity: 1;
}

.mobile-menu a:hover a {
    color: #6b6ffe;
}
.mobile-menu a {
    position: relative;
}

.mobile-menu a::before {
    content: "";
    position: absolute;
    top: -6px;         
    left: 0;
    width: 0%;
    height: 4px;        
    background: rgba(102, 107, 252, 1);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.mobile-menu a:hover::before {
    width: 100%;
}

.mobile-menu a.active::before {
    width: 100%;
}

:root {
    --bg-beige: #f3e5d8;
    --bg-blue: #c2d1f0;
    --bg-cyan: #70cdf3;
    --bg-purple: #c3a6ff;
    --text-dark: #333;
}

.pdrop-portfolio-section {
    padding: 50px 20px;
    background: #fff;
    font-family: sans-serif;
}

.pdrop-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pdrop-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: bold;
}

.pdrop-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.pdrop-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdrop-project-card {
    border-radius: 20px;
    padding: 30px;
    height: 250px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.pdrop-card-text h3 {
    font-size: 1.8rem;
    max-width: 250px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.pdrop-tag {
    background: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pdrop-card-image img {
    height: 120%;
    transform: rotate(-5deg);
    position: absolute;
    right: 20px;
    bottom: -20px;
}


.pdrop-btn-more {
    width: fit-content;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    background: #e5d5c5; 
    cursor: pointer;
    font-weight: 600;
}


.card-beige { background-color: var(--bg-beige); }
.card-blue { background-color: var(--bg-blue); }

.pdrop-btn-back {
    background: var(--bg-beige);
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    cursor: pointer;
}

.pdrop-detail-header {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    min-height: 300px;
}

.pdrop-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pdrop-btn-refresh {
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.pdrop-header-phone img {
    height: 225px;
    

}


.pdrop-screenshot-block {
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.pdrop-screenshot-block img {
    width: 100%;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pdrop-screenshot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}


@media (max-width: 768px) {
    .pdrop-portfolio-grid, .pdrop-screenshot-row {
        grid-template-columns: 1fr;
    }
    .pdrop-detail-header {
        flex-direction: column;
        text-align: center;
    }
    .pdrop-header-phone img {
        height: 250px;
        margin-top: 20px;
    }
}

.pdrop-card-image img {
    height: 110%; 
    position: absolute;
    right: 20px;
    bottom: -30px;

    transform: rotate(0deg); 
    
    transition: transform 0.3s ease; 
}

.pdrop-project-card:hover .pdrop-card-image img {
    transform: translateY(-10px); 
}
.pdrop-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    height: 220px;        
    padding: 0 40px;     
    overflow: visible;    
    position: relative;
    min-height: 0;
}
.pdrop-detail-header h2{
    font-family: 'TT Firs Neue', sans-serif; 
    font-weight: 700;
    font-style: normal; 
    font-size: 35px;
    line-height: 37px;   
    letter-spacing: 0;
    margin: 0;
}
.pdrop-project-card.card-blue + .pdrop-btn-more {
    background-color: rgba(180, 193, 240, 1);
}.nav-bg {
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: #8a2be2;
    transition: transform 0.3s ease, width 0.3s ease, opacity 0.2s ease;
    border-radius: 2px;
    opacity: 0; 
    pointer-events: none;
}


.nav-bg.visible {
    opacity: 1;
}

.card-cyan { background-color: rgba(87, 192, 244, 1) !important; }
.card-pink { background-color: rgba(248, 156, 160, 1) !important; }
.card-purple { background-color: rgba(157, 122, 228, 1) !important; }


.card-cyan + .pdrop-btn-more { background-color: rgba(87, 192, 244, 1) !important; }
.card-pink + .pdrop-btn-more { background-color: rgba(248, 156, 160, 1) !important; }
.card-purple + .pdrop-btn-more { background-color: rgba(157, 122, 228, 1) !important; }

.pdrop-btn-more {
    color: white !important;
    border: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.pdrop-btn-more:hover {
    filter: brightness(0.9); 
    transform: translateY(-3px);
}
.pdrop-detail-header.card-cyan, .detail-bg-class.card-cyan { background-color: rgba(87, 192, 244, 0.2); }
.pdrop-detail-header.card-pink, .detail-bg-class.card-pink { background-color: rgba(248, 156, 160, 0.2); }
.pdrop-detail-header.card-purple, .detail-bg-class.card-purple { background-color: rgba(157, 122, 228, 0.2); }
 
        .card-cyan { background-color: rgba(87, 192, 244, 1) !important; }
        .card-pink { background-color: rgba(248, 156, 160, 1) !important; }
        .card-purple { background-color: rgba(157, 122, 228, 1) !important; }

        .card-beige + .pdrop-btn-more { background-color: #D2B48C !important; }
        .card-blue + .pdrop-btn-more { background-color: rgba(180, 193, 240, 1) !important; }
        .card-cyan + .pdrop-btn-more { background-color: rgba(87, 192, 244, 1) !important; }
        .card-pink + .pdrop-btn-more { background-color: rgba(248, 156, 160, 1) !important; }
        .card-purple + .pdrop-btn-more { background-color: rgba(157, 122, 228, 1) !important; }

        .pdrop-detail-header.card-cyan, .detail-bg-class.card-cyan { background-color: rgba(87, 192, 244, 0.15); }
        .pdrop-detail-header.card-pink, .detail-bg-class.card-pink { background-color: rgba(248, 156, 160, 0.15); }
        .pdrop-detail-header.card-purple, .detail-bg-class.card-purple { background-color: rgba(157, 122, 228, 0.15); }
        .nav-bg {
            position: absolute;
            bottom: 0;
            height: 3px;
            background-color: #8a2be2;
            transition: transform 0.3s ease, width 0.3s ease;
            border-radius: 2px;
        }

        #pdrop-portfolio-detail { animation: fadeIn 0.4s ease-in-out; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.card-red {
    background-color: rgba(248, 92, 93, 1) !important;
}

.card-red + .pdrop-btn-more {
    background-color: rgba(248, 92, 93, 1) !important;
    color: white !important; 
    border: none;
}

.card-red + .pdrop-btn-more:hover {
    filter: brightness(0.9);
    cursor: pointer;
}

.pdrop-btn-back {
    background-color: rgba(102, 107, 252, 1) !important;
    color: white !important; 
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px; 
}


.pdrop-btn-back:hover {
    background-color: rgba(102, 107, 252, 1) !important;
    transform: translateX(-5px); 
}

@media (max-width: 992px) {
    .pdrop-portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .pdrop-project-card {
        height: auto !important;
        min-height: 250px !important;
        padding: 20px !important;
        flex-direction: row !important; 
        align-items: center !important;
    }

    .pdrop-card-text h3 {
        font-size: 1.4rem !important;
        max-width: 60% !important;
    }
    .pdrop-card-image img {
        height: 90% !important;
        max-width: 150px !important;
        right: 10px !important;
        bottom: -10px !important;
    }
    .pdrop-btn-more {
        width: fit-content !important;
        padding: 10px 25px !important;
    }
}
@media (max-width: 768px) {
    #detail-title {
        font-size: 22px !important; /* Регулюй це число: менше — заголовок буде дрібнішим */
        line-height: 1.2 !important; /* Щоб рядки не наповзали один на одного */
        text-align: center !important;
        margin-bottom: 8px !important;
        padding: 0 10px !important; /* Відступи по боках, щоб текст не торкався країв екрана */
    }
}
@media (max-width: 480px) {
    .pdrop-project-card {
        padding: 15px !important;
        min-height: 200px !important;
    }



    .pdrop-card-image img {
        max-width: 130px !important;
       
    }
    .pdrop-screenshot-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .pdrop-detail-header {
        flex-direction: column !important;
        height: auto !important;
        padding: 30px 20px !important;
        text-align: center !important;
    }

    .pdrop-header-phone img {
        height: 200px !important;
       
    }

}
@media (max-width: 768px) {
    /* Прибираємо відступ у самого заголовка-блоку */
    .pdrop-detail-header {
        padding-bottom: 0 !important; /* Обнуляємо нижній внутрішній відступ */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Притискаємо блок з телефоном до самого низу */
    .pdrop-header-phone {
        margin-bottom: 0 !important; /* Прибираємо зовнішній відступ */
        line-height: 0 !important;   /* Фікс для inline-блоків */
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important; /* Притискаємо контент до дна */
    }

    /* Масштабуємо саме зображення телефону */
    .pdrop-header-phone img {
        display: block !important;
        margin: 0 auto !important;
        max-width: 70% !important; /* Зменшуємо телефон, щоб він не був занадто величезним */
        height: auto !important;
    }

    /* Зменшуємо відступи у контенті над телефоном, щоб зекономити місце */
    .pdrop-header-content {
        padding-bottom: 15px !important;
    }
    @media (max-width: 768px) {
    .pdrop-header-phone img {
        /* Змінюй цей відсоток: 60% або 50% зробить телефон ще меншим */
        max-width: 55% !important; 
        
        display: block !important;
        margin: 0 auto !important;
        height: auto !important;
    }

    /* Щоб навколо маленького телефону не було зайвого фону */
    .pdrop-detail-header {
        padding-top: 20px !important; /* зменшив відступ зверху */
    }
}
}
/* Стиль для комп'ютерів (зліва) */
.pdrop-header-meta {
    display: flex;
    justify-content: flex-start; /* Повертаємо вліво */
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* Стиль ТІЛЬКИ для мобільних (по центру) */
@media (max-width: 768px) {
    .pdrop-header-meta {
        justify-content: center !important; 
        width: 100% !important;
        margin-top: 30px !important;
        margin-bottom: 20px !important;
    }
    
    #detail-title {
        text-align: center !important;
    }
}

/* На всякий випадок центруємо і сам заголовок над ними */
#detail-title {
    text-align: center !important;
    width: 100% !important;
}

html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 2. Фіксуємо бургер-меню, щоб воно завжди було у полі зору */
.burger {
    position: fixed !important;
    right: 20px !important;
    top: 40px !important; /* Налаштуйте висоту під свій дизайн */
    display: none; /* За замовчуванням сховано */
}

@media (max-width: 1024px) {
    .burger {
        display: block !important; /* З'являється на планшетах та телефонах */
    }
}

.mobile-menu {
    position: fixed !important;
    top: 0;
    right: -300px; /* Початкове положення (сховане) */
    width: 280px;
    
    /* --- ЗМІНА ВИСОТИ ТУТ --- */
    height: auto !important;       /* Висота підлаштовується під кількість посилань */
    max-height: 400px;             /* Обмежуємо максимальну висоту, щоб не було на весь екран */
    border-bottom-left-radius: 20px; /* Додаємо закруглення знизу для гарного вигляду */
    /* ------------------------ */

    background: white;
    box-shadow: -4px 4px 20px rgba(0,0,0,0.1);
    display: flex !important;
    flex-direction: column;
    padding: 60px 20px 30px 20px; /* Збільшений відступ зверху через бургер */
    z-index: 1001;
    transition: right 0.3s ease;
}
.mobile-menu {
    right: -320px;           
    visibility: hidden;     
    pointer-events: none;    
    transition: right 0.3s ease, visibility 0.3s;
}

.mobile-menu.show {
    right: 0;
    visibility: visible;     
    pointer-events: auto;    
}

.mobile-menu.show {
    right: 0 !important;
}

.overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    z-index: 1001;
}
@media (min-width: 769px) and (max-width: 1100px) {
    .pdrop-portfolio-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        padding: 0 20px !important;
    }
}

@media (max-width: 768px) {
    .pdrop-portfolio-grid {
        grid-template-columns: 1fr !important;
        padding: 0 15px !important;
    }
        .pdrop-card-image img {
        max-width: 40% !important;
        height: auto !important;
        right: 5px !important;
    }
}

.pdrop-screenshot-block img {
    width: auto !important;     
    max-width: 100% !important; 
    max-height: 500px !important; 
    display: block;
    margin: 15px auto !important; 
    object-fit: contain;         
    border-radius: 12px;        
}

.pdrop-screenshot-row .pdrop-screenshot-block img {
    max-height: 350px !important; 
}
@media (max-width: 768px) {
    /* Сама кнопка "три смужки" */
    .burger {
        position: absolute !important; /* Тепер він прив'язаний до верху сторінки, а не до екрана */
        top: 20px;
        right: 20px;
        z-index: 1001; /* Щоб був поверх усього */
        cursor: pointer;
        font-size: 50px; /* Розмір іконки */

    }

    /* Меню, що виїжджає */
    .mobile-menu {
        position: absolute !important; /* Меню також залишається вгорі */
        top: 0;
        right: -100%; /* Початковий стан (сховане) */
        width: 230px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        transition: 0.3s;
        display: flex;
        flex-direction: column;
        padding-top: 60px;
    }

    /* Коли меню відкрите (клас, який додає JS) */
    .mobile-menu.active {
        right: 0;
    }

    /* Фон, який затемнює сторінку */
    .overlay {
        position: fixed; /* Оверлей краще залишити fixed, щоб він закривав весь екран */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        display: none;
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
}
.social-float {
    position: absolute !important; 
    transform: translateY(-50%); 
    left: auto;
    bottom: auto;
}
.mobile-menu {
    z-index: 10000;       /* Ставить меню вище за бургер і контент */
    position: fixed;     /* Фіксує шар поверх сторінки */
}

.mobile-menu a {
    white-space: nowrap; /* Вартість розробки сайту в один рядок */
}


@media (min-width: 810px) and (max-width: 1366px) {
  /* 1. Забираємо назви сторінок у навігації */
  .nav-header nav ul {
    display: none !important;
  }

  /* 2. Забираємо кнопку "Замовити дзвінок" */
  .button1 {
    display: none !important;
  }

  /* 3. Забираємо "крючок" (соцмережі) */
  .social-float {
    display: none !important;
  }
  @media (min-width: 810px) and (max-width: 1366px) {
  /* Сама панель меню */
  .mobile-menu {
    width: 320px !important;
    background-color: #ffffff !important; /* Білий фон */
    display: flex !important;
    flex-direction: column !important;
    padding-top: 80px !important; /* Щоб текст не заліз під бургер */
    z-index: 10000 !important; /* Максимальна висота */
  }

  /* Посилання всередині меню */
  .mobile-menu a {
    color: #000000 !important; /* ПРИМУСОВО ЧОРНИЙ КОЛІР */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 24px !important;
    text-decoration: none !important;
    margin: 15px 30px !important;
    z-index: 10001 !important;
  }
}
}
@media (min-width: 768px) and (max-width: 809px) {
  /* Зменшуємо контейнер картинки */
  .pdrop-card-image {
    display: flex !important;
    justify-content: center !important;
    padding: 10px !important; /* Додаємо відступи, щоб картинка не тулилася до країв */
  }

  .pdrop-card-image img {
    width: 60% !important; /* Зменшуємо ширину фото (підбери % під себе) */
    height: auto !important;
    max-width: 200px !important; /* Можна поставити жорстке обмеження в пікселях */
    margin: 0 auto !important;
  }


}
@media (min-width: 768px) and (max-width: 809px) {
  /* Контейнер всієї шапки деталізації */
  .pdrop-detail-header {
    display: flex !important;
    flex-direction: row !important; /* Тримаємо в ряд, але з меншими відступами */
    align-items: center !important;
    padding: 20px !important;
    gap: 15px !important;
  }

  /* Блок із текстом */
  .pdrop-header-content {
    flex: 1 !important;
  }

  .pdrop-header-content h2 {
    font-size: 22px !important; /* Трохи зменшуємо шрифт для Міні */
    margin-bottom: 10px !important;
  }

  /* Контейнер з картинкою телефону */
  .pdrop-header-phone {
    flex: 0 0% !important; /* Обмежуємо ширину під картинку до 40% */
    display: flex !important;
    justify-content: center !important;
  }

  /* Саме фото телефону */
  #detail-main-img {
    width: 100% !important;
    max-width: 150px !important; /* Жорсткий ліміт ширини для Міні */
    height: auto !important;
    object-fit: contain !important;
  }

  /* Кнопка оновити та тег */
  .pdrop-header-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
}
@media (min-width: 768px) and (max-width: 809px) {
  /* Обмежуємо висоту фонового блоку */
  .pdrop-detail-header {
    height: 220px !important; /* Встанови жорстку висоту, яка тобі подобається */
    display: flex !important;
    align-items: center !important;
    overflow: visible !important; /* Дозволяє телефону трохи виступати, якщо треба */
    padding: 0 30px !important;
  }

  .pdrop-header-phone {
    height: 82% !important;
    display: flex !important;
    align-items: flex-end !important; /* Притискаємо телефон до низу */
  }

  #detail-main-img {
    /* Робимо телефон великим */
    height: 280px !important; /* Висота картинки більша за висоту фону */
    width: auto !important;
    max-width: none !important;
    
    /* Зсуваємо телефон трохи вниз або вгору, щоб він перекривав край */
    transform: translateY(20px) !important; 
    
    object-fit: contain !important;
    z-index: 10 !important;
  }

  .pdrop-header-content {
    flex: 1 !important;
    z-index: 5 !important;
  }
}

@media (min-width: 530px) and (max-width: 720px) {
  /* Контейнер шапки деталізації */
  .pdrop-detail-header {
    height: 180px !important; /* Зменшуємо висоту фону для Duo */
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
  }

  /* Блок із заголовком та тегом */
  .pdrop-header-content {
    flex: 1 !important;
  }

  .pdrop-header-content h2 {
    font-size: 18px !important; /* Менший шрифт для вузького екрана */
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
  }

  /* Контейнер картинки телефону */
  .pdrop-header-phone {
    flex: 0 0 40% !important;
    display: flex !important;
    justify-content: flex-end !important;
    height: 100% !important;
  }

  /* Саме фото телефону */
  #detail-main-img {
    height: 220px !important; /* Телефон трохи вищий за фон */
    width: auto !important;
    max-width: 140px !important; /* Обмежуємо ширину, щоб не було гігантським */
    object-fit: contain !important;
    transform: translateY(15px) !important; /* Легке зміщення вниз */
    z-index: 10 !important;
  }

  /* Мета-дані (термін і кнопка оновити) */
  .pdrop-header-meta {
    gap: 8px !important;
  }

  .pdrop-tag {
    font-size: 11px !important;
    padding: 3px 7px !important;
  }
}
@media (min-width: 530px) and (max-width: 720px) {
  /* Головний контейнер - повертаємо в ряд */
  .pdrop-detail-header {
    height: 265px !important; /* Фіксуємо висоту фону */
    display: flex !important;
    flex-direction: row !important; /* ПРИМУСОВО В РЯД */
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 25px !important;
    overflow: visible !important;
  }

  /* Текст зліва */
  .pdrop-header-content {
    flex: 1 !important;
    text-align: left !important;
    display: block !important;
  }

  /* Телефон справа */
  .pdrop-header-phone {
    flex: 0 0 40% !important; /* Займає 40% ширини справа */
    display: flex !important;
    justify-content: flex-end !important;
    height: 100% !important;
    align-items: center !important;
  }

  #detail-main-img {
    height: 300px !important; /* Телефон більший за фон */
    width: auto !important;
    max-width: 150px !important; /* Щоб не був занадто широким */
    transform: translateY(20px) !important; /* Зміщуємо вниз, щоб виступав */
    object-fit: contain !important;
  }

  /* Налаштування заголовка, щоб не тиснув на телефон */
  .pdrop-header-content h2 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
    max-width: 180px !important; /* Обмежуємо ширину тексту, щоб він не налізав на телефон */
  }
}
@media (min-width: 805px) {

    .con1{
        display: none !important;
    }
}