:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --border:#e5e7eb;
  --text:#0f172a;
  --muted:#64748b;
  --blue:#2563eb;
  --green:#22c55e;
}

*{box-sizing:border-box}

/* Убираем горизонтальный скролл */
html, body {
  overflow-x: hidden;
  width: 100%;
}

body{
  margin:0;
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height: 1.6;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

section{padding:60px 0}

h1,h2,h3,h4{margin:0}
h2{font-size:32px;margin-bottom:16px}

p{color:var(--muted);line-height:1.6}


/* TOP BAR */
.top-bar{
  background:#f8fafc;
  border-bottom:1px solid var(--border);
  font-size:14px;
  display: none;
}
.top-bar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 20px;
}
.top-left span{
  margin-right:16px;
  color:var(--muted);
}
.top-right a{
  margin-left:16px;
  color:var(--text);
  text-decoration:none;
}

/* Показываем top-bar только на десктопе */
@media (min-width: 768px) {
  .top-bar {
    display: block;
  }
}


/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;

}

/* Тень при скролле */
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
  font-weight: 700;
}
.logo-dot{
  width:12px;
  height:12px;
  border-radius:6px;
  background:linear-gradient(135deg,#8ee5ff,#046dff);
}

.nav{
  display:none;
}
.nav a{
  text-decoration:none;
  color:var(--text);
  font-weight:500;
  position:relative;
}
.nav a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--blue);
  transition:.3s;
}
.nav a:hover::after{
  width:100%;
}

.header-btn{
  background:linear-gradient(135deg,#8ee5ff,#046dff);
  color:#fff;
  padding:10px 20px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  transition:.3s;
  white-space: nowrap;
  font-size: 14px;
}
.header-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(37,99,235,.3);
}

/* Бургер-кнопка для мобильных */
.burger-menu {
  display: block;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  margin: 0;
}

/* Десктопное меню - показываем навигацию */
@media (min-width: 900px){
  .nav {
    display:flex;
    gap:28px;
    margin-left: auto;
    margin-right: 24px;
  }
  
  .header-btn {
    display: block;
    padding: 12px 22px;
    border-radius: 14px;
    font-size: 16px;
  }
  
  .header-inner {
    padding: 18px 20px;
  }
}


/* HERO */
.hero{
  min-height: 100vh;
  display:flex;
  align-items:center;
  color:#fff;
  padding: 40px 0;

  background:
    linear-gradient(
      rgba(15,23,42,0.55),
      rgba(15,23,42,0.55)
    ),
    url("images/main_photo.png") center / cover no-repeat;
}
.hero-content{
  max-width:700px;
  width: 100%;
}
.hero h1{
  font-size:36px;
  line-height:1.2;
  margin-bottom:20px;
  font-weight: 700;
}
.hero p{
  color:#e0f2fe;
  font-size:16px;
  margin-bottom: 30px;
}
.hero-buttons{
  display:flex;
  flex-direction: column;
  gap:12px;
  margin-top:30px;
}
.btn{
  padding:14px 24px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  transition:.3s;
  text-align: center;
  display: block;
  width: 100%;
}
.btn.white{
  background:#c7f2ff;
  color:#38506ef5;
}
.btn.outline{
  border:2px solid #fff;
  color:#fff;
  background: transparent;
}
.btn.outline1{
  border:2px solid #fff;
  color:#ffffff;
  background: #ffffff4e;
}
.btn:hover{transform:translateY(-4px)}

/* Десктопная версия HERO */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
  }
  
  .btn {
    width: auto;
    padding: 14px 34px;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 64px;
  }
}


/* SERVICES */
#services{
  padding:60px 0;
}
#services h2{
  font-size:28px;
  margin-bottom:12px;
  text-align: center;
}
#services .card-desc {
  text-align: center;
  margin-bottom: 30px;
  font-size: 16px;
}

.cards{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  margin-top: 20px;
}
.card{
  background:var(--card);
  border-radius:16px;
  padding:24px;
  border:1px solid var(--border);
  transition:.35s;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 25px rgba(15,23,42,.08);
}
.card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
}
.card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* Десктопная сетка карточек */
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  #services h2 {
    font-size: 32px;
  }
  
  .card {
    padding: 28px;
  }
}


