body{

font-family:Inter,sans-serif;
margin:0;
color:#111827;
background:#f8fafc;

}

html{
scroll-behavior:smooth;
}

.container{

max-width:1200px;
margin:auto;
padding:60px 20px;

}


header{

background:white;
border-bottom:1px solid #eee;

}


.nav{

display:flex;
justify-content:space-between;
align-items:center;
gap:20px;

}


.logo{

font-size:22px;
font-weight:700;
white-space:nowrap;

}


.hero{

background-image:
linear-gradient(rgba(15,23,42,0.75),rgba(15,23,42,0.75)),
url("img/house_1600x900.jpg");

background-size:cover;
background-position:center;

color:white;

padding:140px 0;

}


.hero-grid{

display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
align-items:center;

}


h1{

font-size:52px;
margin-bottom:20px;
line-height:1.1;

}


.hero-text{

font-size:18px;
margin-bottom:30px;
max-width:500px;

}


h2{

font-size:36px;
margin-bottom:14px;
text-align:center;

}


h4{

font-size:20px;
font-weight:500;
margin-bottom:30px;
text-align:center;

}


.grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:24px;

}


.card{

background:white;

padding:28px;

border-radius:18px;

box-shadow:0 15px 40px rgba(0,0,0,0.08);

transition:0.35s;

border:1px solid rgba(0,0,0,0.03);

}


.card:hover{

transform:translateY(-6px);

box-shadow:0 30px 60px rgba(0,0,0,0.15);

}


.card-dark{

background:#1e293b;
color:white;

padding:24px;
border-radius:16px;

text-align:center;

}


.card i{

width:36px;
height:36px;

color:#2563eb;

margin-bottom:12px;

}


.dark{

background:#0f172a;
color:white;

}


.scheme{

font-size:22px;
text-align:center;
max-width:600px;
margin:auto;

}


.price{

font-size:22px;
font-weight:700;
margin-top:10px;

}


.btn{

background:#2563eb;
color:white;

padding:10px 18px;

border-radius:10px;
text-decoration:none;

transition:0.3s;

}


.btn:hover{

background:#1d4ed8;

}


.btn-big{

background:linear-gradient(135deg,#2563eb,#3b82f6);

color:white;

padding:16px 28px;

border-radius:12px;

font-size:18px;

border:none;

cursor:pointer;

transition:0.3s;

box-shadow:0 10px 25px rgba(37,99,235,0.35);

}


.btn-big:hover{

transform:translateY(-2px);

box-shadow:0 20px 40px rgba(37,99,235,0.45);

}


.form{

display:grid;
gap:16px;
max-width:400px;
margin:auto;

}


input,select,textarea{

padding:16px;

border-radius:10px;

border:1px solid #e5e7eb;

font-size:16px;

}


footer{

background:white;
padding:20px 0;          /*  30px можно изменить: 20px (ещё меньше) или 45px (чуть больше) */
text-align:center;

}


section{

padding:80px 0;

}


.steps{

display:grid;
grid-template-columns:1fr 1fr;
gap:40px;

}


@media(max-width:800px){

.nav{

flex-wrap:wrap;

}

.hero-grid{

grid-template-columns:1fr;

}

.steps{
grid-template-columns:1fr;
}

h1{

font-size:36px;

}

.hero{

padding:100px 0;

}

}

.step{

text-align:center;

}

.step img{

width:100%;
border-radius:16px;

box-shadow:0 20px 50px rgba(0,0,0,0.15);

margin-top:20px;

transition:0.3s;

}

.step img:hover{

transform:scale(1.02);

}

.step h3{

margin-bottom:10px;

}

.step p{

color:#6b7280;

}

.step-desc{
color:#6b7280;
margin-bottom:10px;
}

.badge{

display:inline-block;

padding:8px 14px;

border-radius:999px;

font-size:14px;

margin-bottom:15px;

}

.bad{
background:#fcfcc7;
color:#646516;
}

.good{
background:#dcfce7;
color:#166534;
}

.step img {
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.step img.zoomed {
    transform: scale(1.95) !important;   /* степень увеличения — можно 1.7–2.2 */
    box-shadow: 0 40px 100px rgba(0,0,0,0.4) !important;
    z-index: 100;
    position: relative;
}

/* Затемнение фона при зуме (опционально, но красиво) */
body.zoomed-mode::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 90;
    pointer-events: none;
    transition: opacity 0.4s;
}

/* На мобильных устройствах можно сделать чуть меньше масштаб */
@media (max-width: 800px) {
    .step img.zoomed {
        transform: scale(1.55) !important;
    }
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.popup.hidden {
  opacity: 0;
  pointer-events: none;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  transform: scale(0.8);
  animation: popupIn 0.3s ease forwards;
}

.popup-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.popup-content h3 {
  margin-bottom: 10px;
}

.popup-content button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #2e7dff;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes popupIn {
  to {
    transform: scale(1);
  }
}


input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
    outline: none;
}

