@font-face {
    font-family: 'PresentScript';
    src: url('/fonts/PresentScript.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

header {
    background-color: #54717e;
    color: #f4f4f4;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.company-logo {
    height: 55px;
    cursor: pointer;
}

.login-button {
    background-color: #175f70; /* Цвет кнопки */
    color: #f4f4f4;
    padding: 8px 20px; /* Увеличенная ширина */
    border-radius: 15px;
    text-decoration: none;
    font-size: 18px; /* Увеличение шрифта */
    margin-left: 15px;
    display: inline-block;
    border: 2px solid #1f1e24; /* Цвет обводки */
    height: 35px; /* Высота кнопки 35px */
    line-height: 35px; /* Центрирование текста по вертикали */
    text-align: center; /* Выравнивание текста по центру */
    font-family: 'PresentScript', sans-serif; /* Шрифт PresentScript */
}

.main-nav {
    flex: 2;
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #f4f4f4;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

nav ul li a:hover {
    background-color: #222b3a;
    border-radius: 4px;
}

.contact-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.phone-number {
    font-size: 20px; /* Уменьшение размера номера телефона */
    font-weight: bold;
    color: #222b3a;
    margin-left: 10px; /* Добавляем отступ слева для размещения контактов */
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.phone-number:hover {
    text-decoration: none;
    color: #3a4b5c;
}

.social-icon {
    margin-left: 10px;
}

.social-icon img {
    height: 30px;
    width: 30px;
    transition: opacity 0.3s ease;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.social-icon img:hover {
    opacity: 0.7;
}

/* Мобильная версия */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    height: 3px;
    background: #f4f4f4;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7.5px, 7.5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7.5px, -7.5px);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background-color: #6a8797;
    padding: 0 10px;
    position: relative;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.95);
    transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease, padding 0.5s ease;
}

.mobile-menu.active {
    max-height: 300px;
    opacity: 1;
    transform: scale(1);
    padding: 15px;
}

.mobile-menu nav table {
    width: 100%;
    table-layout: fixed;
}

.mobile-menu nav table td {
    text-align: center;
    padding: 10px 0;
}

.mobile-menu nav table td a {
    display: block;
    color: #f4f4f4;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu nav table td a:hover {
    background-color: #222b3a;
    border-radius: 4px;
}

.mobile-contact-info {
    text-align: center; /* Выравнивание контактов по центру */
    width: 100%; /* Центрирование по всей ширине */
    padding: 10px 0;
    margin-top: 20px; /* Добавляем больший отступ сверху для мобильных устройств */
}

.mobile-contact-info .phone-number {
    font-size: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px; /* Добавляем больший отступ сверху для соц. контактов */
}

@media (max-width: 768px) {
    .main-nav,
    .contact-info {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .phone-number {
        font-size: 20px;
    }

    .login-button {
        margin-left: 0; /* Убираем отступ от логотипа */
        text-align: left; /* Выравнивание текста по левому краю */
        font-size: 18px; /* Увеличение шрифта */
		border: 2px solid #1f1e24;
    }

    .mobile-contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 15px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px; /* Добавляем больший отступ сверху для соц. контактов */
    }
}

/* Стили для модального окна */
.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.5);
}

/* Контент модального окна */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
}

/* Кнопка закрытия */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Стили форм */
.form-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-content button {
    width: 100%;
    padding: 10px;
    background-color: #175f70;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.form-content button:hover {
    background-color: #133f50;
}

.toggle-form {
    text-align: center;
    margin-top: 10px;
    color: #175f70;
    cursor: pointer;
}

.back-btn {
    display: block;
    margin-bottom: 10px;
    color: #175f70;
    cursor: pointer;
    font-size: 14px;
}

.resend-link {
    display: block;
    margin-top: 10px;
    color: #175f70;
    cursor: pointer;
    font-size: 14px;
    text-align: right;
}

/* Адаптивность для модального окна */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        margin: 30% auto;
        padding: 15px;
    }

    .form-content button {
        font-size: 14px;
        padding: 12px;
    }

    .form-content input {
        padding: 8px;
        margin-bottom: 15px;
    }

    .toggle-form {
        font-size: 14px;
    }
}
