.wrapper2 {
  background: url("layered-waves-haikei-kopia 2.svg") repeat center top/cover;
}

.contact-section {
  position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    text-align: center;
    justify-content: center;
    z-index: 1;
  }

  .contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 60px;

  }

  .contact-container{
    display: flex;
    flex-direction: column;
  }
  
  .contact-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
  }
  
  .contact-section p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 50px;
  }
  
  .contact-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
  }
  
  .contact-left, .contact-right {
    flex: 1;
    min-width: 280px;
  }
  
  .contact-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .contact-box {
    position: relative;
    background-color: #fff;
    color: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
    padding: 40px;
    border: solid 3px transparent;
    transition: all 0.5s ease-in-out;
    z-index: 2;
  }
  
  .contact-box i {
    margin-right: 10px;
    font-size: 1.5rem;
  }
  
  .contact-box:hover {
    background-image: linear-gradient(white, white), 
    linear-gradient(120deg, #2f3f22, #74a945);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    cursor: pointer;
    transform: scale(1.05);
  }
  
  .contact-note {
    font-size: 1rem;
    color: #333;
  }
  
  /* Card – Uiverse.io by Rodrypaladin */
  .card {
    width: 320px;
    height: 600px;
    background: black;
    border-radius: 35px;
    border: 2px solid rgb(40, 40, 40);
    padding: 7px;
    position: relative;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.486);
    margin: 0 auto;
  }
  
  .card-int {
    background-image: linear-gradient(
  to right bottom,
  #8b5e3c,   /* miedziany brąz */
  #a97449,   /* jasna miedź */
  #c89b5e,   /* złoto-brązowy */
  #dbc17a,   /* złoty piaskowy */
  #e8d8aa,   /* jasny beż */
  #d6c497,   /* przygaszony złoty */
  #b8a36b,   /* oliwkowo-złoty */
  #9a8855,   /* ciemniejszy piaskowy */
  #7c6e45,   /* ziemisty beż */
  #5e5534,   /* brąz oliwkowy */
  #3f3b23,   /* głęboki ziemisty */
  #1f1d12    /* prawie czarny oliwkowy */
);
    background-size: 200% 200%;
    background-position: 0% 0%;
    height: 100%;
    border-radius: 25px;
    transition: all 0.6s ease-out;
    overflow: hidden;
  }
  
  .card:hover .card-int {
    background-position: 100% 100%;
  }
  
  .top {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translate(50%, 0);
    width: 35%;
    height: 18px;
    background-color: black;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  
  .speaker {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translate(50%, 0);
    width: 40%;
    height: 2px;
    border-radius: 2px;
    background-color: rgb(20, 20, 20);
  }
  
  .camera {
    position: absolute;
    top: 6px;
    right: 84%;
    transform: translate(50%, 0);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.048);
  }
  
  .int {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    background-color: rgba(0, 0, 255, 0.212);
  }
  
  .btn1, .btn2, .btn3, .btn4 {
    position: absolute;
    width: 2px;
  }
  
  .btn1, .btn2, .btn3 {
    height: 45px;
    top: 30%;
    right: -4px;
    background-image: linear-gradient(to right, #111111, #222222, #333333, #464646, #595959);
  }
  
  .btn2, .btn3 {
    transform: scale(-1);
    left: -4px;
    height: 30px;
  }
  
  .btn2 {
    top: 26%;
  }
  
  .btn3 {
    top: 36%;
  }
  
  .hello {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    line-height: 35px;
    height: 100%;
    transition: 0.5s ease-in-out;
  }
  
  .hidden {
    display: block;
    opacity: 0;
    transition: all 0.3s ease-in;
  }
  
  .card:hover .hidden {
    opacity: 1;
  }
  
  .card:hover .hello {
    transform: translateY(-20px);
  }

  .call-info {
    display: flex;
    flex-direction: column;
  }
  
  .call-number {
    font-size: clamp(0.9rem,2vw,1rem);
    font-weight: 600;
    color: #fff;
  }
  
  .call-caller {
    font-size: clamp(0.8rem,2vw,0.85rem);
    color: #999;
  }
  
  .call-actions {
    display: flex;
    gap: 10px;
    margin-left: auto; /* "przesuwa" przyciski na prawą stronę */
  }
  
  .call-action {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
  }
  
  .call-action:hover {
    opacity: 0.8;
  }
  
  .call-end {
    background-color: #e74c3c; /* czerwony */
  }
  
  .call-accept {
    background-color: #2ecc71; /* zielony */
  }
  

  
  .mail-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .mail-address {
    font-size: clamp(0.9rem,2vw,1rem);
    font-weight: 600;
    color: #fff;
  }
  
  .mail-sender {
    font-size: 0.85rem;
    color: #999;
  }
  
  .mail-actions {
    display: flex;
    gap: 10px;
    margin-left: auto; /* Przyciski przesunięte do prawej */
  }
  
  .mail-action {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #3498db; /* Niebieskie kółko */
    color: #fff;               /* Biała ikonka */
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
  }
  
  .mail-action:hover {
    opacity: 0.8;
  }
  
  .phone-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* przerwa między boxami */
    padding: 25px 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }
  
  .call-box,
  .mail-box {
    width: 90%;       /* boxy zajmują 90% szerokości ekranu telefonu */
    height: 70px;
    display: flex;
    align-items: center;
    background-color: #1c1c1c;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  
  .quick-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
  }
  
  .quick-box {
    margin-top: 20px;
    width: 150px;
    height: 60px;
    background-color: #1c1c1c;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s ease;
  }

  .quick-box:hover {
    background-color: #3e3e3e;
  }
  
  
  .quick-icon {
    margin-top: 5px;

  }
  
  .quick-text {
    font-size: 1.2rem;
    font-weight: 600;
  }
  
  .contact-number {
    display: block;
    color: black;
    font-size: clamp(1.5rem, 2.2vw, 3rem);
    font-weight: 600;
  }
  
  /* Stylizacja e-maila */
  .contact-email {
    display: block;
    color: black;
    text-decoration: none;
    font-size: clamp(1.4rem, 2.2vw, 3rem);
    font-weight: 600;
  }

  .logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    margin-top: auto;
  }
  
  .logo-box img {
    max-width: 200px;
    height: auto;
    opacity: 0.8;
  }

  @media screen and (max-width: 1024px) {
    .contact-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    /* Ograniczenie szerokości i odstępy dla obu sekcji */
    .contact-container,
    .phone-wrapper {
      width: 100%;
      margin-bottom: 20px;
      display: flex;
      flex-direction: row;
      max-width: 320px;
    }

    .contact-box {
      width: 100%;
    }
  }

  /* Responsywność – najpierw contact-boxy, potem telefon */
@media screen and (max-width: 768px) {
  .contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-container,
  .phone-wrapper {
    width: 100%;
    margin-bottom: 20px;
    max-width: 320px;
  }

  .contact-box {
    padding: 10px 20px;
  }
}

/* Dodatkowe dostosowanie dla bardzo małych ekranów (np. smartfony) */
@media screen and (max-width: 480px) {
  .contact-container,
  .phone-wrapper {
    max-width: 100%;
    margin-bottom: 15px;
    max-width: 360px;
  }
}
