@font-face {
    font-family: 'Widock';
    src: url('fonts/Widock\ TRIAL\ Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

  @font-face {
    font-family: 'Gotham';
    src: url('fonts/gotham_medium.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gotham', sans-serif;
}

body {
    background: #D7F0FF;
    color: #000;
}

input:focus, textarea:focus {
    outline:none;
}

.back-to-main {
    color:#606060;
}

.back-to-main:link {
    color:#606060;
}

.back-to-main:visited {
    color:#606060;
}

.container {
    max-width: 1152px;
    width: 60%;
    margin: 0 auto;
    padding: 24px 16px 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.phone-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-photo {
    height: 40px;
    padding-right: 10px;
}

.logo-text {
    padding-top: 5px;
    font-family: "Widock";
    font-size: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
}

.phone-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    border: none;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    background-color: #FFEB28;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 72px;
    height: 32px;
    border-radius: 8px;
    justify-content: center;
}


.lang-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #FFEB28;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: auto;
    width: 72px;
    z-index: 100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 12px;
    font-size: 12px;
    color: #000;
    border-radius: 6px;
    margin: 2px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lang-option:hover {
    background: #FFF9BB;
}

.lang-switcher:hover .lang-btn {
    background: #FFF9BB;
}

.lang-switcher:hover .lang-btn i {
    transform: rotate(180deg);
}

main {
    max-width: 1152px;
}
a {
    color: #3c76ff;
    text-decoration: none;
}


.banner {
    background: white;
    width: 100%;
    height: 110px;
}

.main-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 24px;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
}

.info-row {
    margin-bottom: 24px;
}

.info-row h1 {
    font-size: 48px;
}

.info-row span {
    color: #0073F0;
}

.company-name {
    font-size: 30px;
}

.map-container {
    width: 325px;
    height: 325px;
    border: 1px solid #000;
}

.form-section {
    margin-top: 64px;
}

.contact-form {
    max-width: 60%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    flex-grow: 1;
    width: 100%;
}

.row-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.row-item p{
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    min-width: 0px;
    width: 100%;
    padding: 15px;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 14px;
}

.contact-form textarea {
    padding: 15px;
    width: calc(50% - 10px);
    height: 150px;
    resize: none;
}

.checkbox-area {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: flex-start;
    }

.checkbox-area label {
    margin: 0;
    font-size: 12px;
}

.checkbox-area input {
    margin-right: 15px;
}

.checkbox-item input[type="checkbox"] {
    accent-color: #D7F0FF;
    margin-top: 2px;
}

.custom-checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-checkbox + label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.custom-checkbox + label::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #000;
    border-radius: 999px;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
    background-color: #D7F0FF;
}

.custom-checkbox:checked + label::before {
    border-color: #0073F0;
    background-color: #0073F0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.custom-checkbox:not(:disabled):not(:checked) + label:hover::before {
    border-color: #0073F0;
}

.submit-btn {
    background-color: #FFEB28;
    padding: 30px 24px;
    border: none;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    align-self: start;
    margin-bottom: 48px;
    font-size: 20px;
    transition: all 0.5s ease;
}

.submit-btn:hover {
    background: #FFDF28;
}

.contacts-mobile {
    display: none;
}

.footer-links-mobile {
    display: none;
}

.footer {
    background:white;
    max-width: 100%;
}

.footer-content {
    background-color: white;
    padding: 32px 48px;
    font-family: sans-serif;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    padding-bottom: 40px;
    justify-content: center;
  }
  
  .footer-links a {
    text-decoration: none;
    color: #606060;
    font-size: 16px;
    line-height: 1.4;
  }
  
  .footer-bottom {
    margin-top: 48px;
    display: flex;
    justify-content: flex-end;
    color: #A6A6A6;
    font-size: 16px;
}  

.bank-button {
    display: block;
    margin: 10px auto;
    padding: 15px 30px;
    background: #2E8B57;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    max-width: 300px;
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
  }
  
  .flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.flash {
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease-out;
}

.flash.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 16px;
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        gap: 16px;
        margin-bottom: 10px;
    }

    .header-right {
        order: 0;
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .lang-switcher {
        margin-left: auto;
        z-index: 1;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
    }

    .logo-photo {
        height: 36px;
    }

    .logo-text {
        font-size: 20px;
        padding-top: 5px;
    }

    .contact-info {
        display: none;
    }

    .main-content {
        flex-direction: column;
        gap: 40px;
    }

    .map-container {
        width: 100%;
        height: 300px;
        margin-bottom: 40px;
    }

    .info-row h1 {
        font-size: 36px !important;
    }

    .company-name {
        font-size: 24px !important;
    }

    .contact-form {
        max-width: 100% !important;
        padding: 0 16px;
    }

    .form-row {
        flex-direction: column;
    }

    textarea {
        width: 100% !important;
    }

    .submit-btn {
        width: 100%;
        padding: 20px !important;
        font-size: 16px !important;
    }

    .footer {
        padding: 32px 25px;
    }

    .footer-links-mobile {
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 40px;
    }
      
    .footer-links-mobile a {
        text-decoration: none;
        color: #606060;
        font-size: 16px;
        line-height: 1.4;
    }

    .footer-links {
        display: none;
    }

    .footer-links-mobile {
        display: flex;
        gap: 15px;
        flex-direction: column;
    }

    .footer-content {
        padding: 0;
    }

    .contacts-mobile {
        display: flex;
        justify-content: space-between;
        margin-bottom: 48px;
    }

    .social-icons-mobile {
        display: flex;
        gap: 10px;
    }

    .social-icons-mobile i {
        font-size: 20px;
        color: white;
        background: #3b82f6;
        padding: 16px;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        cursor: pointer;
        pointer-events: auto;
    }
    
    .social-icons-mobile i:hover {
        transform: translateY(-4px);
    }

    .lang-btn {
        width: 12vw;
        height: 7vw;
        margin-bottom: 10px;
    }

    .lang-dropdown {
        width: 12vw;
        padding: 0;
        margin-top: 0;
    }

    .phone-info {
        align-items: flex-start;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 32px;
    width: 400px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modal-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #2563eb;
    margin-top: 20px;
    padding: 12px;
    border: 2px solid #2563eb;
    border-radius: 8px;
    transition: all 0.3s;
}

.modal-link:hover {
    background: #2563eb;
    color: white;
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 16px;
    font-size: 28px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}