.field-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.4;
}


/* Tooltip стили */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip-wrapper .tooltip-text {
  visibility: hidden;
  width: max-content;
  max-width: 280px;
  background-color: #1e293b;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 10px 14px;
  position: absolute;
  z-index: 10;
  bottom: 130%;               /* выше элемента */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}

.tooltip-wrapper .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

/* Показываем при наведении / фокусе */
.tooltip-wrapper:hover .tooltip-text,
.tooltip-wrapper:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* На мобильных — показываем при долгом нажатии (active) */
@media (hover: none) {
  .tooltip-wrapper:active .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
  }
}

/* === Номер телефона в шапке === */
.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;                    /* увеличил расстояние между телефоном и кнопкой */
  flex-wrap: wrap;
  justify-content: flex-end;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.phone-link:hover {
  color: #2563eb;
}

.phone-link i {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

/* Адаптив */
@media (max-width: 900px) {
  .header-contact {
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .nav {
    flex-direction: column;
    padding: 15px 0;
    gap: 15px;
  }
  
  .header-contact {
    justify-content: center;
    width: 100%;
  }
}

/* ================================================
   НИЖНИЙ БЛОК КОНТАКТОВ — скромный вариант
   Уменьшенные отступы + комментарии по настройке
   ================================================ */

.contact-bar {
  background: #f8fafc;
  padding: 25px 0;                    /*  Основной вертикальный отступ 35px можно изменить: 25px (ещё меньше) или 45px (чуть больше) */
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.contact-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;                          /*  расстояние между элементами контактов */
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;                          /*  расстояние между иконкой и ссылкой */
}

.contact-item i {
  width: 22px;
  height: 22px;
  color: #2563eb;
}

.contact-link {
  font-size: 19px;                    /*  размер текста ссылок */
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
}

.contact-link:hover {
  color: #2563eb;
}

.contact-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 15px;
  margin: 8px 0 0 0;
}

/* ===================== АДАПТИВ ===================== */
@media (max-width: 768px) {
  .contact-block {
    gap: 28px;                        /* уменьшаем расстояние на планшетах */
  }
  
  .contact-link {
    font-size: 17px;
  }
}

@media (max-width: 500px) {
  .contact-block {
    flex-direction: column;
    gap: 18px;                        /* на мобильных — в столбик */
  }
  
  .contact-bar {
    padding: 26px 0;                  /* ещё меньше отступов на маленьких экранах */
  }
}


/* === Логотип в шапке с эмблемой === */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;                    /* расстояние между эмблемой и текстом */
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  color: #111827;
  text-decoration: none;
}

.logo-emblem {
  width: 64px;                  /* размер эмблемы в шапке */
  height: 64px;
  object-fit: contain;          /* чтобы картинка не искажалась */
  border-radius: 8px;           /* лёгкое скругление (по желанию можно убрать) */
}

/* Адаптив — на маленьких экранах эмблема чуть меньше */
@media (max-width: 600px) {
  .logo-emblem {
    width: 36px;
    height: 36px;
  }
  
  .logo {
    font-size: 20px;
    gap: 10px;
  }
}





.problems {
  padding: 30px 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.problems-box {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 12px;
}
