/* === Общий стиль === */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}

a {
    text-decoration: none;
    color: #198754;
}

h1,
h2,
h3 {
    color: #198754;
}

/* === Кнопки === */


.btn-green {
    background-color: #198754;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn-green:hover {
    background-color: #157347;
}

/* === Поля форм === */
input,
select,
textarea {
    padding: 6px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #198754;
    border-radius: 4px;
    padding: 6px 30px 6px 10px;
    font-size: 14px;
    color: #155724;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23198754'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 6px;
}

select:focus {
    outline: none;
    border-color: #157347;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.2);
}

/* Подписи */
label {
    font-weight: 500;
    color: #155724;
    font-size: 14px;
}

/* === Хедер и футер === */
.site-header,
.footer {
    background: #198754;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: white;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
    justify-content: center;
    flex-grow: 1;
}

/* === Клиентский хедер === */
.client-header {
    background: #f9fdf9;
    border-bottom: 2px solid #e0f0e0;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-header .left,
.client-header .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === Модальные окна === */
.modal {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ccc;
    padding: 20px 25px;
    z-index: 1000;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.modal h3 {
    margin-top: 0;
}

.modal button {
    margin-right: 10px;
}

/* Крестик */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

/* === Контейнеры === */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* === Регистрация === */
.register-box {
    max-width: 380px;
    margin: 40px auto;
    padding: 25px;
    border: 2px solid #198754;
    border-radius: 12px;
    background-color: #f9f9f9;
}

.register-box h1 {
    text-align: center;
    margin-bottom: 20px;
}

.error-box {
    background: #ffe5e5;
    color: #a00;
    padding: 1em;
    border: 1px solid #a00;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 15px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 8px 36px 8px 10px;
}

.toggle-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.6;
}

/* выравнивание чекбокса с текстом */
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    margin-bottom: 20px;
}

/* === Прочее === */
.flags img {
    height: 16px;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
}

.site-footer {
    background: #ffffff;
    padding: 20px 10px;
    text-align: center;
    color: #333;
    border-top: 1px solid #ddd;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-link {
    padding: 6px 14px;
    background-color: #198754;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.footer-link:hover {
    background-color: #157347;
}

.footer-copy {
    font-size: 13px;
    color: #666;
}

.header-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-link {
    color: white;
    font-weight: bold;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

.header-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    background: white;
    transition: width 0.3s ease;
    bottom: -4px;
    left: 0;
}

.header-link:hover {
    color: #e0ffe0;
}

.header-link:hover::after {
    width: 100%;
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .client-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .client-header .left,
    .client-header .right {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    button,
    select {
        width: 100%;
    }
}

.btn-main {
    background-color: white;
    color: #198754;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid white;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.btn-main:hover {
    background-color: #e9f5ee;
    color: #145c39;
    border-color: #e9f5ee;
}

.btn-main.small {
    font-size: 13px;
    padding: 4px 10px;
}
