* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9e9e9;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #fff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: #000;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #888;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.language-switcher {
    position: relative;
    display: inline-block;
}

.language-btn {
    padding: 8px 12px;
    background-color: transparent;
    border: 1px solid #000;
    color: #000;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

.language-btn:hover {
    background-color: #000;
    color: #fff;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 10px;
    padding: 5px 0;
    z-index: 1;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown a {
    color: #000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.language-dropdown a:hover {
    background-color: #f5f5f5;
}

.language-dropdown a.active {
    font-weight: bold;
    background-color: #f5f5f5;
}

/* Form Styles */
main {
    flex: 1;
    padding-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 480px;
    border: 1px solid #f0f0f0;
    margin: 40px auto;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #b0b0b0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
    outline: none;
}

.form-select option {
    color: #333;
    background-color: #fff;
}

.form-select:invalid {
    color: #b0b0b0;
}

.form-select:focus:invalid {
    color: #333;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 12px;
}

.terms-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 25px;
}

.terms-container input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.terms-container label {
    font-size: 0.9em;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.terms-container label a {
    color: #007bff; 
    text-decoration: none; 
    font-weight: bold; 
    margin-left: 5px;
}

.terms-container label a:hover {
    text-decoration: underline; 
}

.terms-container label span {
    margin-right: 5px;
}

.terms-container label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background-color: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #333;
}



.main-footer {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 150px;
}

.footer-logo {
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
}

.footer-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.footer-link,
.footer-contact-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover,
.footer-contact-link:hover {
    color: #fff;
}

.footer-contact-link i {
    margin-right: 10px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-icon {
    color: #fff;
    font-size: 18px;
    transition: color 0.2s;
}

.footer-social-icon:hover {
    color: #f5f5f5;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}
.mobile-nav{
    display: none;
}
/* Стили для модального окна (попапа) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding-top: 50px;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 450px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.5s;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

#modalTitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

#modalMessage {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.ok-btn, .close-btn {
    margin-top: 20px;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    background: none;
    color: #aaa;
    padding: 0;
}

.close-btn:hover, .close-btn:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .btn-menu {
        display: none;
    }

    .header-content {
        justify-content: space-between;
        padding: 0 40px;
    }

    .main-footer{
        margin-bottom: 65px;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }

    h1 {
        font-size: 22px;
    }

    .form-subtitle {
        font-size: 13px;
    }
    .terms-container label{
        font-size: 10px;
    }

    .mobile-nav {
        position: fixed;
        display: block;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 10px 0;
        z-index: 1000;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #888;
        font-size: 12px;
        transition: color 0.3s ease;
    }

    .mobile-nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .mobile-nav-item.active {
        color: #000;
    }
}