/* WORK секция */
#work {
  padding: 60px 0;
}
#work h2 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.cards1{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.step{
  display: flex;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  gap: 16px;
  font-size: 15px;
}
.step-num{
  min-width:36px;
  height:36px;
  border-radius:10px;
  background:#eff6ff;
  color:var(--blue);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size: 16px;
}
.step-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

@media (min-width: 768px) {
  #work h2 {
    font-size: 32px;
  }
  
  .cards1 {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .step {
    min-width: 200px;
    font-size: 16px;
  }
}


/* PORTFOLIO */
#portfolio {
  padding: 60px 0;
}
#portfolio h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.portfolio{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
}
.portfolio img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:12px;
  transition:.3s;
}
.portfolio img:hover{transform:scale(1.03)}

@media (min-width: 500px) {
  .portfolio {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .portfolio img {
    height: 180px;
  }
}

@media (min-width: 768px) {
  #portfolio h2 {
    font-size: 32px;
  }
  
  .portfolio {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .portfolio img {
    height: 200px;
    border-radius: 16px;
  }
}

@media (min-width: 1024px) {
  .portfolio {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .portfolio img {
    height: 220px;
    border-radius: 20px;
  }
  
  .portfolio img:hover {
    transform: scale(1.05);
  }
}


/* FAQ */
#faq {
  padding: 60px 0;
}
#faq h2 {
  font-size: 28px;
  margin-bottom: 12px;
  text-align: center;
}
#faq p {
  text-align: center;
  color: #666;
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 16px;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  background: #fff;
  font-size: 15px;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f9fbfd;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background: #f1f5fa;
}

.faq-question .toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  font-size: 14px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 12px 16px 16px;
}

.faq-item.active .toggle-icon {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  #faq h2 {
    font-size: 32px;
  }
  
  #faq p {
    font-size: 17px;
  }
  
  .faq-question {
    font-size: 16px;
    padding: 16px 20px;
  }
  
  .faq-answer {
    font-size: 15px;
  }
}


/* FORM */
#form {
  padding: 60px 0;
}
#form h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

.form{
  max-width:100%;
  margin:auto;
  background:#fff;
  padding:24px;
  border-radius:16px;
  border:1px solid var(--border);
}
.form h2 {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: left;
}
.form .class-desc {
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--muted);
}
.form input,.form textarea{
  width:100%;
  padding:12px 16px;
  border-radius:10px;
  border:1px solid var(--border);
  margin-bottom:12px;
  font-size:15px;
  font-family: 'Inter', sans-serif;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form textarea{
  resize: none;
  min-height: 100px;
  line-height: 1.5;
}
.form button{
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,#8ee5ff,#046dff);
  color:#fff;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition: 0.3s;
}
.form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}
.card-desc1 {
  margin-top: 16px;
  margin-bottom: 0px;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  text-align: center;
}

@media (min-width: 768px) {
  #form h2 {
    font-size: 32px;
  }
  
  .form {
    max-width:500px;
    padding:40px;
    border-radius:24px;
  }
  
  .form h2 {
    font-size: 28px;
  }
  
  .form input,.form textarea {
    padding:14px;
    border-radius:12px;
    font-size:15px;
  }
  
  .form button {
    padding:16px;
    border-radius:14px;
    font-size:16px;
  }
}


/* FORM-GROUP (select) */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  background-color: #fff;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.3s;
}
.form-group select:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

@media (min-width: 768px) {
  .form-group select {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px;
  }
}


/* LIGHTBOX */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:.3s;
  z-index:9999;
}
.lightbox img{
  max-width:90%;
  max-height:90%;
  border-radius:16px;
}
.lightbox.show{
  opacity:1;
  pointer-events:auto;
}


/* FOOTER */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.footer-logo .logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8ee5ff, #046dff);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 500px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.footer-contact svg {
  color: #8ee5ff;
  flex-shrink: 0;
}

.footer-contact a,
.footer-contact span {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  line-height: 1.5;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.footer-copyright p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

/* Десктопная версия футера */
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    flex-wrap: wrap;
  }
  
  .footer-logo {
    font-size: 24px;
    flex: 1;
    min-width: 200px;
  }
  
  .footer-contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 2;
    min-width: 300px;
  }
  
  .footer-contact {
    justify-content: flex-start;
  }
  
  .footer-copyright {
    flex: 1;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: right;
    min-width: 200px;
  }
  
  footer {
    padding: 60px 0 30px;
  }
}

