/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    font-family: 'Alegreya', serif;
}

/* Общие стили для контейнеров */
.container {
    max-width: 100%;
    margin: 0 calc(17vw - 55px);
}

/* Стили шапки (gradient-section) */
.gradient-section {
    position: relative;
    width: 100%;
    min-height: 251px;
    background: linear-gradient(to bottom, #ffffff 23.9149%, #86A8CB 100%);
    padding: 64px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-width: 0;
}

.header-left {
    display: flex;
    align-items: center;
}

/* Размеры логотипа по умолчанию (для экранов 768px и больше) */
.logo {
    width: 286px;
    height: 123px;
    flex-shrink: 1;
}

.icons-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.icon-circle {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    box-shadow: 4px 4px 20px #2E4C63;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle img {
    width: 53px;
    height: 53px;
    max-width: 100%;
    max-height: 100%;
}

/* Стили навигации (navigation) */
.navigation {
    width: 100%;
    background-color: #86A8CB;
    min-height: 100px;
    z-index: 2;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.25),
    0 -4px 20px rgba(0, 0, 0, 0.25);
     position: relative;
    transform: translateZ(15px);
}


.nav-links {
    display: flex; /* Важно: Flexbox для ссылок навигации */
    justify-content: space-between;
    align-items: center;
    height: 100%; /*  Чтобы занимал всю высоту навигации  */
    flex: 1; /* Занимаем все доступное пространство */
}

.navigation a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5em;
    font-family: 'Alegreya', serif;
    font-weight: 700;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
    min-height: 100px;
}

.nav-button {
    height: 100%;
    box-sizing: border-box;
}

/* Стили секции about (about-section) */
.about-section {
    width: 100%;
}

/* Desktop navigation */
@media (min-width: 1024px) {
    .menu-icon {
        display: none;
    }

}

/* Mobile navigation */
@media (max-width: 1023px) {
    .navigation {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .navigation a {
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .navigation a:last-child {
        border-bottom: none;
    }

    .phone-icon{
        order: -1;
    }

    .about-section{
	padding-top: 5px;
	
    }
}

/* Стили секции E-mail (email-section) */
.email-section {
    min-height: 158px;
    background-color: #86A8CB;
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-content {
    width: 100%;
    max-width: 1440px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    flex-wrap: wrap; /* Разрешаем перенос на новую строку */
}

.email-text {
    max-width: 29vw;
    font-family: 'Alegreya', serif;
    font-weight: bold;
    font-size: 20px;
    text-align: left;
    color: #fff;
    flex: 1 1 100%;
    margin-bottom: 20px; /* Добавляем отступ между текстом и формой */
}

.email-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    flex: 1 1 100%;
    max-width: 50vw;
}

.email-input {
    width: 100%;
    height: 76px;
    border-radius: 34px;
    border: none;
    padding: 0 20px; /* Уменьшил padding */
    font-family: 'Alegreya', serif;
    font-size: 18px;
    text-align: left;
    color: #000;
}

.email-input::placeholder {
    font-family: 'Alegreya', serif;
    font-size: 26px;
    color: #999;
}

.submit-button {
    font-family: 'Alegreya', serif;
    position: absolute;
    top: 0;
    right: 0;
    width: 14vw;
    min-width: 155px;
    height: 76px;
    border-radius: 34px;
    border: none;
    background: linear-gradient(to right, #B7DBFA 27%, #1E80D3 88%);
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
}
	
.terms-checkbox {
    margin-top: 11px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.terms-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-right: 5px;
}

.terms-text {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 10px;
    color: #fff;
}

/* Mobile styles for email section */
@media (max-width: 768px) {
    .email-content {
        flex-direction: column; /* Переключаемся на колонку на маленьких экранах */
        align-items: center;
    }

    .email-text {
        text-align: center; /* Центрируем текст на маленьких экранах */
        max-width: 100%;
    }

    .email-form {
        width: 100%; /* Занимает всю ширину контейнера */
        max-width: 100%;
    }

    .email-input {
        width: 100%;
        padding: 0 10px;
        font-size: 16px;
        height: 50px;
    }

    .email-input::placeholder {
        font-size: 18px;
    }

    .submit-button {
      position: relative; /*  Важно!  */
      width: 100%;
      margin-top: 10px;
      font-size: 20px;
      height: 50px;
    }

    .terms-text {
        font-size: 9px;
    }
}
/* Footer Section styles (footer-section) */
.footer-section {
    background-color: #f0f0f0;
    padding: 50px 0;
    padding-left: 10px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1 1 200px;
    margin-right: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.footer-column h4 {
  margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
}

/* Mobile styles for footer section */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        margin-right: 0;
        margin-bottom: 20px;
        text-align: left;
    }
}



/* Для экранов больше 1440px */

/* Mobile Menu Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0; /* Начальная прозрачность 0 */
    z-index: 998;
    display: none; /* Скрываем изначально */
    transition: opacity 0.3s ease; /* Плавное изменение прозрачности */
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0; /* Изменено: прижимаем к правому краю */
    width: 60%; /* Изменено:  Занимает 60% ширины экрана */
    height: 100%;
    background-color: #fff;
    z-index: 999;
    border-bottom-left-radius: 11px;
    border-top-left-radius: 11px;
    display: none; /* Скрываем изначально */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateX(100%); /* Изменено: Сдвигаем за правый край экрана */
    transition: transform 0.3s ease; /* Плавное изменение позиции */
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.menu-buttons a {
    width: 100%;
    padding: 10px 0;
    text-decoration: none;
    color: #000;
    font-family: 'Alegreya', serif;
    text-align: left;
    box-sizing: border-box;
    border-bottom: 1px solid #868686;
    transition: box-shadow 0.1s ease-in-out; /* Добавляем плавный переход для теней */
}

.menu-buttons a:hover,
.menu-buttons a:active {
    box-shadow:
        inset 0px 6px 10px 0px #0000001C, /* Top shadow */
        inset 0px -6px 10px 0px #00000021; /* Bottom shadow */
}

.menu-buttons a:last-child {
    border-bottom: none;
}

.contact-info {
    font-family: 'Alegreya', serif;
    color: #000;
    margin-bottom: 10px;
    text-align: left;
}

/* Hide regular menu icon on desktop */
@media (min-width: 1024px) {
    .menu-icon {
        display: none;
    }
}

/* Стиль для иконки меню, чтобы она была под меню на мобильных */
@media (max-width: 1023px) {
    .menu-icon {
        display: flex;
        cursor: pointer;
        z-index: 997;
        position: relative;
    }

    .header-content {
        position: relative;
    }
}

/* Show logo and icons on extra small screens */
@media (max-width: 479px) {
    .header-content {
        padding: 5px 2%;
    }

    .header-left {
        display: flex;
        align-items: center;
    }

    .logo {
        width: auto;
        height: auto;
        max-width: 200px;
    }

    .icons-wrapper {
        gap: 10px;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
    }

    .icon-circle img {
        width: 30px;
        height: 30px;
    }
}

/* Shop Message Styles */
.shop-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    text-align: center;
    max-width: 80%;
}

.shop-message p {
    font-family: 'Alegreya', serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.shop-message button {
    padding: 10px 30px;
    background: linear-gradient(to right, #B7DBFA 27%, #1E80D3 88%);
    color: white;
    border: none;
    border-radius: 34px;
    font-family: 'Alegreya', serif;
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.shop-message button:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .shop-message {
        padding: 20px;
        width: 90%;
    }
    
    .shop-message p {
        font-size: 18px;
    }
    
    .shop-message button {
        padding: 8px 20px;
        font-size: 16px;
    }
}