/* MAXIMUS */

/* Основной стиль окна */
.privacy-popup-style {
    display: none; /* Скрыто по умолчанию */
    position: absolute; 
    bottom: 100%; 
    right: 0;    
    margin-bottom: 30px; 
    background: #1c1c1c; 
    border: 1px solid #5AA9F1; 
    padding: 60px 30px 60px 50px; 
    z-index: 10000; /* Поднял выше, чтобы не перекрывалось в мобильной версии */
    flex-direction: column;
	text-align: left; /* Сбрасываем центрирование для внутреннего текста */
}

/* КЛЮЧЕВОЕ ИСПРАВЛЕНИЕ: Класс для активации через JS */
.privacy-popup-style.is-open {
    display: flex !important;
}

/* Ссылки ВНУТРИ окна */
.privacy-popup-style .popup-link a {
    color: #eee !important; 
    text-decoration: none !important;
} 

.privacy-popup-style .popup-link a:hover {
    color: #5AA9F1 !important;
}

/* Контейнеры-родители */
.privacy-link, .privacy-link-mobile {		
    position: relative; /* Важно для position: absolute окна */
    display: inline-block;
    width: 100%;
}

.privacy-link {
    margin-top: 50px;
    line-height: 1.5;
    font-size: 0.8em;		
    text-align: left;
} 

.privacy-link-mobile {
	display: none;
    margin: 0 auto 100px auto;
    padding: 0;
    text-align: center; /* Центрируем кнопку на мобилках */
	font-size: 0.8em;
} 

/* Ссылки-триггеры (текст "Правовая информация") */
.privacy-link a, .privacy-link-mobile a {
    color: #9a9a9a; /* Этот цвет близок к комбинации: #eee + фон #1c1c1c1 + opacity:0.6 */
    text-decoration: none;
} 

.privacy-link a:hover, .privacy-link-mobile a:hover {
    color: #eee;
}

/****************/

  /* Main container styling */
    .form-agreement {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin: 10px 0;
        font-size: 0.8em;
		width: 100%;
    }
    /* Standard checkbox without color manipulations */
    .form-agreement input[type="checkbox"] {
        width: auto;
        margin-top: 5px;
        cursor: pointer;
    }
    .form-agreement label {
        color:  #9a9a9a; /* цвет #eee + opacity:0.6 на фоне #1c1c1c */
        cursor: pointer;
    }
    /* Link styling */
    .form-agreement a {
        color:  #9a9a9a; 
        text-decoration: underline;
    }
    /* Hover effect ONLY for the link */
    .form-agreement a:hover {
        color: #eee;
		text-decoration: none;
    }
    /* Disabled button styling */
    .button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


/*Maximus*/


.footer-section {
    padding-right: var(--small-padding);
}

.footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}

.footer-main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-right: 18vw;
}

.footer-main-content .hero-text-content {
    display: flex;
    flex-direction: column;
    padding-top: max(71px, calc(4.93vw * var(--scale)));
}

.footer-links {
    margin-top: auto;
}

.footer-nav {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: max(12px, calc(0.83vw * var(--scale)));
    text-align: right;
    max-height: var(--horizontal-container-height); 
}

.footer-nav a {
    position: relative;
    white-space: nowrap;
}

.footer-nav-english a {
  opacity: 0.6;             /* Выделяем пункт English в Secondary Menu - Maximus */
}
.footer-nav .footer-nav-english {
 /* margin-top: 30px;		 /* Если нужен отступ (пока не нужен) */
}

.footer-nav-russkii a {
  opacity: 0.6;             /* Выделяем пункт Русский в Secondary Menu */
}
.footer-nav .footer-nav-russkii {
 /* margin-top: 30px;  */
}

.footer-main-content .logo-wrapper {
    margin-bottom: max(16px, calc(1.11vw * var(--scale)));
    margin-right: auto;
}

.footer-main-content .footer-logo-text {
    letter-spacing: -.02em;
    font-size: max(24px, calc(1.67vw * var(--scale)));
	letter-spacing: 0.05em; /* Увеличиваем - Maximus */
}