/* Мобильная версия */
@media (max-width: 480px) {
  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .footer-contact a,
  .footer-contact span {
    font-size: 15px;
  }
  
  footer {
    padding: 30px 0 15px;
  }
}


/* Дополнительные медиа-запросы для плавных переходов */
@media (max-width: 480px) {
  section {
    padding: 40px 0;
  }
  
  h2 {
    font-size: 26px;
  }
  
  .hero-buttons {
    gap: 10px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .card {
    padding: 20px;
  }
  
  .card h4 {
    font-size: 17px;
  }
  
  .step {
    padding: 14px;
    font-size: 14px;
  }
  
  .step-num {
    min-width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8ee5ff, #046dff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
}

.modal-content h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 15px;
}

.modal-close {
  background: linear-gradient(135deg, #8ee5ff, #046dff);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: translateY(-2px);
}

/* Закрытие по клику вне окна */
.modal.show {
  cursor: pointer;
}

.modal-content {
  cursor: default;
}

/* ===== ТУМБЛЕР С ИКОНКОЙ СПРАВА ===== */
.theme-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e0e0e0;
  transition: 0.4s;
  border-radius: 34px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Иконка справа */
.theme-icon {
  position: relative; /* ← ВАЖНО! Добавлено для правильного позиционирования */
  font-size: 18px;
  user-select: none;
}

/* Солнце по умолчанию */
.theme-icon::before {
  content: "☀️";
  display: block;
  transition: opacity 0.3s;
}

/* Луна по умолчанию скрыта */
.theme-icon::after {
  content: "🌙";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

/* При тёмной теме: */
[data-theme="dark"] .theme-icon::before {
  opacity: 0; /* Солнце скрыто */
}

[data-theme="dark"] .theme-icon::after {
  opacity: 1; /* Луна видна */
}

/* Для тёмной темы - цвет слайдера */
[data-theme="dark"] .theme-switch input:checked + .slider {
  background-color: #66b3ff;
}

/* Адаптивность */
@media (max-width: 900px) {
  .theme-control {
    margin-left: 8px;
  }
  
  .theme-switch {
    width: 36px;
    height: 20px;
  }
  
  .slider:before {
    width: 16px;
    height: 16px;
  }
  
  .theme-icon {
    font-size: 16px;
  }
}

/* ===== ТЁМНАЯ ТЕМА ===== */
[data-theme="dark"] {
  --bg: #121212;
  --card: #1e1e1e;
  --border: #2d2d2d;
  --text: #e0e0e0;
  --muted: #9e9e9e;
}

/* Фон страницы */
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

/* Топ-бар */
[data-theme="dark"] .top-bar {
  background: #1a1a1a;
  border-bottom-color: var(--border);
}

/* Хедер */
[data-theme="dark"] .header {
  background: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Навигация */
[data-theme="dark"] .nav a {
  color: var(--text);
}

/* Кнопка хедера */
[data-theme="dark"] .header-btn {
  background: linear-gradient(135deg, #66b3ff, #0056b3);
  color: #fff;
}

/* Геро-секция */
[data-theme="dark"] .hero {
  background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url("images/main_photo.png") center / cover no-repeat;
}

/* Карточки */
[data-theme="dark"] .card {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .card h4 {
  color: var(--text);
}

[data-theme="dark"] .card p {
  color: var(--muted);
}

/* Шаги */
[data-theme="dark"] .step {
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .step-num {
  background: #2a3b5c;
  color: #66b3ff;
}

/* Форма */
[data-theme="dark"] .form {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .form h2 {
  color: var(--text);
}

[data-theme="dark"] .form input,
[data-theme="dark"] .form textarea,
[data-theme="dark"] .form-group select {
  background: #2a2a2a;
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .form input::placeholder,
[data-theme="dark"] .form textarea::placeholder {
  color: var(--muted);
}

[data-theme="dark"] .form button {
  background: linear-gradient(135deg, #66b3ff, #0056b3);
  color: #fff;
}

/* FAQ */
[data-theme="dark"] .faq-item {
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .faq-question {
  background: #252525;
  color: var(--text);
}

[data-theme="dark"] .faq-question:hover {
  background: #2a2a2a;
}

/* Футер */
[data-theme="dark"] footer {
  background: #0a0a0a;
  color: #a0a0a0;
}

[data-theme="dark"] .footer-logo {
  color: #fff;
}

[data-theme="dark"] .footer-contact a,
[data-theme="dark"] .footer-contact span {
  color: #a0a0a0;
}

[data-theme="dark"] .footer-contact a:hover {
  color: #fff;
}

[data-theme="dark"] .footer-copyright p {
  color: #707070;
}

/* Модальное окно */
[data-theme="dark"] .modal {
  background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .modal-content {
  background: var(--card);
  color: var(--text);
}

[data-theme="dark"] .modal-content h3 {
  color: var(--text);
}

[data-theme="dark"] .modal-content p {
  color: var(--muted);
}

/* Портфолио */
[data-theme="dark"] .portfolio img:hover {
  box-shadow: 0 0 20px rgba(102, 179, 255, 0.3);
}

/* Бургер-меню */
[data-theme="dark"] .burger-menu {
  color: var(--text);
}

/* Скроллбар (для вебкит браузеров) */
[data-theme="dark"]::-webkit-scrollbar {
  width: 10px;
}

[data-theme="dark"]::-webkit-scrollbar-track {
  background: #1a1a1a;
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
  background: #444;
}


/* ===== АДАПТИВНЫЙ ФУТЕР ===== */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0 20px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

/* Основное содержимое футера */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

/* Бренд слева (десктоп) */
.footer-brand {
  display: flex;
  align-items: center;
  min-width: 200px;
  margin-top: 55px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.footer-logo .logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8ee5ff, #046dff);
}

/* Секция с заголовком */
.footer-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 500px;
}

.footer-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #8ee5ff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Контакты */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.footer-contact svg {
  color: #8ee5ff;
  flex-shrink: 0;
  min-width: 18px;
}

.footer-contact a,
.footer-contact span {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  line-height: 1.5;
}

.footer-contact a:hover {
  color: #fff;
}

/* Копирайт */
.footer-copyright {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Мобильные устройства (< 768px) — ЦЕНТРИРУЕМ ВЕСЬ ТЕКСТ */
@media (max-width: 767px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }
  
  .footer-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto !important;

  }
  
  .footer-contacts {
    align-items: center; /* Центрируем контакты */
    width: 100%;
  }
  
  .footer-contact {
    justify-content: center; /* Центрируем иконки + текст */
  }
  
  footer {
    padding: 30px 0 15px;
  }
  
  .footer-logo {
    font-size: 20px;
  }
  
  .footer-section-title {
    font-size: 16px;
  }
  
  .footer-contact a,
  .footer-contact span {
    font-size: 15px;
  }
  
  .footer-copyright {
    padding-top: 15px;
  }
  
  .footer-copyright p {
    font-size: 13px;
  }
}

/* Маленькие экраны (< 480px) */
@media (max-width: 480px) {
  footer {
    padding: 25px 0 10px;
  }
  
  .footer-logo {
    font-size: 18px;
  }
  
  .footer-logo .logo-dot {
    width: 12px;
    height: 12px;
  }
  
  .footer-section-title {
    font-size: 15px;
  }
  
  .footer-contact {
    gap: 10px;
  }
  
  .footer-contact svg {
    width: 16px;
    height: 16px;
  }
  
  .footer-contact a,
  .footer-contact span {
    font-size: 14px;
  }
  
  .footer-copyright {
    padding-top: 12px;
  }
  
  .footer-copyright p {
    font-size: 12px;
  }
}
/* Волны на фоне - ПРОВЕРЕННЫЙ КОД */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.4) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 30%);
  z-index: -1;
  pointer-events: none;
}

/* Чекбокс согласия на обработку персональных данных */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 24px;
  padding: 12px;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #2563eb; /* Цвет галочки (синий) */
  border-radius: 4px;
  border: 2px solid #ddd;
}

.form-checkbox input[type="checkbox"]:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.form-checkbox label {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.form-checkbox input[type="checkbox"]:focus + label {
  color: #2563eb;
}

/* Стили для ошибки (когда чекбокс не отмечен) */
.form-checkbox input[type="checkbox"]:required:invalid:not(:focus):not(:checked) {
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

.form-checkbox input[type="checkbox"]:required:invalid:not(:focus):not(:checked) + label {
  color: #dc2626;
}