/* Общие стили для страниц сайта MAGLOLIS */
:root {
  --primary-color: #db2c2c;
  --secondary-color: #161b2e;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --font-main: 'Arial', sans-serif;
}

/* Промо-бар */
.promo-bar {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 0;
}

.promo-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-text {
  font-weight: bold;
  margin-right: 10px;
}

.promo-description {
  margin-right: 20px;
}

.promo-button {
  background-color: transparent;
  border: 1px solid white;
  color: white;
  padding: 5px 15px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.promo-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Шапка сайта */
.header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.logo img {
  height: 60px;
}

.region-selector {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.region-selector i {
  margin-left: 5px;
  color: var(--primary-color);
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  font-size: 14px;
  position: relative;
  color: var(--text-color);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a.active {
  color: var(--primary-color);
  font-weight: bold;
}

.main-nav a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.main-nav a:hover:after,
.main-nav a.active:after {
  width: 100%;
}

/* Выпадающее меню навигации */
.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  margin-top: 5px;
}

.main-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.main-nav .dropdown .dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown-menu li {
  margin: 0;
  display: block;
  width: 100%;
}

.main-nav .dropdown-menu a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.main-nav .dropdown-menu li:last-child a {
  border-bottom: none;
}

.main-nav .dropdown-menu a:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.main-nav .dropdown-menu a:after {
  display: none;
}

.main-nav .dropdown > a i {
  margin-left: 5px;
  font-size: 10px;
  transition: transform 0.3s;
}

.main-nav .dropdown:hover > a i {
  transform: rotate(180deg);
}

/* Основной контент страниц */
.page-content {
  padding: 40px 0;
  background-color: var(--light-gray);
  flex: 1;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary-color), #b91c1c);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 20px;
  opacity: 0.9;
}

/* Карточки контента */
.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.content-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.content-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #b91c1c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  font-size: 32px;
}

.content-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.content-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.content-features {
  list-style: none;
  padding: 0;
}

.content-features li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #555;
}

.content-features li i {
  color: #28a745;
  margin-right: 10px;
  width: 16px;
}

.content-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 15px;
}

/* Информационные блоки */
.info-section {
  background: white;
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #1a1a1a;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.info-item {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 25px;
  transition: all 0.3s ease;
}

.info-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(219, 44, 44, 0.1);
}

.info-item h4 {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.info-item h4 i {
  margin-right: 10px;
  font-size: 20px;
}

.info-item ul {
  list-style: none;
  padding: 0;
}

.info-item ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.info-item ul li:last-child {
  border-bottom: none;
}

.info-item ul li i {
  color: #28a745;
  margin-right: 10px;
  width: 16px;
}

/* Футер */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 40px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: white;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 5px 0;
  color: #ccc;
  font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .page-hero h1 {
    font-size: 32px;
  }
  
  .content-cards {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .promo-bar .container {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-hero {
    padding: 40px 0;
  }
  
  .page-hero h1 {
    font-size: 28px;
  }
  
  .content-card,
  .info-section {
    padding: 20px;
  }
}

/* Статистика достижений */
.achievements-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.achievement-item {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--primary-color), #b91c1c);
  border-radius: 15px;
  color: white;
  box-shadow: 0 10px 30px rgba(219, 44, 44, 0.3);
  transition: transform 0.3s ease;
}

.achievement-item:hover {
  transform: translateY(-5px);
}

.achievement-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.achievement-text {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

/* Стили для калькулятора утеплителя */
.calculator-section {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 40px 0;
}

.calculator-section h2 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-size: 28px;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calculator-form {
  background-color: var(--light-gray);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--secondary-color);
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 14px;
  background-color: white;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(219, 44, 44, 0.2);
}

.calculator-results {
  background-color: var(--light-gray);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.calculator-results h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
  font-size: 20px;
}

.results-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 25px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: white;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}

.result-label {
  font-weight: bold;
  color: var(--secondary-color);
  font-size: 14px;
}

.result-value {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 14px;
}

.results-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.results-actions button {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #c12525;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(219, 44, 44, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--light-gray);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .calculator-section {
    padding: 20px;
  }
  
  .calculator-section h2 {
    font-size: 24px;
  }
  
  .results-actions {
    flex-direction: column;
  }
  
  .results-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 576px) {
  .calculator-section {
    padding: 15px;
    margin: 20px 0;
  }
  
  .calculator-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .calculator-form,
  .calculator-results {
    padding: 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .result-value {
    font-size: 16px;
  }
}

/* Анимации */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calculator-results {
  animation: slideIn 0.5s ease-out;
}

.result-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Стили для визуализации фасадной системы */
.facade-visualization {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 40px 0;
  text-align: center;
}

.facade-visualization h2 {
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-size: 24px;
}

.facade-scheme {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  padding: 20px;
  border: 2px solid var(--border-color);
}

.facade-svg {
  max-width: 100%;
  height: auto;
  width: 600px;
}

.element-label {
  font-size: 12px;
  font-weight: bold;
  fill: var(--secondary-color);
  font-family: Arial, sans-serif;
}

.dimension-text {
  font-size: 11px;
  fill: #666;
  font-family: Arial, sans-serif;
}

.dimension-lines {
  stroke-dasharray: 3,3;
}

/* Адаптивность для визуализации */
@media (max-width: 768px) {
  .facade-visualization {
    padding: 20px;
  }
  
  .facade-svg {
    width: 100%;
    max-width: 500px;
  }
  
  .element-label {
    font-size: 10px;
  }
  
  .dimension-text {
    font-size: 9px;
  }
}

@media (max-width: 576px) {
  .facade-visualization {
    padding: 15px;
  }
  
  .facade-svg {
    max-width: 400px;
  }
  
  .element-label {
    font-size: 8px;
  }
}

/* Дополнительные правила для правильного позиционирования footer */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Принудительное позиционирование main и page-content */
main,
.page-content {
  flex: 1 0 auto;
}

/* Footer всегда внизу */
.footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* Исправления для всех секций контента */
.content-cards,
.info-section,
.calculator-section {
  margin-bottom: 30px;
}

/* Убираем конфликтующие min-height */
.page-content {
  min-height: unset !important;
} 