html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden; 
  box-sizing: border-box;
}

body {
  background-image: url("../images/27ac1b87d44a8a2f300d8334847aa31f_1200_800_cp-10018479131.png");
  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;
}

.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: #292929; color: white; font-weight: 700; }

.menu-item a:hover { transform: scale(1.07); }

.padding {
  text-align: center;
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: 999;
  font-size: 2vw;
}

.services {
  width: 97.6vw;
  height: 35.4vw;
  margin-left: 1.2vw;
}


.services {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw; 
  scrollbar-width: thin;       
  scrollbar-color: rgba(255,255,255,0.4) rgba(0,0,0,0.1); 
  margin-left: 2.5vw;
}

.services::-webkit-scrollbar {
  height: 1.067vw;                 
}

.services::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1); 
  border-radius: 0.533vw;
}

.services::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff4e50, #f9d423); 
  border-radius: 0.533vw;
  box-shadow: 0 0 2px rgba(0,0,0,0.5); 
  transition: background 0.3s;
}

.services::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #f9d423, #ff4e50); 
}

.service-card {
  background: rgba(51, 50, 50, 1);
  color: white;
  border-radius: 2.333vw;
  overflow: hidden;
  flex-direction: column;
  width: 22vw;        
  height: 24vw;
  box-sizing: border-box;
  font-weight: 505;
}

.service-card p {
  color: rgba(108, 108, 108, 1);
  font-size: 0.1vw;
  text-align: center;
}

.service-image img {
  width: 100%;
  height: 18vw;
  object-fit: cover; 
}

.service-info {
  padding: 1vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.service-info h3 {
  font-size: 1.8vw;
  margin: 0 0 0.5vw 0;
  text-align: center;
}

.service-info p {
  font-size: 0.9vw;
  flex-grow: 1; 
  margin: 0 0 1vw 0;
}

.service-info .btn {
  display: inline-block;
  padding: 0.6vw 1vw;
  background: red;
  color: white;
  text-align: center;
  font-weight: 700;
  border-radius: 0.6vw;
  text-decoration: none;
  transition: 0.3s;
  margin-left: 4vw;
  margin-right: 4vw;
  font-size: 0.9vw;
  margin-top: 13vw;
}

.service-info .btn:hover {
  transform: scale(1.05);
}

/* === ФОНЫ — ТОЛЬКО ИЗОБРАЖЕНИЯ (работает везде) === */
#built-in-refrigerator-classic {
  background: url(../img/1.jpg) center center / cover no-repeat;
}
#classic-kitchen-glass-fronts {
  background: url(../img/20.jpg) center center / cover no-repeat;
}
#classic-bar-zone-with-light {
  background: url(../img/2.jpg) center center / cover no-repeat;
}
#classic-hallway-with-mirror {
  background: url(../img/3.jpg) center center / cover no-repeat;
}
#mirror-wardrobe-hallway {
  background: url(../img/4.jpg) center center / cover no-repeat;
}
#classic-wardrobe-hall {
  background: url(../img/5.jpg) center center / cover no-repeat;
}
#classic-kitchen-gold {
  background: url(../img/6.jpg) center center / cover no-repeat;
}
#classic-kitchen-livingroom {
  background: url(../img/7.jpg) center center / cover no-repeat;
}
#classic-kitchen-with-bar-gold {
  background: url(../img/8.jpg) center center / cover no-repeat;
}
#white-kitchen-mint-accent {
  background: url(../img/9.jpg) center center / cover no-repeat;
}
#classic-cream-gold-kitchen {
  background: url(../img/10.jpg) center center / cover no-repeat;
}
#classic-kitchen-beige {
  background: url(../img/11.jpg) center center / cover no-repeat;
}
#modern-concrete-kitchen {
  background: url(../img/12.jpg) center center / cover no-repeat;
}
#modern-wood-white-kitchen {
  background: url(../img/13.jpg) center center / cover no-repeat;
}
#loft-gray-kitchen {
  background: url(../img/14.jpg) center center / cover no-repeat;
}
#white-gloss-kitchen {
  background: url(../img/15.jpg) center center / cover no-repeat;
}
#beige-ribbed-kitchen {
  background: url(../img/16.jpg) center center / cover no-repeat;
}
#classic-tv-wall {
  background: url(../img/17.jpg) center center / cover no-repeat;
}
#modern-black-wardrobe {
  background: url(../img/18.jpg) center center / cover no-repeat;
}
#white-classic-wall {
  background: url(../img/19.jpg) center center / cover no-repeat;
}
#modern-beige-kitchen {
  background: url(../img/21.jpeg) center center / cover no-repeat;
}

#classic-bedroom-gold {
  background: url(../img/22.jpeg) center center / cover no-repeat;
}

#classic-kitchen-brown-gold {
  background: url(../img/23.jpeg) center center / cover no-repeat;
}

#modern-bedroom-gray {
  background: url(../img/24.jpeg) center center / cover no-repeat;
}

#modern-livingroom-wood {
  background: url(../img/25.jpeg) center center / cover no-repeat;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 2.333vw;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 1.5vw;
  background-color: #333;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease;
}

