/* ==================== */
/* БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ */
/* ==================== */
:root {
  --primary-color: #0066cc;
  --primary-hover: #004d99;
  --text-color: #333;
  --light-bg: #f5f9ff;
  --border-radius: 8px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --side-padding: 5%;
  --transition: all 0.3s ease;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Дополнительные элементы, которые могут потребовать сброса */
input, textarea, select, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-left: 5%;
  margin-right: 5%;
}

/* ==================== */
/* ОБЩИЕ КОМПОНЕНТЫ */
/* ==================== */
/* Шапка сайта */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 10px;
}

.logo-container {
  cursor: pointer;
}

.logo-img {
  width: 180px;
  height: auto;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.07);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

nav a:hover {
  color: #0066cc;
}

/* Кнопки */
.cta-button, .btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
}

.cta-button {
  background: white;
  color: #0066cc;
  border: 2px solid white;
}

.cta-button:hover {
  background: transparent;
  color: white;
}

.btn {
  background: #0066cc;
  color: white;
  border: none;
}

.btn:hover {
  background: var(--primary-hover);
}

/* Карточки */
.service-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Сетки */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* ==================== */
/* СТРАНИЦА: ГЛАВНАЯ */
/* ==================== */
/* Главный баннер */
.hero {
  text-align: center;
  padding: 10px 10px;
  background: linear-gradient(135deg, #0066cc, var(--primary-hover));
  color: white;
  margin: 10px auto;
  width: 100%;
  max-width: 1200px;
  border-radius: 8px;
}

.hero h1 {
  font-size: 2em;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

/* CTA блок */
.cta-calculator {
  background: var(--light-bg);
  padding: 50px 0;
  text-align: center;
  margin: 60px 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #0066cc;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.cta-content p {
  margin-bottom: 25px;
  font-size: 1.1em;
}

/* Специфичные стили для кнопки на главной */
.cta-button.consultation-btn:hover {
  background: #0066cc;
  color: white;
}

/* ==================== */
/* СТРАНИЦА: УСЛУГИ */
/* ==================== */
.services-page {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.service-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0066cc, var(--primary-hover));
  color: white;
  margin: 20px auto;
  width: 100%;
  border-radius: 8px;
}

.service-hero h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.service-hero p {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-wrapper {
  margin-top: 40px;
}

.service-section {
  margin: 40px 0;
}

.service-section h2 {
  text-align: center;
  color: #0066cc;
  margin-bottom: 20px;
  font-size: 2em;
}

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

.service-card h3 {
  color: #0066cc;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.service-icon {
  font-size: 2.5em;
  color: #0066cc;
  margin-bottom: 15px;
 }

.ai-icon {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 2.5em;
  color: #0066cc;
 }

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.service-list .fa-check {
  color: #0066cc;
  margin-right: 10px;
  font-size: 1.1em;
}

/* Табы */
.benefits-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 25px;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.benefits-tabs .tab {
  flex: 1; /* Равная ширина */
  text-align: center;
  white-space: nowrap;
  min-width: 120px; /* Минимальная ширина */
}

.tab.active {
  background: #0066cc;
  color: white;
}

.tab-content {
  display: none;
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
  display: block;
}

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

.tab-content li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.tab-content li:before {
  content: "•";
  color: #0066cc;
  font-size: 1.5em;
  position: absolute;
  left: 0;
  top: -3px;
}

/* Этапы работы */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.step {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}

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

.step-number {
  width: 50px;
  height: 50px;
  background: #0066cc;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 15px;
}

/* Контактная форма */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  color: #0066cc;
  margin-bottom: 20px;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==================== */
/* СТРАНИЦА: КАЛЬКУЛЯТОР */
/* ==================== */
.calculator {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.calculator h1 {
  text-align: center;
  color: #0066cc;
  margin-bottom: 30px;
}

.calculator-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.calculator-container .form-group {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-box {
  grid-column: 1 / -1;
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-top: 10px;
}

.result-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* ==================== */
/* ЧАТ-БОТ */
/* ==================== */
#chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

#chat-widget.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

#chat-header {
  padding: 15px 20px;
  background: #0066cc;
  color: white;
  display: flex;
  align-items: center;
}

#chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

#chat-title {
  font-weight: 600;
  flex-grow: 1;
}

#close-chat {
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s;
}

#close-chat:hover {
  transform: rotate(90deg);
}

#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f8fafc;
  min-height: 200px;
}

