html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden; 
  box-sizing: border-box;
}

body {
  background-image: url("../images/background-2.jpg") ;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  min-width: 100vw;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.title {
  color: white;
  font-size: 3.6vw;
  font-weight: 700;
  margin-left: 1vw;
  margin-top: 2vw;
}


.menu-phone { display: none; }
.menu-base { display: none; }
.menu-all { display: none; }


.menu {
  display: flex;
  gap: 1vw;
  margin-left: 28vw;
  margin-top: -3.6vw;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 0.7vw;
  padding: 0.4vw 1vw;
  border-radius: 0.9vw;
  font-size: 1.6vw;
  font-weight: 900;
  text-decoration: none;
  transition: 0.3s;
}

.menu-item img {
  width: 1.5vw;
  height: 1.3vw;
}

.menu-item.white a { background: white; color: black; }
.menu-item.dark a { background: #292929; color: white; }
.menu-item.call a { background: #ff0000; color: white; font-weight: 700; }

.menu-item a:hover { transform: scale(1.07); }

.heading {
  display: flex;
  font-family: "Inter", sans-serif;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 3.6vw;
  margin-top: 1vw;
}

.base {
  display: block;
  width: 92.8%;
  margin-left: 3.6%;
  border-radius: 1.333vw;
  background: rgba(53, 53, 53, 1);
  padding: 1vw 1vw; 
  box-sizing: border-box;
  text-align: center; 
}

.base p {
  color: white;
  font-family: "Roboto", sans-serif;
  font-weight: 730;
  line-height: 1.6;  
  margin-bottom: 1.4vw; 
}


.stylish {
  width: 68.667vw;
  height: 33.216vw;
}

.partners-section {
  padding: 2vw 2vw;
  text-align: center; /* слева направо */
  margin: 2vw auto;
  max-width: 1200px;
  background: none; /* фон убран */
  border-radius: 0;
}

.partners-section h2 {
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 2.5vw;
  margin-bottom: 1.5vw;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  justify-content: flex-start; /* слева направо */
}

.partner {
  flex: 0 1 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.partner:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {

    * {
    -webkit-tap-highlight-color: transparent; 
    }
    button:focus, a:focus {
      outline: none; 
    }
    .menu { display: none; }

    .menu-phone img {
      width: 5vw;
      height: 12vw;
      transition: 0.15s;
    }
    .menu-phone img.cross {
      width: 5vw;
      height: 12vw;
    }

    .title {
        width: 27.467vw;
        height: 10.867vw;
        font-size: 11.6vw;
        position: sticky;
        z-index: 1000;
    }

    .menu-phone {
        display: flex;
        width: 11.333vw;
        height: 10.533vw;
        border-radius: 2.4vw;
        background: rgba(88, 88, 88, 1);
        margin-left: 82vw;
        margin-top: 3.2vw;
        z-index: 10002;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        position: fixed;
    }

    .menu-base {
        display: flex;
        align-items: center;
        gap: 0.7vw;
        padding: 0.4vw 1vw;
        border-radius: 2.4vw;
        font-size: 5.8vw;
        font-weight: 999;
        transition: 0.3s;
        background: white;
        color: black;
        position: fixed;
        margin-left: 49vw;
        margin-top: 3vw;
        z-index: 10001;
    }
    .menu-base img {
        width: 7vw;
        height: 9vw;
        margin-left: 1vw;
        margin-bottom: 0.6vw;
    }
    .menu-base a {
      display: flex;
      text-decoration: none;
      color: black;
      align-items: center;
    }
    .menu-base span {
      margin-left: 1.8vw;
      margin-right: 1.7vw;
    }

    .menu-all.active {
      position: absolute;
      top: 2.6vw;            
      right: 4.2vw;          
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 46vw;          
      max-width: 48vw;
      max-height: 82vh;     
      background: rgba(88, 88, 88, 1);
      border-radius: 2.6vw;
      padding: 12.8vw 1.6vw 1.6vw 1.6vw; 
      gap: 1.2vw;
      z-index: 10000;
      box-sizing: border-box;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      box-shadow: 0 8px 22px rgba(0,0,0,0.38);
    }

    .menu-close {
      position: absolute;
      top: -3.6vw;           
      right: -3.6vw;        
      width: 6.6vw;
      height: 6.6vw;
      border-radius: 50%;
      background: rgba(45,45,45,0.98);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 3.6vw;
      line-height: 1;
      border: none;
      cursor: pointer;
      z-index: 10003;
      box-shadow: 0 6px 14px rgba(0,0,0,0.36);
    }

    #main { display: inline; }

    .menu-one.button {
        display: flex;
        align-items: center;
        gap: 1vw;
        padding: 2.2vw 1.4vw;
        border-radius: 2.6vw;
        font-size: 3.6vw;
        font-weight: 900;
        text-decoration: none;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    .menu-one.button img {
        width: 6.2vw;
        height: 5.2vw;
        flex-shrink: 0;
        margin-left: 1vw;
    }
    .menu-one.button a {
        text-decoration: none;
        color: inherit;
        display: flex;
        align-items: center;
        gap: 1vw;
        width: 100%;
    }

    .menu-one.button.white { background: #fff; color: #000; }
    .menu-one.button.black { background: #292929; color: #fff; }

    
    .menu-one.button.call { background: #ff0000; color: #fff; font-weight: 700; }
    .menu-one.button.call span {
        font-size: 3.0vw;          
        white-space: normal;
        line-height: 1.05;
    }
    .menu-one.button.call img {
        width: 5.6vw;
        height: 5.6vw;
    }

    .menu-one.button:active { transform: translateY(1px); outline: none; }

    .menu-one span {
        display: inline-block;
        line-height: 1.05;
        word-break: break-word;
    }

    #osoboCALL span {
        font-size: 3.8vw;
    }

    #osoboMAIN span {
        font-size: 4.2vw;
    }

    .menu-all.active::-webkit-scrollbar { width: 6px; }
    .menu-all.active::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.25); border-radius: 6px; }
    .menu-all.active { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.25) transparent; }
    
    .partners-section h2 {
        font-size: 5vw;
        text-align: center;
    }
    .partners {
        gap: 4vw;
    }
    .partner {
        flex: 0 1 40%;   
        margin-bottom: 2vw;
    }
    .menu-phone img {
    width: 5vw;
    height: 12vw;
  }

  .title {
    font-size: 11vw;
    margin-top: 1vw;
  }

  .heading {
    margin-top: 12vw; 
    font-size: 9vw;
    text-align: center;
    position: sticky;   

  }

  .partners-section h2 {
    font-size: 5vw;
    margin-top: 2vw;
  }

  .partners {
    gap: 4vw;
  }

  .partner {
    flex: 0 1 30%;
    margin-bottom: 2vw;
  }
  #top-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;                  
  background: rgba(0,0,0,0.9); 
  opacity: 0;
  transition: opacity 220ms ease, height 220ms ease;
  pointer-events: none;       
  z-index: 10000;              
}

#top-bg.active {
  opacity: 1;
}

.title.floating {
  position: fixed;
  top: 0;
  left: 0;
  margin-left: 1vw;   
  margin-top: 0;
  z-index: 10003;     
}

#title-spacer {
  width: 100%;
  height: 0;
}

.menu-base, .menu-phone {
  z-index: 10001;
}
.title.floating.small {
  transform: translateY(0);
}
  }

  
