/* === style.css — полный финальный === */

/* Reset & base */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
  max-width: 100%;
  overflow-x: hidden;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px;
}

/* Header */
header {
  background: #222;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}
.brand strong {
  font-size: 18px;
}
nav ul {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Breadcrumbs */
.breadcrumbs {
  background: #efefef;
  padding: 8px;
  font-size: 14px;
}
.breadcrumbs a {
  color: #007bff;
  text-decoration: none;
}

/* Hero */
.hero {
  background: #f4f4f4;
  padding: 34px 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.hero h1 {
  margin: 6px 0 6px;
  font-size: 28px;
}
.subtitle {
  color: #555;
  margin-bottom: 8px;
}
.fast-call {
  color: #c0392b;
  font-weight: 700;
  margin: 8px 0;
}

/* Buttons общие */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
}

/* === 📞 Кнопка с номером телефона === */
.btn-phone {
  display: inline-block;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  background-color: #28a745;
  color: #fff;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-phone:hover,
.btn-phone:focus {
  background-color: #218838;
  box-shadow: 0 6px 12px rgba(33, 136, 56, 0.5);
  outline: none;
}

/* Основные кнопки */
.btn-primary {
  background: #ff9800;
  color: #fff;
}
.btn-primary:hover {
  background: #e68900;
}
.btn-secondary {
  background: #6c757d;
  color: #fff;
}
.btn-secondary:hover {
  background: #5a6268;
}
.btn-email {
  background: #5d6d7a;
  color: #fff;
}
.btn-email:hover {
  background: #4a5560;
}
.btn-light {
  background: #fff;
  color: #222;
  border: 1px solid #ddd;
}
.btn-light:hover {
  background: #f1f1f1;
}
.btn-link {
  background: none;
  color: #007bff;
  border: 0;
  padding: 6px;
}
.btn-link:hover {
  text-decoration: underline;
}

/* Messengers */
.btn-messenger {
  display: inline-block;
  padding: 8px 12px;
  margin: 4px;
  border-radius: 8px;
  text-decoration: none;
  background: #2196f3;
  color: #fff;
}
.btn-max {
  background: #6f42c1;
}

/* Sections */
.section {
  padding: 28px 12px;
}
h2 {
  text-align: center;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}
.section p {
  margin: 0 0 10px 0;
}
.lead {
  font-weight: 600;
  color: #333;
}

/* About */
.about-flex {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.about-text {
  flex: 1 1 360px;
}
.about-img {
  flex: 0 0 300px;
  text-align: center;
}
.about-img img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Backgrounds/colors */
.reviews {
  background: #fff8e1;
}
.advantages {
  background: #e3f2fd;
}
.contacts {
  background: #f5f5f5;
}
.gift {
  background: #fff8e1;
}

/* bg tools overlay */
.bg-tools {
  position: relative;
  background: url('img/s_8.jpg') no-repeat center/cover;
  color: #fff;
  padding: 40px 12px;
}
.bg-tools::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}
.bg-tools .container {
  position: relative;
  z-index: 1;
}
.card-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
}

/* Docs grid */
.docs-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Contacts */
.contacts-footer {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.map {
  max-width: 100%;
  border-radius: 12px;
}

/* Form */
.order form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order input[type="tel"],
.order input[type="email"],
.order input[type="text"] {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  opacity: 0;
}
label.agree {
  display: block;
  font-size: 15px;
}
.form-notice {
  font-size: 13px;
  color: #555;
  text-align: center;
}
.vk-hint {
  font-size: 13px;
  color: #444;
}

/* Disclaimer & footer */
.disclaimer {
  background: #f8f9fa;
  padding: 18px;
  border-top: 1px solid #eee;
  font-size: 12px;
  line-height: 1.4;
}
footer {
  background: #222;
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 13px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #333;
  color: #fff;
  padding: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.cookie-banner .btn {
  font-size: 14px;
}

/* To top */
.to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #ff9800;
  color: #fff;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.to-top.show {
  display: flex;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
}

/* === Кнопки звонка и WhatsApp внизу справа === */
.call-whatsapp-block {
  position: fixed;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 12px;
  z-index: 9999;
}
.call-whatsapp-block a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.call-whatsapp-block a:hover {
  transform: scale(1.1);
}
.call-whatsapp-block .call-btn {
  background-color: #28a745; /* зелёный */
}
.call-whatsapp-block .whatsapp-btn {
  background-color: #25d366; /* whatsapp зелёный */
}

/* На маленьких экранах (например, телефонах) кнопки рядом и чуть выше */
@media (max-width: 480px) {
  .call-whatsapp-block {
    bottom: 20px;
    right: 20px;
  }
  .call-whatsapp-block a {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}
