/* Анимация загрузки */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}
#404 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
/* Основной контент */
#main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
}

#main-content.visible {
    opacity: 1;
    visibility: visible;
}

/* Кнопка "Вверх" */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    padding: 0;
}

/* Остальные стили */
body {
    font-family: 'Roboto', sans-serif;
    background: #1a1a1a;
    color: #fff;
}

.navbar {
    margin-bottom: 20px;
}

section {
    padding: 60px 0;
}

footer {
background: #1a1a1a;
    color: #fff ;
    padding: 20px 0;
    text-align: center;
}

.carousel-item img {
    height: 400px;
    object-fit: contain;
}

.carousel {
    margin: 20px auto;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
}

.card {
    transition: transform 0.2s;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    height: 200px;
    object-fit: cover;
}

.calculator {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    width: 60%;
    max-width: 600px;
}

.calculator h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.8em;
}

.calculator label {
    font-weight: bold;
    color: #fff;
}

.calculator input[type="number"],
.calculator input[type="range"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #444;
    color: #fff;
}

.calculator input[type="range"] {
    padding: 0;
    width: 80%;
}

.calculator button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.calculator button:hover {
    background: #0056b3;
}

.calculator .result {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}

.calculator .switch {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.calculator .switch input[type="checkbox"] {
    margin-right: 10px;
    width: 40px;
    height: 20px;
    appearance: none;
    background: #444;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.calculator .switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.calculator .switch input[type="checkbox"]:checked::before {
    left: 22px;
    background: #007bff;
}

.calculator .switch label {
    margin-right: 10px;
}

.calculator .switch input[type="number"] {
    width: 60px;
    margin-left: 10px;
    padding: 5px;
    text-align: center;
}

.calculator .details {
    margin-top: 20px;
    padding: 15px;
    background: #444;
    border-radius: 5px;
}

.calculator .details h4 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.4em;
}

.calculator .details ul {
    list-style: none;
    padding: 0;
}

.calculator .details ul li {
    margin-bottom: 5px;
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h1 {
    font-size: 3 em;
}

h2 {
    font-size: 2.5em;
}

.lead {
    font-size: 1.5em;
    color: #ccc;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    margin: 20px 0;
}

.parallax-section {
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7); /* Затемнение фона */
    color: white; /* Белый текст для контраста */
    padding: 100px 0; /* Отступы для контента */
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 0.1s ease-out; /* Плавное движение фона */
}
.logo {
    width: 80px; /* Размер логотипа по умолчанию */
    height: 80px; /* Размер логотипа по умолчанию */
    margin-right: 10px;
}
.logo-text h1 {
    font-size: 3 em; /* Размер заголовка по умолчанию */
	text-align: left; 
    margin: 0;
}

.logo-text .lead {
    font-size: 1.2 em; /* Размер слогана по умолчанию */
	text-align: left; 
    color: #ccc;
    margin: 0;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .logo {
        width: 60px; /* Уменьшаем размер логотипа */
        height: 60px; /* Уменьшаем размер логотипа */
        margin-right: 5px;
    }

    .logo-text h1 {
        font-size: 2em; /* Уменьшаем размер заголовка */
    }

    .logo-text .lead {
        font-size: 1em; /* Уменьшаем размер слогана */
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .logo {
        width: 40px; /* Ещё меньше размер логотипа */
        height: 40px; /* Ещё меньше размер логотипа */
        margin-right: 1px;
    }

    .logo-text h1 {
        font-size: 1.5em; /* Ещё меньше размер заголовка */
    }

    .logo-text .lead {
        font-size: 0.8em; /* Ещё меньше размер слогана */
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-content {
    background: #2d2d2d;
    color: #fff;
}

.modal-header {
    border-bottom: 1px solid #444;
}

.modal-footer {
    border-top: 1px solid #444;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.input-group label {
    margin-right: 10px;
}

.compact-input {
    width: 60px;
    margin-left: 10px;
    padding: 5px;
    text-align: center;
}