.footer-main-content .logo-image {
    height: max(calc(66px* var(--logo-scale)), calc(1.11vw* var(--logo-scale)* var(--scale))); /* Ставим 66px вместо 16px - Maximus */
    width: auto;
}

.full-width-footer {
    padding-left: 0px;
    min-width: 100vw;
}

.full-width-footer .footer-main-content {
    text-align: center;
    max-width: none;
    position: relative;
    width: 100%;
    left: 50%;
    right: 50%;
    margin-left: -50%;
    margin-right: -50%;
    padding-right: 0px;
    align-items: center;
    /* padding-left: var(--small-padding); */
}

.full-width-footer .socials {
    justify-content: center;
}

.full-width-footer .newsletter-outer {
    align-items: center;
}

.footer .newsletter-outer {
    padding-top: 20px;   /* Maximus */
}

.full-width-footer .logo-wrapper {
    margin-left: auto;
    margin-right: auto;
}

.full-width-footer .logo-image {
    height: max(calc(56px* var(--logo-scale)), calc(1.25vw* var(--logo-scale)* var(--scale))); /* Ставим 56px вместо 18px - Maximus */
}

.full-width-footer .hero-text-content {
    padding-top: 20vh;
}

.footer-links-mobile {
    display: none;
}

.back-to-start-button {
    font-size: max(16px, calc(1.11vw * var(--scale)));
	letter-spacing: 0.05em; /* Увеличиваем - Maximus */
}

@media (max-width: 991px) { 
	
 /* Скрываем десктопную версию */
    .privacy-link {
        display: none;
    }
	
  /* Показываем мобильную версию */
    .privacy-link-mobile {
        display: block; /* или inline-block, как удобнее */
		width: 100%; 
		text-align: center;
    }	
	
 /* Чтобы всплывающее окно центрировалось относительно кнопки */
    .privacy-link-mobile .privacy-popup-style {
        right: 50%;
        transform: translateX(50%); /* Сдвиг на половину своей ширины для идеального центра */
	    padding: 90px 30px 90px 50px; 
    }	
	
	
    .footer-section {
        padding-right: 0px;
        width: 100%;
        text-align: center;
    }

    .footer {
        align-items: flex-start;
        justify-content: center;
    }
    
    .footer-main-content {
        align-items: center;
        justify-content: center;
        padding-right: 0px;
        min-height: 100vh;
    }
    
    .footer-main-content .hero-text-content {
        padding-top: 16vh;
    }
    
    .footer-links {
        margin-top: auto;
        margin-bottom: auto;
    }
    
    .footer-nav {
        text-align: center;
    }
    
    .footer-nav a {
        white-space: unset;
    }
    
    .footer-main-content .logo-wrapper {
        margin-right: auto;
        margin-left: auto;
    }

    .footer-links-desktop {
        display: none;
    }

    .footer-main-content .logo-image {
        height: max(calc(56px* var(--logo-scale)), calc(1.25vw* var(--logo-scale)* var(--scale))); /* Ставим 56px вместо 18px - Maximus */
    }

    .footer-links-mobile {
        display: flex;
        margin-top: auto;
        margin-bottom: auto;
        height: 100%;
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .footer .newsletter-outer {
        margin-top: 0px;
        padding-bottom: 100px;
    }

    .footer-section .subtitle {
        display: none;
    }
    
    .full-width-footer {
        min-width: unset;
        width: 100%;
    }
    
    .full-width-footer .footer-main-content {
        width: 100%;
        left: 0%;
        right: 0%;
        margin-left: 0vw;
        margin-right: 0vw;
    }
    
    .full-width-footer .hero-text-content {
        padding-top: 16vh;
    }

    .full-width-footer .footer-main-content {
        padding-left: 0px;
    }
}

@media (max-width: 479px) { 
    .footer-main-content .logo-image {
        height: calc(56px* var(--logo-scale)); /* Ставим 56px вместо 16px - Maximus */
    }

    .footer .newsletter-outer {
        padding-bottom: 60px;
    }
}

