
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}
nav ul li a:hover {
    background: #1a252f;
}
main {
    min-height: 70vh;
    padding: 40px 0;
}
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
footer a {
    color: #fff;
    text-decoration: underline;
}
h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.form-group label {
    width: 200px;
    font-weight: bold;
    color: #2c3e50;
}
.form-group select,
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    padding: 8px;
    border: 1px solid #b0c4de;
    border-radius: 4px;
    flex: 1;
    min-width: 200px;
}
.form-group input[type="radio"] {
    margin-left: 10px;
    margin-right: 5px;
}
.form-group button {
    background: #2c3e50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
.form-group button:hover {
    background: #1a252f;
}

.result {
    background: #e7f0ff;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
    border-left: 5px solid #2c3e50;
}
.result .price {
    font-size: 28px;
    color: #2c3e50;
    font-weight: bold;
}
.result .button {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}
.result .button:hover {
    background: #1a252f;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}
.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

@media (max-width: 768px) {
    .form-group label {
        width: 100%;
        margin-bottom: 5px;
    }
    nav ul {
        flex-direction: column;
        margin-top: 10px;
    }
    nav ul li {
        margin-left: 0;
        margin-bottom: 5px;
    }
    header .container {
        flex-direction: column;
        text-align: center;
    }
}
.layout-visual {
    margin-top: 30px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.layout-visual h3 {
    margin-top: 0;
    color: #2c3e50;
}
#layoutCanvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    background: #fff;
}
.services-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.service-item {
    flex: 1 1 180px;
    min-width: 140px;
}

.service-item label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.service-item select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #b0c4de;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
}

@media (max-width: 700px) {
    .service-item {
        flex: 1 1 140px;
    }
    .service-item label {
        font-size: 0.85rem;
    }
    .service-item select {
        padding: 5px;
    }
}

@media (max-width: 500px) {
    .services-row {
        flex-direction: column;
        gap: 10px;
    }
    .service-item {
        width: 100%;
    }
}

/* СТИЛИ ДЛЯ  КОНТАКТОВ */
.contacts-page {
  background-color: #f0f4f8;
  padding: 40px 0;
  font-family: 'Roboto', 'Arial', sans-serif;
  color: #1e2b37;
}

.contacts-page h1 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #2c3e50;
  margin-bottom: 40px;
  border-bottom: 2px solid #b0c4d9;
  padding-bottom: 15px;
}

/* Сетки */
.contacts-grid,
.addresses-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

.contacts-grid {
  grid-template-columns: repeat(3, 1fr);
}

.addresses-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Карточки */
.contact-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e2e8f0;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 40, 80, 0.1);
  border-color: #a0bbd9;
}

.contact-card h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 8px 0;
  color: #1f3a5f;
}

.card-subtitle {
  font-size: 0.9rem;
  color: #5d6f83;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #cbd5e0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: #2d4055;
}

.contact-item i {
  width: 20px;
  color: #4f7aa6;
  font-size: 1.1rem;
  margin-top: 3px;
}

.contact-item a {
  color: #1f3a5f;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: #2b6c9e;
  text-decoration: underline;
}

/* Карта */
.map-container {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
}

/* Адаптивность для контактов */
@media (max-width: 992px) {
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .addresses-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .contacts-page h1 {
    font-size: 2rem;
  }
  .map-container iframe {
    height: 300px;
  }
}
/* ===== НАШИ НОВЫЕ ПРАВИЛА ДЛЯ ЛОГОТИПА ===== */
.logo img {
    max-width: 200px;    /* Подберите нужное значение */
    height: auto;
    display: block;
}