/* Сброс и базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* CSS переменные для цветов и стилей */
:root {
  /* Основные цвета */
  --primary-color: #2c3e50; /* Темно-синий для основного цвета */
  --secondary-color: #3498db; /* Голубой для акцентов */
  --accent-color: #e74c3c; /* Красный для акцентов */
  --success-color: #27ae60; /* Зеленый для успешных состояний */
  --light-color: #ecf0f1; /* Светло-серый для фона */
  --bg: #ddd;
  --text: #ddd;

  /* Тени */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);

  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Отступы */
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-xl: 4rem;

  /* Переходы */
  --transition: all 0.3s ease;
}

body {
  display: flex;
  flex-direction:column;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
  line-height: 1.6;
  background:var(--bg);
  color:var(--text);
  transition: background-color 0.3s ease;
}

.light-theme {
  background: white;
  color: black;
}

.dark.theme {
  background-color: black;
  color: white;
}

.boxed-text {
  border: 2px solid currentColor;
  padding: 15px;
  margin: 20px;
}

.container {
  clear: both;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 1.2rem;
}

/* Стили для шапки */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 600;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flexing {
  display: flex;
  flex-direction: column;
}

.logo {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  align-self: flex-start;
  gap: 20px;
}

.logo i {
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.logo-text h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.logo-text p {
  font-size: 0.9rem;
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 30px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem;
  transition: var(--transition);
  border-radius: 20px;
}

nav a:hover, nav a.active {
  background-color: var(--secondary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Стили для главного баннера */
.hero {
  background: linear-gradient(rgba(44,62,80,0.85), rgba(44,62,80,0.9)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 3rem;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  margin: auto;
  font-size: 1.5rem;
  max-width: 800px;
  margin-bottom: 0 auto 30px;
  opacity: 0.9; 
}
.btn-space {
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-accent {
  background-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: #c0392b;
}


/* Стили для раздела услуг */
.section-title {
  text-align: center;
  margin: 3rem 0 3rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}
        
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
        
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
}
        
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
        
.service-card {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: white;
  border-radius: 3rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
        
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
        
.service-icon {
  background-color: var(--secondary-color);
  color: white;
  font-size: 2.5rem;
  padding: 25px;
  text-align: center;
}
        
.service-content {
  padding: 30px;
  font-size: 1.3rem;
}
        
.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}
        
.service-content ul {
  list-style-position: inside;
  margin-bottom: 30px;
}
        
.service-content li {
  margin-bottom: 8px;
  color: #555;
}

/* Стили для калькулятора */
.calculator {
  background-color: white;
  padding: 2rem;
  border-radius: 3rem;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: x-large;
}
        
.calculator h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-size: 1.8rem;
}
        
.form-group {
  margin-bottom: 20px;
}
        
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-color);
}
        
.form-group select, .form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1.2rem;
}

.calculator-result {
  background-color: var(--light-color);
  padding: 20px;
  border-radius: 5px;
  margin-top: 30px;
  display: none;
}

.calculator-result.active {display: block;}

.result-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ccc;
}

.total {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-top: 10px;
}

/* Стили для формы заявки */
.request-form {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto 60px;
}

.request-form h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {flex: 1;}

textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  min-height: 150px;
  resize: vertical;
}

.form-status {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: none;
}

.form-status.success {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
  border: 1px solid var(--success-color);
  display: block;
}

.form-status.error {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  display: block;
}

/* Стили для подвала */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 50px 0 20px;
  margin-top: auto;
}

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

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.contact-info {list-style: none;}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-info i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Адаптивность */

/* Большие экраны (до 1200px) */
@media (max-width: 1200px) {
  .container {
    width: 95%;
    padding: 0 5px;
  }

  .hero h2 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

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

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 700px;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

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

  .calculator, .request-form {
    padding: 30px;
    max-width: 700px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }
}

/* iPad Air (до 820px) */
@media (max-width: 820px) {
  .hero h2 {
    font-size: 2.3rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 650px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

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

  .calculator, .request-form {
    padding: 28px;
    max-width: 650px;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
  }
}

/* Маленькие планшеты и большие смартфоны (до 768px) */
@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    gap: 15px;
  }

  nav ul.active {
    display: flex;
  }

  nav a {
    width: 100%;
    height: auto;
    padding: 15px 20px;
    justify-content: flex-start;
  }

  .mobile-menu-btn {
    display: block;
  }

  .logo i {
    font-size: 2rem;
  }

  .logo h1 {
    font-size: 1.6rem;
  }

  .logo p {
    font-size: 0.8rem;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    margin: 40px 0 30px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    max-width: 100%;
  }

  .calculator, .request-form {
    padding: 25px 20px;
    max-width: none;
  }

  .calculator h3, .request-form h3 {
    font-size: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-column h3 {
    font-size: 1.2rem;
  }
}

/* Смартфоны (до 480px) */
@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }

  header {
    padding: 15px 0;
  }

  .logo {
    gap: 15px;
  }

  .logo i {
    font-size: 1.8rem;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .logo p {
    font-size: 0.75rem;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .section-title {
    margin: 30px 0 20px;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title h2::after {
    width: 60px;
    height: 3px;
  }

  .service-icon {
    padding: 20px;
    font-size: 2rem;
  }

  .service-content {
    padding: 20px;
  }

  .service-content h3 {
    font-size: 1.3rem;
  }

  .calculator, .request-form {
    padding: 20px 15px;
  }

  .calculator h3, .request-form h3 {
    font-size: 1.4rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group select, .form-group input {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .calculator-result {
    padding: 15px;
  }

  .result-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  footer {
    padding: 30px 0 15px;
  }

  .footer-column h3 {
    font-size: 1.1rem;
  }

  .contact-info li {
    font-size: 0.9rem;
  }
}

/* Маленькие смартфоны (до 360px) */
@media (max-width: 360px) {
  .container {
    width: 98%;
    padding: 0 5px;
  }

  .logo {
    gap: 10px;
  }

  .logo i {
    font-size: 1.5rem;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .logo p {
    font-size: 0.7rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .service-icon {
    padding: 15px;
    font-size: 1.8rem;
  }

  .service-content {
    padding: 15px;
  }

  .service-content h3 {
    font-size: 1.2rem;
  }

  .calculator, .request-form {
    padding: 15px 10px;
  }

  .calculator h3, .request-form h3 {
    font-size: 1.3rem;
  }

  .form-group select, .form-group input {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .footer-column h3 {
    font-size: 1rem;
  }

  .contact-info li {
    font-size: 0.85rem;
  }

  .copyright {
    font-size: 0.8rem;
  }
}



