body {
  margin: 0;
  background: #0d0d0d;
  color: #fff;
  font-family: Arial, sans-serif;
}



h1, h2, h3 {
  font-weight: 900;
  color: #fff;
}

.fade {
  animation: fadeIn 0.7s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* Header */
.header {
  background: #111;
  padding: 15px 0;
  border-bottom: 1px solid #222;
  
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  
}

.head-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

.contacts a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  transition: 0.2s;
}

.contacts a:hover {
  color: red;
}

.call-mobile {
  display: none; /* скрыта на ПК */
  padding: 8px 14px;
  background: red;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  margin-left: auto;
}

/* Мобильная версия */
@media (max-width: 768px) {

  /* Делаем шапку в одну строку */
  .head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Показываем кнопку Позвонить */
  .call-mobile {
    display: inline-flex;
  }

  /* Убираем блок контактов */
  .contacts {
    display: none !important;
  }
  .content {
    margin-top: 20px;
  }
}


@media (max-width: 768px) {

  .head-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
  }

  /* Логотип немного уменьшим */
  .logo img {
    height: 38px;
  }

  /* Кнопка Позвонить */
  .call-mobile {
    display: inline-flex;
    padding: 7px 14px;
    background: red;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;

    /* убираем смещение вправо */
    margin-left: 0 !important;
    margin-right: 0 !important;

    flex-shrink: 0; /* не даём ей "уменьшаться" */
  }

  /* скрываем контакты */
  .contacts {
    display: none !important;
  }
  .content {
    margin-top: 20px;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #000 0%, #330000 50%, #cc0000 100%);
}

.btn {
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  transition: 0.25s;
}

.btn-red { background: red; color: #fff; }
.btn-red:hover { opacity: 0.85; }

/* Services */
.services {
  padding: 60px 15px;
  max-width: 1200px;
  margin: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
}

.card {
  background: #111;
  padding: 25px;
  border-radius: 14px;
  border: 1px solid #222;
  transition: 0.25s;
}

.card:hover {
  border-color: red;
  transform: translateY(-4px);
}

/* Gallery */
.gallery {
  padding: 60px 15px;
  max-width: 1200px;
  margin: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #222;
}

/* Price */
.price {
  padding: 60px 15px;
  max-width: 900px;
  margin: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

.price-table th, .price-table td {
  padding: 14px;
  border-bottom: 1px solid #222;
}

.price-table tr:hover {
  background: #181818;
}

/* Form */
.form {
  padding: 80px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-box {
  background: #111;
  padding: 40px;
  border-radius: 16px;
  border: 2px solid rgba(220,0,0,0.25);
  width: 100%;
  max-width: 480px;
}

.form input {
  padding: 14px;
  width: 100%;
  background: #181818;
  border: 1px solid #222;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 14px;
}

.form input:focus {
  border-color: red;
}

.form button {
  padding: 14px;
  width: 100%;
  border-radius: 10px;
  border: none;
  background: red;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.form button:hover {
  opacity: 0.85;
}

/* Map */
.map {
  text-align: center;
  padding: 60px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.map-box {
  max-width: 1100px;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,0,0,0.3);
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.map-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-tg {
  background: #229ED9;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.btn-border {
  background: #111;
  border: 2px solid red;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
}

/* Footer */
.footer {
  padding: 25px;
  text-align: center;
  background: #111;
  border-top: 1px solid #222;
}

.benefits {
  text-align: center;
  padding: 50px 20px;
  color: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px 40px;
  max-width: 900px;
  margin: 30px auto 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  line-height: 1.35em;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 18px;
  border-radius: 12px;
}

.benefit-item .icon {
  font-size: 22px;
  color: #ff2a2a; /* красный акцент */
  margin-top: 2px;
}

@media (max-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .content {
    margin-top: 20px;
  }
}


.calc-section {
  padding: 60px 20px;
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.calc-text h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}

.calc-photo img {
  width: 420px;
  max-width: 100%;
 
}
.calc-btn {
  background: linear-gradient(90deg, #ff1e1e, #b60000);
  color: #fff;
  padding: 18px 38px;
  font-size: 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s ease;
}

.calc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 35, 35, 0.4);
}

@media (max-width: 600px) {
  .calc-block h2 {
    font-size: 24px;
  }
  .calc-btn {
    width: 100%;
    font-size: 18px;
    padding: 16px 0;
  }
  .content {
    margin-top: 20px;
  }
}




.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Окно */
.popup-window {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 35px 40px;
  border-radius: 14px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  color: #fff;
  animation: popupShow .35s ease;
}

@keyframes popupShow {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Крестик */
.popup-close {
  position: absolute;
  right: 25px;
  top: 15px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  transition: .2s;
}

.popup-close:hover {
  color: #ff2a2a;
}

/* Поля формы */
.popup-form input {
  width: 100%;
  padding: 14px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
}

/* Кнопка */
.popup-form button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, #ff1e1e, #b60000);
  border: none;
  color: #fff;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: .25s ease;
}

.popup-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 40, 40, 0.45);
}

.gimg {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  transition: 0.25s;
  border: 2px solid rgba(255,0,0,0.18);
  box-shadow: 0 0 25px rgba(0,0,0,0.55);
}

.gimg:hover {
  transform: scale(1.03);
  border-color: red;
  box-shadow: 0 0 35px rgba(255,0,0,0.4);
}


.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 420px;
  width: 90%;
  background: rgba(20, 20, 20, 0.97);
  color: #fff;
  padding: 18px 20px;
  border-radius: 14px;
  z-index: 9999;
  border: 1px solid #ff2a2a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);

  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.cookie-banner a {
  color: #ff4a4a;
  text-decoration: underline;
}

.cookie-banner button {
  background: red;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
}

.cookie-banner button:hover {
  background: #cc0000;
}

.cookie-banner.hidden {
  display: none;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  .content {
    margin-top: 20px;
  }
}

/* Контент */
.content {
  max-width: 900px;
  margin: 5% auto;
  padding: 20px;
  margin-top: 80px;
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #ff2a2a;
}

h2 {
  color: #ff2a2a;
  margin-top: 30px;
}

/* Кнопка назад */
.back-btn {
  display: block;
  width: fit-content;
  margin: 50px auto 80px;
  padding: 12px 25px;
  background: #d40000;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 17px;
}
.back-btn:hover {
  background: #ff2a2a;
}


/* Кнопка прокрутки вверх */
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #d40000;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: 0.3s;
}

.scroll-top-btn:hover {
  background: #d40000;
  border-color: #fff;
}