.bot-message {
  background: white;
  padding: 10px 15px;
  border-radius: 18px 18px 18px 4px;
  max-width: 90%;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  float: left;
  clear: both;
  word-wrap: break-word;
}

.user-message {
  background: #0066cc;
  color: white;
  padding: 10px 15px;
  border-radius: 18px 18px 4px 18px;
  max-width: 90%;
  margin-bottom: 10px;
  float: right;
  clear: both;
  word-wrap: break-word;
}

#chat-input-container {
  display: flex;
  padding: 8px;
  border-top: 1px solid #eee;
  background: white;
  align-items: flex-end;
}

#user-input {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  resize: none;
  overflow-y: hidden;
  line-height: 1.4;
  transition: height 0.2s ease;
}

#send-btn {
  margin-left: 10px;
  padding: 10px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== */
/* АДАПТИВНОСТЬ (оптимизированные медиа-запросы) */
/* ==================== */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    padding: 15px;
  }
  
  nav {
    justify-content: center;
    width: 100%;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --side-padding: 15px;
  }
  
  .hero, .service-hero {
    padding: 40px 15px;
  }
  
  .services-grid, 
  .service-grid,
  .calculator-container {
    grid-template-columns: 1fr;
  }
  
  .benefits-tabs {
    flex-direction: column;
  }
  
  .tab {
    width: 100%;
  }

  /* Стили для отзывов */
  .reviews-hero {
    padding: 40px 0 20px;
  }
  
  .rating-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-form {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  /* Общие мобильные стили */
  .service-card {
    padding: 20px;
  }
  
  .logo-img {
    width: 150px;
  }

  /* Стили чат-бота для мобильных */
  #chat-widget {
    width: calc(100% - 40px);
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: 20px;
  }

  #chat-messages {
    max-width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  .bot-message, 
  .user-message {
    max-width: 85%;
    word-break: break-word;
  }

  #chat-input-container {
    padding: 10px 12px;
  }

  #user-input {
    width: calc(100% - 50px);
    min-height: 40px;
  }

  /* Дополнительные мобильные стили */
  .filter-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .review-form {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  /* Стили для очень маленьких экранов */
  .calculator {
    border-radius: 0;
    padding: 10px;
  }
  
  .button-group {
    grid-template-columns: 1fr;
  }
}

/* ==================== */
/* ПЕЧАТНАЯ ВЕРСИЯ */
/* ==================== */
.print-section {
  display: none;
}

@media print {
  body > header,
  body > nav,
  body > main:not(.print-section),
  body > section:not(.print-section),
  body > article:not(.print-section),
  body > aside:not(.print-section),
  body > footer:not(.print-section),
  body > div:not(.print-section) {
    display: none;
  }
  
  .print-section {
    display: block;
    padding: 20px;
    font-size: 14pt;
  }
  
  .print-logo {
    width: 150px;
    height: auto;
  }
}

/* ==================== */
/* АДАПТИВНОСТЬ */
/* ==================== */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    padding: 15px;
  }
  
  nav {
    justify-content: center;
    width: 100%;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --side-padding: 15px;
  }
  
  .hero, .service-hero {
    padding: 40px 15px;
  }
  
  .services-grid, 
  .service-grid,
  .calculator-container {
    grid-template-columns: 1fr;
  }
  
  .calculator-container {
    grid-template-columns: 1fr;
  }
  
  .benefits-tabs {
    flex-direction: column;
  }
  
  .tab {
    width: 100%;
  }
}

/* ==================== */
/* СТИЛИ ПОДВАЛА (FOOTER) */
/* ==================== */

