
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121417;
    color: #e4e6eb;
    line-height: 1.6;
}

/* Шапка и адаптивное меню */
header {
    background-color: #1b1e23;
    border-bottom: 3px solid #de9b35;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #de9b35;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: #e4e6eb;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 4px;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    background-color: #de9b35;
    color: #121417;
}

/* Основной контейнер */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    color: #de9b35;
    margin-bottom: 20px;
    font-size: 32px;
    border-left: 5px solid #de9b35;
    padding-left: 15px;
}

p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Сетка и карточки с картинками */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.card {
    background-color: #1b1e23;
    border: 1px solid #2c313a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #de9b35;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid #2c313a;
}

.card-body {
    padding: 20px;
}

.card h3 {
    color: #de9b35;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    background-color: #2c313a;
    color: #de9b35;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Блок консольных команд */
.code-box {
    background-color: #0d0f12;
    border-left: 4px solid #de9b35;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    color: #5ce65c;
    margin-bottom: 15px;
    border-radius: 0 6px 6px 0;
    overflow-x: auto;
}

/* Подвал */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1b1e23;
    color: #888;
    margin-top: 60px;
    border-top: 1px solid #2c313a;
}

/* Стили для калькулятора экономики */
.calc-container {
    background-color: #1b1e23;
    border: 1px solid #2c313a;
    border-radius: 8px;
    padding: 25px;
    max-width: 650px;
    margin-top: 25px;
}

.calc-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-group label {
    font-weight: 600;
    color: #e4e6eb;
}

.calc-group input[type="range"] {
    width: 100%;
    accent-color: #de9b35;
    cursor: pointer;
}

.calc-group select {
    background-color: #121417;
    color: #e4e6eb;
    border: 1px solid #2c313a;
    padding: 10px;
    border-radius: 5px;
    font-size: 15px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #de9b35;
    cursor: pointer;
}

.calc-result {
    background-color: #121417;
    border-radius: 6px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid #2c313a;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 10px;
}

.result-row.total {
    font-size: 22px;
    border-top: 1px solid #2c313a;
    padding-top: 10px;
    margin-bottom: 15px;
}

.verdict {
    padding: 12px;
    border-left: 4px solid #de9b35;
    background-color: #1b1e23;
    border-radius: 0 5px 5px 0;
    font-size: 15px;
}

/* Стили для формы заявки в команду */
.form-container {
    background-color: #1b1e23;
    border: 1px solid #2c313a;
    border-radius: 8px;
    padding: 25px;
    max-width: 650px;
    margin-top: 25px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #e4e6eb;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    background-color: #121417;
    color: #e4e6eb;
    border: 1px solid #2c313a;
    padding: 12px;
    border-radius: 5px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #de9b35;
}

.btn-submit {
    background-color: #de9b35;
    color: #121417;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #f0ad44;
}

.success-box {
    display: none;
    background-color: #15261c;
    border: 1px solid #5ce65c;
    border-left: 5px solid #5ce65c;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    max-width: 650px;
}

.success-box h3 {
    color: #5ce65c;
    margin-bottom: 10px;
}
