/* Modern CSS для страницы Pre-Registration */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Palatino Linotype", Palatino, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.title-main {
    font-size: 2.8em;
    color: #2c3e50;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    font-family: Georgia, Palatino, serif;
}

.title-sub {
    font-size: 2em;
    color: #34495e;
    text-align: center;
    margin: 10px 0 30px 0;
    font-family: Georgia, Palatino, serif;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-section {
    margin: 30px 0;
}

.form-group {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
}

.form-row label {
    font-weight: bold;
    color: #2c3e50;
    min-width: 80px;
}

.form-row input[type="text"],
.form-row textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: Georgia, Palatino, serif;
    font-size: 15px;
    transition: border 0.3s;
}

.form-row input[type="text"]:focus,
.form-row textarea:focus {
    border: 1px solid #3498db;
    outline: none;
}

.form-row input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.form-row textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
}

.salutation-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 10px 0;
}

.salutation-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.salutation-group input[type="radio"] {
    margin: 0 5px 0 0;
}

.engines-section {
    background: #e8f4f8;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.engines-title {
    font-size: 1.6em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: Georgia, Palatino, serif;
    font-weight: bold;
}

.engine-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    transition: background 0.3s;
}

.engine-item:hover {
    background: #f8f9fa;
}

.engine-item input[type="checkbox"] {
    margin: 5px 0 0 0;
    width: 20px;
    height: 20px;
}

.engine-number {
    font-weight: bold;
    color: #3498db;
    min-width: 30px;
    text-align: center;
}

.engine-name {
    font-weight: bold;
    color: #2c3e50;
    min-width: 120px;
}

.engine-description {
    flex: 1;
    line-height: 1.6;
}

.engine-description a {
    color: #3498db;
    text-decoration: none;
}

.engine-description a:hover {
    color: #2c3e50;
}

.engine-description a b {
    color: #3498db;
}

.login-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.login-section label {
    font-weight: bold;
    color: #2c3e50;
}

.login-section input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: Georgia, Palatino, serif;
    font-size: 15px;
    width: 150px;
}

.buttons-section {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

.buttons-section input[type="submit"],
.buttons-section input[type="reset"] {
    padding: 12px 30px;
    font-size: 16px;
    font-family: Georgia, Palatino, serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.buttons-section input[type="submit"] {
    background: #3498db;
    color: white;
}

.buttons-section input[type="submit"]:hover {
    background: #2c3e50;
}

.buttons-section input[type="reset"] {
    background: #e8e8e8;
    color: #333;
}

.buttons-section input[type="reset"]:hover {
    background: #d0d0d0;
}

.hr {
    border: none;
    height: 2px;
    background: #ddd;
    margin: 30px 0;
}

.top-link {
    text-align: center;
    margin: 20px 0;
}

.top-link a {
    color: #3498db;
    text-decoration: none;
    font-size: 1.2em;
}

.top-link a:hover {
    color: #2c3e50;
}

.footer {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-family: Georgia, Palatino, serif;
}

.footer h5 {
    color: #666;
    font-size: 1em;
    margin: 5px 0;
}

/* Исправляем старый table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

td {
    padding: 0;
    margin: 0;
}