footer {
  background: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-top: auto; /* Для прижатия к низу */
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #0066cc;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contacts p {
  margin: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-social a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #0066cc;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
  .footer-content {
    padding: 0 15px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==================== */
/* СТРАНИЦА: ОТЗЫВЫ */
/* ==================== */

.reviews-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Герой-секция */
.reviews-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.reviews-hero h1 {
  font-size: 2.5rem;
  color: #0066cc;
  margin-bottom: 15px;
}

.reviews-hero .subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  white-space: nowrap;
}

/* Блок с рейтингом и фильтрами */
.ratings-filters {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rating-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.main-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-rating .stars {
  color: #FFD700;
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.main-rating .score {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.main-rating .divider {
  color: #999;
}

.main-rating .total {
  color: #666;
}

.platform-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-btn.active {
  background: #0066cc;
  color: white;
  border-color: #0066cc;
}

.filter-btn:hover {
  border-color: #0066cc;
}

.platform-rating-stars {
  color: #FFD700;
}

/* Сетка отзывов */
.reviews-container {
  margin: 40px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.review-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.review-author {
  font-weight: bold;
  font-size: 1.1rem;
}

.review-company {
  color: #666;
  font-size: 0.9rem;
  margin-top: 3px;
}

.review-platform {
  display: inline-block;
  padding: 3px 10px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.8rem;
  color: white;
}

.review-stars {
  color: #FFD700;
  font-size: 1.2rem;
}

.review-date {
  color: #999;
  font-size: 0.8rem;
  margin-top: 5px;
}

.review-content {
  margin: 15px 0;
  line-height: 1.6;
}

/* Кнопка "Показать еще" */
.load-more {
  text-align: center;
  margin: 40px 0;
}

.btn-secondary {
  padding: 12px 30px;
  background: white;
  color: #0066cc;
  border: 2px solid #0066cc;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #0066cc;
  color: white;
}

/* Форма добавления отзыва */
.review-form {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 60px auto;
}

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

.review-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.review-form input,
.review-form textarea,
.review-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.review-form textarea {
  min-height: 150px;
  resize: vertical;
}

.left-aligned-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
}

.star-rating {
  display: flex;
  gap: 5px;
}

.star-rating .star {
  font-size: 1.8rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating .star.active,
.star-rating .star:hover {
  color: #FFD700;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.btn-submit {
  padding: 15px 30px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-submit:hover {
  background: var(--primary-hover);
}

/* Секция CTA */
.cta-section {
  background: linear-gradient(135deg, #0066cc, var(--primary-hover));
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  padding: 15px 40px;
  background: white;
  color: #0066cc;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: var(--transition);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
  .reviews-hero {
    padding: 40px 0 20px;
  }
  
  .rating-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-form {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .filter-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .review-form {
    padding: 20px 15px;
  }
}
/* ==================== */
/* СТРАНИЦА: КАЛЬКУЛЯТОР */
/* ==================== */
.calculator {
  max-width: 650px;
  margin: 0 auto;
  padding: 20px;
  background: #f0f0f0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: 'Arial', sans-serif;
  margin-bottom: 40px; /* Добавляем отступ снизу */
  padding-bottom: 20px; /* Дополнительный внутренний отступ */
}

.calculator-display {
  background: #2c3e50;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.display-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ecf0f1;
}

#total {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 10px 0;
  color: #f1c40f;
}

.display-note {
  font-size: 0.9rem;
  color: #bdc3c7;
}

.calculator-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.button-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.calc-button {
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 110px;
}

.calc-button:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.calc-button label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #34495e;
  font-weight: bold;
  text-align: center;
}

.calc-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
  font-size: 0.9rem;
  text-align: center;
}

.calc-slider {
  width: 100%;
  margin-top: 8px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.calc-action-button {
  background: #3498db;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-action-button:hover {
  background: #2980b9;
}

/* Стили для ползунков */
input[type="range"].calc-slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 6px;
  background: #bdc3c7;
  border-radius: 3px;
  outline: none;
}

input[type="range"].calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #3498db;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="range"].calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #3498db;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

/* Адаптивность */
@media (max-width: 600px) {
  .button-group {
    grid-template-columns: 1fr;
  }
  
  .calculator {
    border-radius: 0;
    padding: 10px;
  }
}

/* Стили для печатной версии */
.print-section {
  display: none;
}

.print-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.print-logo {
  width: 150px;
  height: auto;
}

.print-phone {
  font-size: 1.2rem;
  font-weight: bold;
}

#printResults {
  margin: 30px 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.print-footer {
  margin-top: 50px;
  text-align: right;
  font-size: 0.9rem;
  color: #666;
}

/* Адаптивность */
@media (max-width: 992px) {
  .calculator-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .calculator h1 {
    font-size: 1.8rem;
  }
  
  .calculator-container {
    grid-template-columns: 1fr;
  }
  
  .result-box {
    padding: 20px;
  }
  
  #total {
    font-size: 2rem;
  }
}

@media print {
  body > *:not(.print-section) {
    display: none;
  }
  
  .print-section {
    display: block;
    padding: 20px;
    font-family: Arial, sans-serif;
  }
  
  .print-section h1 {
    color: #000;
    text-align: center;
    margin-bottom: 30px;
  }
  
  #printResults {
    font-size: 1.2rem;
  }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#total.changed {
  animation: pulse 0.5s ease;
}
.form-group .hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
}
.form-group:focus-within {
  box-shadow: 0 0 0 2px #0066cc;
}