/* ==== Определение основных переменных цвета для всей страницы ==== */
:root {
  --bg-color: #F8FFFF;    /* Цвет фона страницы */
  --text-color: #2A5A5A;  /* Основной цвет текста */
  --accent-color: #4BAEA7; /* Акцентный цвет (кнопки, логотип) */
  --light-color: #ffffff; /* Светлый цвет для карточек, хедера */
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw;
  box-sizing: border-box;
  scroll-behavior: smooth;
  background: none !important;
  color: var(--text-color);
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

#backgroundCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
  background: linear-gradient(135deg, #c3f0f9, #e0f7fa);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 64px;
  height: 64px;
  background: #fff !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  margin: 0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  margin: 0 !important;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
nav a {
  margin-left: 8px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

.cta-button, .edit-button, .payment-button {
  padding: 15px 40px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}
.cta-button:hover, .edit-button:hover, .payment-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(75,174,167,0.6);
}

section, .container {
  padding: 120px 20px 60px;
  text-align: center;
  background: transparent !important;
  color: var(--text-color);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

/* Карточки и модальные окна — общий стиль */
.card, .modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  color: var(--text-color);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: flex-start;
  z-index: 2000;
  overflow-y: auto;
  padding: 40px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay[style*="display: flex"] {
  opacity: 1;
}

body.modal-open {
  overflow: hidden;
}

/* --- Футер --- */
.footer {
  background-color: #fff !important;
  padding: 40px 0 20px;
  margin-top: 50px;
  color: var(--text-color);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
  background: #fff !important;
  color: var(--text-color);
}
.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding: 0 15px;
}
.footer-column h4 {
  color: #333;
  margin-bottom: 20px;
  font-size: 18px;
}
.footer-column p {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column ul li {
  margin-bottom: 10px;
}
.footer-column a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-column a:hover {
  color: #007bff;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #ddd;
}
.footer-bottom p {
  color: #666;
  font-size: 14px;
}

/* --- Акции --- */
.promotions-section {
  padding: 100px 20px;
  background-color: var(--bg-color);
}
.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.promotion-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}
.promotion-card:hover {
  transform: translateY(-5px);
}
.promotion-icon {
  font-size: 3em;
  margin-bottom: 20px;
}
.promotion-card h3 {
  color: var(--text-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}
.promotion-card p {
  color: var(--text-color);
  margin-bottom: 20px;
}
.promotion-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  text-align: left;
}
.promotion-card ul li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}
.promotion-card ul li:before {
  content: "✓";
  color: var(--accent-color);
  position: absolute;
  left: 0;
}
.promotion-card .cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}
.promotion-card .cta-button:hover {
  background-color: var(--accent-color-dark);
  transform: translateY(-2px);
}

/* --- FAQ --- */
.faq-section {
  padding: 100px 20px;
}
.faq-item {
  background: white;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  overflow: hidden;
  margin-bottom: 18px;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  padding: 24px 32px 18px 32px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--accent-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), padding 0.3s;
  background: white;
  padding: 0 32px;
  color: #444;
}