.service-card:hover::before {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.service-info {
  position: relative;
  z-index: 2;
  padding: 2vw 1.5vw 1vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

.service-info h3 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  margin: 0 0 1vw 0;
  font-weight: 700;
  font-size: 1.8vw;
  line-height: 1.3;
  word-wrap: break-word;
}

.service-info .btn {
  margin-top: auto !important;
  align-self: center;
  background: #ff0000;
  color: white;
  font-weight: 700;
  font-size: 1vw;
  padding: 0.8vw 2.2vw;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
  min-width: 8vw;
  display: inline-block;
}

.service-info .btn:hover {
  background: #cc0000;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.5);
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ === */
@media (max-width: 768px) {
  .service-card {
    padding-bottom: 3vw;
    height: 90vw;
    border-radius: 8vw;
  }

  .service-info {
    padding: 3vw 2vw 2vw;
  }

  .service-info h3 {
    font-size: 6vw;
    margin-bottom: 2vw;
  }

  .service-info .btn {
    font-size: 4.5vw;
    padding: 3vw 6vw;
    border-radius: 50px;
    min-width: auto;
  }
}


@media (max-width: 768px) {

    * {
    -webkit-tap-highlight-color: transparent; 
    }
    button:focus, a:focus {
      outline: none; 
    }
    .menu { display: none; }

    .menu-phone img {
      width: 80.5vw;
      height: 4.3vw;
      transition: 0.15s;
      margin-top: 3vw;
      margin-bottom: 2.5vw;
      transition: 0.15s;
    }
    .menu-phone img.cross {
      height: 6.3vw;
      width: auto;
    }

    .title {
        width: 27.467vw;
        height: 10.867vw;
        font-size: 11.6vw;
    }

    .menu-phone {
        display: flex;
        width: 11.333vw;
        height: 10.533vw;
        border-radius: 2.4vw;
        background: rgba(88, 88, 88, 1);
        margin-left: 84vw;
        margin-top: -8.8vw;
        z-index: 10002;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        
    }

    .menu-base {
        display: flex;
        align-items: center;
        gap: 0.7vw;
        padding: 0.4vw 1vw;
        border-radius: 2.4vw;
        font-size: 4.8vw;
        font-weight: 999;
        transition: 0.3s;
        background: white;
        color: black;
        position: fixed;
        margin-left: 38vw;
        margin-top: 4.4vw;
        z-index: 10001;
    }
    .menu-base img {
        width: 7vw;
        height: 9vw;
        margin-left: 1vw;
        
    }
    .menu-base a {
      display: flex;
      text-decoration: none;
      color: black;
      align-items: center;
    }
    .menu-base span {
      margin-left: 1.8vw;
      margin-right: 1.7vw;
      margin-top: 1vw;
    }

    .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; }
    
    .padding {
      text-align: center;
      color: white;
      font-family: "Inter", sans-serif;
      font-weight: 999;
      font-size: 6vw;
    }
    .services {
        flex-direction: column;
        align-items: center;    
        gap: 4vw;               
        width: 90vw;            
        margin-left: auto;
        margin-right: auto;
        height: auto;          
    }

    .service-card {
        width: 90vw;           
        min-height: auto;  
        align-items: center;     
        flex-direction: column;
        border-radius: 10vw;
        height: 92vw;
    }

    .service-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 50vw;
    }

    .service-card .service-image img {
        height: auto; 
        text-align: center;   
        width: 90vw;      
    }

    .service-info h3 {
        font-size: 7vw;         
    }

    .service-info p {
        font-size: 3.3vw;
        margin-left: 7vw;
        margin-right: 7vw;   
        font-weight: 800; 
        margin-top: 2vw;
        margin-bottom: 2vw;
    }

    .service-info .btn {
        font-size: 4vw;         
        padding: 3vw 5vw;
        width: 23vw;
        border-radius: 4vw;
        align-self: center;
        margin-top: 1.5vw;
        margin-bottom: 1.5vw;
    }

    .content-block {
      padding: 8vw 4vw;
      border-radius: 4vw;
    }

    .text-block h1 {
      font-size: 6.8vw;
    }

    .text-block p {
      font-size: 3.8vw;
    }

    .gallery img {
      width: 80vw;
    }

    .service-card {
    padding-bottom: 3vw;
    height: 90vw;
    border-radius: 8vw;
    }
    .service-info {
      padding: 3vw 2vw 2vw;
    }
    .service-info h3 {
      font-size: 6vw;
      margin-bottom: 2vw;
    }
    .service-info .btn {
      font-size: 4.5vw;
      padding: 3vw 6vw;
      min-width: auto;
    }

    .service-info {
      padding: 3vw 2vw 2vw;
      gap: 1.5vw; /* отступ между текстом и кнопкой */
    }

    .service-info h3 {
      font-size: 5.8vw;           /* чуть меньше, чтобы влезло */
      line-height: 1.22;
      margin: 0;
      font-weight: 700;
      color: white;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
      
      /* ОГРАНИЧИВАЕМ 3 СТРОКИ ТОЛЬКО НА МОБИЛЕ */
      max-height: 22vw;           /* ~3 строки при 5.8vw */
      overflow: hidden;
      display: flex;
      flex-direction: column;
      -webkit-box-orient: vertical;
      text-overflow: ellipsis;
    }

    .service-info .btn {
      margin-top: auto !important;
      align-self: center;
      font-size: 4.5vw;
      padding: 2.8vw 5.5vw;
      min-width: auto;
      border-radius: 50px;
      background: #ff0000;
      color: white;
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    }

    .service-info .btn:hover {
      background: #cc0000;
      transform: translateY(-2px);
    }


  }
