/* ================== ЗАГРУЗКА ================== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity .3s, visibility .3s;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

#main-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

#main-content.visible {
  opacity: 1;
  visibility: visible;
}

/* ================== ОСНОВА ================== */
body {
  font-family: 'Roboto', sans-serif;
  background: #1a1a1a;
  color: #fff;
}

section {
  padding: 60px 0;
}

footer {
  background: #1a1a1a;
  padding: 20px 0;
  text-align: center;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; }

.lead {
  font-size: 1.5em;
  color: #ccc;
}

/* ================== НАВИГАЦИЯ ================== */
.navbar {
  margin-bottom: 20px;
}

/* ================== КНОПКА ВВЕРХ ================== */
#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  display: none;
  border-radius: 50%;
  z-index: 1000;
}

/* ================== КАРУСЕЛЬ ================== */
.carousel-item img {
  height: 400px;
  object-fit: contain;
}

.carousel-caption {
  background: rgba(0,0,0,.7);
  padding: 10px;
  border-radius: 5px;
}

/* ================== КАРТОЧКИ ================== */
.card {
  transition: transform .2s;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  height: 200px;
  object-fit: cover;
  object-position: top;
}

/* ================== ЛОГО ================== */
.logo-container {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.logo {
  width: 80px;
  height: 80px;
  margin-right: 10px;
}

.logo-text h1 {
  font-size: 3em;
  margin: 0;
}

.logo-text .lead {
  font-size: 1.2em;
}

/* ================== PARALLAX ================== */
.parallax-section {
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,.7);
  padding: 100px 0;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* ================== MODAL ================== */
.modal-content {
  background: #2d2d2d;
  color: #fff;
}

.modal-header,
.modal-footer {
  border-color: #444;
}

/* ================== ТАРИФНЫЕ КАРТОЧКИ ================== */

/* неактивная карточка */
#calculatorModal .card.tariff-card {
  background-color: #262a30 !important;   /* светлее фона */
  color: #e9ecef !important;
  border: 1px solid #3a3f46 !important;
  cursor: pointer;
  position: relative;
  transition: all .25s ease;
}

/* текст */
#calculatorModal .card.tariff-card * {
  color: #e9ecef !important;
}

/* hover */
#calculatorModal .card.tariff-card:hover {
  background-color: #2f343c !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,.6);
}

/* активная карточка */
#calculatorModal .card.tariff-card.active {
  background: linear-gradient(135deg, #0d1b3d, #162b5c) !important;
  border: 2px solid #0d6efd !important;
  box-shadow:
    0 0 0 3px rgba(13,110,253,.35),
    0 14px 32px rgba(0,0,0,.7) !important;
}

/* бейдж */
#calculatorModal .card.tariff-card.active::after {
  content: "ВЫБРАНО";
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0d6efd;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}


/* ================== АДАПТИВ ================== */
@media (max-width: 768px) {
  .logo { width: 60px; height: 60px; }
  .logo-text h1 { font-size: 2em; }
}

@media (max-width: 480px) {
  .logo { width: 40px; height: 40px; }
  .logo-text h1 { font-size: 1.5em; }
}

/* ================== ПЕЧАТЬ КП ================== */


/* ================== ФОРМЫ (FIX) ================== */

#calculatorModal input,
#calculatorModal select,
#calculatorModal textarea {
  background-color: #1f2328 !important;
  color: #ffffff !important;
  border: 1px solid #3a3f46 !important;
}

#calculatorModal input::placeholder {
  color: #9aa0a6 !important;
}

#calculatorModal input:focus,
#calculatorModal select:focus {
  background-color: #1f2328 !important;
  color: #ffffff !important;
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.25) !important;
}