/* --- Чат-бот --- */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9999;
}
.chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.chat-button:hover {
  transform: scale(1.1);
  background-color: var(--accent-color-dark);
}
.chat-button svg {
  color: white;
}
.chat-window {
  position: fixed;
  bottom: 170px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-window.active {
  display: flex;
}
.chat-header {
  padding: 15px 20px;
  background-color: var(--accent-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header h3 {
  margin: 0;
  font-size: 1.1em;
}
.close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  margin-bottom: 10px;
}
.message.bot {
  background-color: #f0f0f0;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.message.user {
  background-color: var(--accent-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
.chat-input {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}
.chat-input input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
}
.chat-input button {
  background: var(--accent-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.chat-input button:hover {
  background-color: var(--accent-color-dark);
}
.chat-input button svg {
  color: white;
}

/* --- Анимации и эффекты --- */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes buttonAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Медиазапросы --- */
@media (max-width: 900px) {
  header {
    padding: 0 10px;
    justify-content: center;
  }
  nav {
    gap: 10px;
  }
  nav a {
    margin-left: 8px;
    font-size: 15px;
  }
  .logo {
    margin-right: 0;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .footer-column {
    flex: 100%;
    text-align: center;
  }
  .footer-content {
    flex-direction: column;
  }
  .promotions-grid {
    grid-template-columns: 1fr;
  }
  #floatingConsultButton {
    padding: 12px 20px;
    font-size: 16px;
    bottom: 20px;
    right: 20px;
  }
}
@media (max-width: 600px) {
  .marquee-inner {
    gap: 18px;
  }
  .marquee-block {
    font-size: 1em;
    padding: 8px 10px;
  }
  .marquee-bar {
    min-height: 54px;
    height: 64px;
    padding: 6px 0;
    margin: 18px 0 24px 0;
  }
  .team-specialists-row {
    gap: 10px;
    padding: 0 2px;
  }
  .team-specialists-row::before {
    width: 99%;
    top: -12px;
  }
  .team-specialists-row .team-member::before {
    top: -22px;
    height: 22px;
  }
}
@media (max-width: 480px) {
  section {
    padding: 80px 10px 40px;
  }
  .chat-window {
    width: calc(100% - 40px);
    height: calc(100% - 100px);
    bottom: 80px;
  }
}

/* --- Классы для картинок, кнопок и т.д. --- */
.logo-icon {
  height: 48px;
  width: 48px;
  margin-left: 0;
  margin-right: 16px;
  vertical-align: middle;
  object-fit: contain;
  display: block;
}
.main-illustration {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.footer-logo {
  height: 180px;
  max-height: 95%;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  object-fit: contain;
  display: block;
}
.social-icon {
  width: 22px;
  height: 22px;
  filter: invert(1);
}
.consult-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  margin-right: 10px;
}

#floatingConsultButton {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 25px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  z-index: 3000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: buttonAppear 0.5s ease forwards;
}
#floatingConsultButton:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(75,174,167,0.3);
}
@keyframes buttonAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input, textarea, select {
  background: #fff;
  color: var(--text-color);
  border: 2px solid var(--accent-color);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 5px rgba(75,174,167,0.3);
}

/* === Бегущая строка преимуществ === */
.marquee-bar {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(75,174,167,0.07);
  margin: 40px 0 0 0;
  padding: 0;
  position: relative;
  margin-top: 160px;
  height: 400px;
  display: flex;
  align-items: center;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
  z-index: 1;
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  gap: 210px;
  align-items: center;
  height: 100%;
}

.marquee-block {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  font-weight: 500;
  padding: 0 32px 0 0;
  white-space: nowrap;
}

.marquee-block img {
  display: block;
  height: 256px;
  width: auto;
  margin: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-title {
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-color);
  line-height: 1;
  font-family: 'Segoe UI', Arial, sans-serif;
  height: 48px;
  display: flex;
  align-items: center;
}

/* --- Адаптивный хедер с бургер-меню --- */
@media (max-width: 1400px) {
  nav { gap: 8px; }
  nav a { margin-left: 4px; font-size: 14px; }
}

@media (max-width: 1200px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 0 10px;
    align-items: flex-start;
  }
  .logo {
    margin-bottom: 8px;
  }
  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    display: none;
    background: var(--light-color);
    position: absolute;
    top: 64px;
    left: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }
  nav.open {
    display: flex;
  }
  nav a {
    margin: 0;
    padding: 16px 24px;
    width: 100%;
    border-bottom: 1px solid #eee;
    font-size: 17px;
  }
  .burger {
    display: block;
    position: absolute;
    right: 24px;
    top: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
  }
  .burger span,
  .burger span:before,
  .burger span:after {
    display: block;
    position: absolute;
    width: 28px;
    height: 4px;
    background: var(--accent-color, #4BAEA7);
    border-radius: 2px;
    transition: 0.3s;
    content: '';
  }
  .burger span {
    top: 14px;
    left: 2px;
  }
  .burger span:before {
    top: -10px;
    left: 0;
  }
  .burger span:after {
    top: 10px;
    left: 0;
  }
  #loginBtn {
    background: var(--accent-color, #4BAEA7);
    color: #fff !important;
    border-radius: 8px;
    margin: 12px 16px;
    padding: 10px 24px;
    font-weight: 700;
    width: calc(100% - 32px);
    text-align: center;
    display: block;
  }
}

/* Бургер по умолчанию скрыт */
.burger { display: none; }

#loginBtn {
  background: var(--accent-color, #4BAEA7);
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 700;
  text-align: center;
  display: inline-block;
  transition: background 0.2s;
}
#loginBtn:hover {
  background: #368e8a;
}

/* ВРЕМЕННАЯ ПОДСВЕТКА ДЛЯ АУДИТА ФОНОВ */
.site-content { background: transparent !important; }
/* header { background: transparent !important; } */
section { background: transparent !important; }
footer { background: #fff !important; }
div.card, .modal-content { background: #fff !important; }

/* Галерея в карточках */
.service-gallery {
  margin: 20px 0;
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
}
.gallery-container {
  display: flex;
  transition: transform 0.3s ease;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: white;
  opacity: 0.6;
  cursor: pointer;
}

/* Вторичная кнопка */
.button-secondary {
  background: #fff;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.button-secondary:hover {
  background: var(--accent-color);
  color: white !important;
}

h1, h2, h3, h4 {
  color: #222;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 40px 0 24px 0;
  text-align: center;
}

.form-error {
  color: #c62828;
  font-size: 0.95em;
  margin-top: 6px;
}

input.error, textarea.error, select.error {
  border-color: #c62828 !important;
  box-shadow: 0 0 4px rgba(198,40,40,0.3);
}

#systemErrorBanner {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffebee;
  color: #b71c1c;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  z-index: 5000;
} 