/* === Общие стили для страницы === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial Black', Arial, sans-serif;
    background: url('../img/back.webp') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    font-size: 20px;
     }

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    flex-direction: column;
    padding: 0px;
    box-sizing: border-box;
}


.tabs {
    background: rgba(50, 50, 50, 0.8);
    border-radius: 13px;
    width: calc(100% - 100px);
    max-width: 700px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: height 0.4s ease-in-out;
	position: relative;
}

#tabs_wite {display:none; align-items:center; justify-content:center; position:absolute; top:0; left:0; height:100%; width:100%; background:rgba(50, 50, 50, 0.7); border-radius:13px;}

/* === Логотип === */
.logo {
    width: 100%;
    text-align: center;
    margin-bottom: 40px; /* Добавляем отступ */
    position: relative; /* Меняем с fixed на relative */
    top: auto;
    left: auto;
    transform: none;
}


.logo h1 {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5), 
        0 0 10px rgba(255, 255, 255, 0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    justify-content: center;
}

/* Каждая буква обёрнута в span */
.logo h1 span {
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-weight: 800;
    animation: letterBlink 3s infinite ease-in-out;
}

/* Анимация по каждой букве */
@keyframes letterBlink {
    0% {
        text-shadow: 0 0 5px #ffffff, 0 0 15px #ffffff;
    }
    50% {
        text-shadow: 0 0 10px #b39979, 0 0 20px #b39979;
    }
    100% {
        text-shadow: 0 0 5px #ffffff, 0 0 15px #ffffff;
    }
}

/* Эффект последовательного запуска для каждой буквы */
.logo h1 span:nth-child(1) {
    animation-delay: 0s;
}
.logo h1 span:nth-child(2) {
    animation-delay: 0.2s;
}
.logo h1 span:nth-child(3) {
    animation-delay: 0.4s;
}
.logo h1 span:nth-child(4) {
    animation-delay: 0.6s;
}
.logo h1 span:nth-child(5) {
    animation-delay: 0.8s;
}
.logo h1 span:nth-child(6) {
    animation-delay: 1s;
}
.logo h1 span:nth-child(7) {
    animation-delay: 1.2s;
}
.logo h1 span:nth-child(8) {
    animation-delay: 1.4s;
}
.logo h1 span:nth-child(9) {
    animation-delay: 1.6s;
}
.logo h1 span:nth-child(10) {
    animation-delay: 1.8s;
}
.logo h1 span:nth-child(11) {
    animation-delay: 2s;
}

.slogan {
    font-size: 14px;
    margin: 8px 0 0;
    line-height: 1.4;
    color: #b39979;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-family: "Arial", sans-serif; }



/* === Кнопки вкладок === */
.tab-buttons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
}

.tab-buttons button {
    background: none;
    border: none;
    color: #bababa;
    font-size: 20px;
    padding: 13px 26px;
    cursor: pointer;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2.5px solid transparent;
}

.tab-buttons button.active {
    color: #b39979;
    border-bottom: 2.5px solid #b39979;
}

/* === Вкладки === */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* === Анимация полей ввода === */
.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInFields 0.5s ease forwards;
}

.tab-content.active .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.tab-content.active .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.tab-content.active .form-group:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInFields {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Поля ввода === */
.form-group label {
    margin-bottom: 10px;
    color: #aaa;
    font-size: 18px;
    font-weight: 400;
}

.form-group input {
    padding: 14px;
    border: 1.3px solid #555;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 18px;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
    color: #888;
    font-size: 16px;
}

.form-group input:focus {
    border: 1.3px solid #b39979;
    box-shadow: 0 0 6px #b39979;
}

.form-group button {
    width: 100%;
    font-weight: 500;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: #b39979;
    color: #222;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-group button:hover {
    background: #9b8365;
}

.form-link {
    text-align: center;
    margin-top: 10px;
    color: #aaa;
    font-size: 18px;
}

.form-link a {
    font-family: Arial, sans-serif;
    color: #b39979;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.form-link a:hover {
    color: #9b8365;
}

div.err {display:none; width:100%; text-align:center; font-family: Arial, sans-serif; font-size:14px; font-weight:400; color:#c9c9c9}


/* === Стили для модального окна подтверждения возраста (в стиле 404) === */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.age-modal-content {
    text-align: center;
    background: rgba(50, 50, 50, 0.95);
    border-radius: 13px;
    width: calc(100% - 50px);
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.8s ease-in-out;
    margin: 0 auto 50px auto;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .age-modal-content {
        width: calc(100% - 20px);
    }
}

.age-modal .error-code {
    font-size: 150px;
    font-weight: 900;
    color: #b39979; /* Изменено с #d91a65 на #b39979 */
    margin: 0 0 10px 0;
    font-family: 'Arial Black', 'Arial', sans-serif;
    -webkit-text-stroke: 2px #b39979; /* Изменено с #d91a65 на #b39979 */
    text-stroke: 2px #b39979; /* Изменено с #d91a65 на #b39979 */
}

.age-modal .error-description {
    font-size: 16px;
    margin: 15px 0;
    color: #bbb;
    line-height: 24px;
    font-family: Arial, sans-serif;
}

/* Стиль для кнопки "Да, подтверждаю" */
#ageConfirmBtn {
    background: #b39979;
    color: #222;
}

#ageConfirmBtn:hover {
    background: #a38969; /* Изменено с #a3154d на более темный оттенок #b39979 */
}

/* Стиль для кнопки "Нет" */
#ageDeclineBtn {
    background: transparent;
    color: #999;
    font-weight: bold;
    opacity: 0.8;
}

#ageDeclineBtn:hover {
    background: transparent;
    color: #bbb;
    opacity: 1;
}

.age-modal .error-button {
    display: block;
    width: calc(100% - 20px);
    padding: 10px 0;
    margin: 10px auto;
    border: none;
    border-radius: 6px;
    background: #b39979; /* Изменено с #c2185b на #b39979 */
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

.age-modal .error-button:hover {
    background: #a38969; /* Изменено с #a3154d на более темный оттенок #b39979 */
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #222 inset; /* Заменяем фон на цвет фона поля */
  -webkit-text-fill-color: #fff; /* Убеждаемся, что текст остается белым */
}