:root {
    --fc: #ede9e1;
    --sc: #46351e;
    --tc: #36332d;
    --ftc: #706e66;
    --ffc: #f6f5f4;
    --sxc: #e8e3d4;
    --svc: #b8995a;
    --star-color: #ffd500;
}

*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: none;
}

*:focus {
    outline: 2px solid var(--sc);
    outline-offset: 2px;
    border-radius: 4px;
}

html {
    width: 100%;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    transition: opacity ease-in 0.2s;
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

body[unresolved] {
    opacity: 0;
    display: block;
    overflow: hidden;
    position: relative;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--sc);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.scroll-active {
    overflow: hidden;
}

.header_section {
    background: var(--fc);
}

.container {
    position: relative;
    max-width: 1130px;
    padding: 0 10px;
    margin: 0 auto;
}

.secret_star {
    width: 30px;
    height: 30px;
    opacity: 0.2;
    position: absolute;
    background-color: var(--star-color);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 3;
    transition: opacity .5s ease;
}

.secret_star:hover {
    opacity: 0.7;
}

.secret_star-clicked {
    pointer-events: none;
    animation: starBlowsUp 5s ease forwards;
}

.secret_star-collected {
    display: none;
}

.secret_star[data-page="index"] {
    top: 90px;
    left: 45px;
    transform: rotate(310deg);
}

.secret_star[data-page="excursion"] {
    top: 10px;
    left: 10px;
    transform: rotate(270deg);
}

.secret_star[data-page="quiz"] {
    top: 95px;
    left: 422px;
    transform: rotate(210deg);
}

.secret_star[data-page="about"] {
    top: 115px;
    left: 184px;
    transform: rotate(67deg);
}

.secret_star[data-page="feedback"] {
    left: 167px;
    transform: rotate(43deg);
}

@keyframes starBlowsUp {
    0% {
        opacity: 0.7;
    }

    30% {
        opacity: 1;
    }

    90% {
        transform: rotate(1500deg);
        opacity: 1;
    }

    99% {
        display: block;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

.circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* чтобы круги не мешали кликать по контенту */
    z-index: -1;
    /* на задний план */
}

/* Общие стили для всех кругов */
.circle {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: pulse 4s ease-in-out infinite alternate;
    filter: blur(0.5px);
}

/* Индивидуальные позиции и размеры (чуть разные) */
.circle:nth-child(1) {
    top: 10%;
    left: 5%;
    width: 180px;
    height: 180px;
    --color: var(--svc);
    animation-delay: 0s;
}

.circle:nth-child(2) {
    top: 20%;
    right: 8%;
    width: 100px;
    height: 100px;
    --color: #9C845C;
    animation-delay: 0.5s;
}

.circle:nth-child(3) {
    bottom: 25%;
    left: 15%;
    width: 220px;
    height: 220px;
    --color: var(--svc);
    animation-delay: 1s;
}

.circle:nth-child(4) {
    bottom: 10%;
    right: 12%;
    width: 120px;
    height: 120px;
    --color: #DACCAF;
    animation-delay: 1.5s;
}

.circle:nth-child(5) {
    top: 45%;
    left: 40%;
    width: 160px;
    height: 160px;
    --color: #F3EFE1;
    animation-delay: 2s;
}

/* Пульсация: меняем размер и прозрачность */
@keyframes pulse {
    0% {
        transform: scale(0.7);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 33px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo_img {
    max-width: 35px;
    max-height: 35px;
    width: 100%;
    height: 100%;
}

.logo_text {
    font-size: 20px;
    font-weight: 700;
    line-height: 23px;
    color: var(--sc);
}

a[aria-current='page'] {
    color: var(--sc);
    font-weight: bolder;
    text-decoration: none;
}

.nav_link {
    font-size: 20px;
    font-weight: 500;
    line-height: 35px;
    color: var(--tc);
    transition: color 0.3s ease;
    margin-bottom: 5px;
}

.nav_link:hover {
    color: var(--sc);
}

.nav_list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 40px;
}

.main_nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 40px;
}

.audio_player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play_audio {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #2C2D35;
    margin-bottom: 5px;
    margin-top: -3px;
}

/* BREADCRUMBS */
.breadcrumbs {
    padding: 12px 0;
}

.breadcrumbs_list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs_item {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}

.breadcrumbs_link {
    color: var(--sc);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs_link:hover {
    color: var(--svc);
    text-decoration: underline;
}

.breadcrumbs_separator {
    margin: 0 4px;
    color: var(--ftc);
    user-select: none;
}

.breadcrumbs_current {
    color: var(--tc);
    font-weight: 500;
    pointer-events: none;
}

/* MAIN */
.main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main_heading {
    font-size: 60px;
    font-weight: 500;
    line-height: 66px;
    color: var(--tc);
}

.main_heading span {
    color: var(--sc);
}

.main_img {
    max-width: 100%;
    height: auto;
}


.main_subtitle {
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    margin-top: 20px;
    color: var(--ftc);
}

.main_button {
    margin-top: 60px;
    display: flex;
    width: 225px;
    height: 65px;
    border: 1px solid var(--sc);
    justify-content: center;
    background-color: var(--ffc);
    align-items: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
    color: var(--sc);
    transition: all 0.3s ease;
}

.main_button:hover {
    color: var(--ffc);
    background: var(--sc);
}

/* excursion (карточки и переключатели) */
.excursion_section {
    margin-top: 30px;
}

.excursion_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.excursion_text {
    font-size: 40px;
    font-weight: 500;
    line-height: 44px;
    text-overflow: ellipsis;
    color: var(--tc);
}

.excursion_tabs {
    display: flex;
    gap: 0 30px;
    flex-wrap: wrap;
}

.excursion_button {
    padding: 10px 20px;
    background: var(--sxc);
    border-radius: 20px;
    color: var(--tc);
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
    transition: all 0.3s ease;
}

.excursion_button:hover:not(.excursion_button-active) {
    color: var(--sxc);
    background: var(--sc);
}

.excursion_button-active {
    background: var(--sc);
    color: var(--ffc);
}

.excursion_block {
    display: none;
    gap: 30px;
}

.excursion_block-active {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}

.excursion_block-active {
    animation: fadeIn 0.5s ease-in-out;
}

.excursion_card>img {
    width: auto;
    height: 380px;
    object-fit: cover;
    min-height: 0;
}

/* Название, дата, цена */
.excursion_address {
    padding-top: 20px;
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    color: var(--tc);
}

.excursion_name {
    padding-top: 10px;
    font-size: 25px;
    font-weight: 500;
    line-height: 35px;
    color: var(--tc);
    min-height: 80px;
}

.excursion_date {
    padding-top: 8px;
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    color: var(--tc);
}

.excursion_price {
    padding-top: 10px;
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
    color: var(--sc);
    margin-bottom: 15px;
}

/* Карточка */
.excursion_card {
    background: var(--fc);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: calc((100% - 60px) / 3);
    padding: 20px;
    padding-bottom: 30px;
    box-sizing: border-box;
    overflow: hidden;
    transition: box-shadow .5s ease;
}

.excursion_card:hover {
    box-shadow: 6px 6px 5px 2px var(--tc);
}

/* Кнопка — резиновая, всегда влезает в карточку */
.excursion_btn {
    width: 100%;
    max-width: 310px;
    height: 65px;
    border: 1px solid var(--sc);
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
    color: var(--sc);
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    margin: 15px auto 0;
    display: block;
}

.excursion_btn:hover {
    color: var(--ffc);
    background: var(--sc);
}

.excursion_content {
    margin-top: 30px;
}

/* MAP */

.map_section {
    margin-top: 40px;
}

.map_text {
    font-size: 40px;
    font-weight: 500;
    line-height: 44px;
    text-overflow: ellipsis;
    color: var(--tc);
    margin-bottom: 30px;
}

.map_content {
    width: 100%;
    height: 500px;
}

/* QUIZ */

.quiz_text {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 44px;
    text-overflow: ellipsis;
    color: var(--tc);
}

.quiz_question {
    font-size: 32px;
    margin: 15px 0 20px;
    word-break: break-word;
    hyphens: auto;
}

.quiz_answer {
    font-size: 20px;
    padding: 10px 0 10px 10px;
    margin: 10px 0;
    color: var(--sc);
    border: var(--sc) solid 2px;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: all .5s ease;
    display: block;
    width: 100%;
    text-align: left;
    background-color: var(--ffc);
}

.quiz_answers {
    position: relative;
}

.quiz_answer-correct {
    background-color: #116500;
    color: #fff;
    border: #0f5a00 2px solid;
}

.quiz_answer-wrong {
    background-color: #900;
    color: #fff;
    border: #6f0000 2px solid;
}

.quiz_answer-answered {
    cursor: default;
}

.quiz_answer:not(.quiz_answer-answered):hover {
    color: #fff;
    background-color: var(--sc);
}

.quiz_verdict {
    font-size: 40px;
    margin: 15px 0;
}

.quiz_count {
    font-size: 24px;
    margin: 5px 0;
}

.quiz_restart {
    padding: 16px 28px;
    margin: 30px 0;
    font-size: 20px;
    font-weight: 600;
    background: var(--svc);
    color: var(--ffc);
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: background .5s ease, color .5s ease;
}

.quiz_restart:hover {
    background: var(--sc);
    color: var(--ffc);
}

.quiz_restart:active {
    background: var(--sc);
    color: var(--ffc);
    transform: translateY(2px);
}

/* vitebsk */
.vitebsk_section {
    background-image: url(img/foot.webp);
    margin-top: 70px;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: -50px;
}

.vitebsk {
    padding: 70px 0;
}

.vit_logo_title {
    display: flex;
    gap: 20px;
}

.vit_logo {
    max-width: 80px;
    max-height: 80px;
    width: 100%;
    height: 100%;
}

.vit_title {
    font-size: 40px;
    font-weight: 500;
    line-height: 80px;
    color: var(--ffc);
}

.vit_subtitle {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    color: var(--ffc);
    max-width: 560px;
}

/* col link */
.vit_link {
    display: inline-block;
    margin-top: 60px;
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
    color: var(--tc);
    background: #eedb6d;
    padding: 21px 60px;
    transition: background-color 0.3s ease;
}

.vit_link:hover {
    background: #faeb97;
}

/* TEAM */
.team_section {
    margin-top: 30px;
}

.team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.team_img {
    max-width: 430px;
    max-height: 430px;
}

.team_right {
    max-width: 635px;
    width: 100%;
}

.team_title {
    font-size: 38px;
    font-weight: 500;
    line-height: 42px;
    color: var(--tc);
}

.team_subtitle {
    padding-top: 20px;
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    color: var(--tc);
}

.team_people_image {
    display: flex;
    padding-top: 20px;
    gap: 25px;
}

.people_img {
    max-width: 80px;
    max-height: 80px;
    width: 100%;
    height: 100%;
    clip-path: circle(50%);
}

/* FEEDBACK */
.feedback_title {
    font-size: 40px;
    font-weight: 500;
    line-height: 40px;
    color: var(--tc);
    text-align: center;
    margin-bottom: 10px;
}

.feedback_input {
    width: 100%;
    margin: 15px 0;
    border: 1px solid var(--sc);
    transition: color .3s ease, background .3s ease, box-shadow .3s ease, scrollbar-color .3s ease;
}

textarea {
    resize: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.feedback_input_text {
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 500;
    color: var(--tc);
    background: var(--ffc);
    border-radius: 8px;
}

.feedback_input_text[name="mess"] {
    scrollbar-color: transparent transparent;
}


.feedback_input_text::placeholder {
    color: var(--ftc);
}

.feedback_input_text:focus {
    border-color: var(--svc);
    background: var(--ffc);
    outline: none;
    box-shadow: 0 0 0 3px #8d825940;
}

.feedback_input_text:hover {
    background: var(--fc);
}

.feedback_input_submit {
    padding: 16px 28px;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 600;
    background: var(--svc);
    color: var(--ffc);
    border-radius: 10px;
    cursor: pointer;
}

.feedback_input_submit:hover {
    background: var(--sc);
    color: var(--ffc);
}

.feedback_input_submit:active {
    background: var(--sc);
    color: var(--ffc);
    transform: translateY(2px);
}

/* BOOKING */

.booking_title {
    font-size: 40px;
    font-weight: 500;
    line-height: 40px;
    color: var(--tc);
    text-align: center;
    margin-bottom: 10px;
}

.booking_input {
    width: 100%;
    margin: 15px 0;
    border: 1px solid var(--sc);
    transition: color .3s ease, background .3s ease, box-shadow .3s ease, scrollbar-color .3s ease;
}

.booking_input_text {
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 500;
    color: var(--tc);
    background: var(--ffc);
    border-radius: 8px;
}

.booking_input_not_text {
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 500;
    color: var(--tc);
    background: var(--ffc);
    border-radius: 8px;
    width: 49%;
}

.booking_flex_div {
    display: flex;
    justify-content: space-between;
}

.booking_input_text::placeholder {
    color: var(--ftc);
}

.booking_input_text:focus {
    border-color: var(--svc);
    background: var(--ffc);
    outline: none;
    box-shadow: 0 0 0 3px #8d825940;
}

.booking_input_text:hover {
    background: var(--fc);
}

.booking_input_submit {
    padding: 16px 28px;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 600;
    background: var(--svc);
    color: var(--ffc);
    border-radius: 10px;
    cursor: pointer;
}

.booking_input_submit:hover {
    background: var(--sc);
    color: var(--ffc);
}

.booking_input_submit:active {
    background: var(--sc);
    color: var(--ffc);
    transform: translateY(2px);
}

/* GAME */
.game_text {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 44px;
    text-overflow: ellipsis;
    color: var(--tc);
}

.game_rules {
    font-size: 22px;
    text-overflow: ellipsis;
}

.game_attempts {
    font-size: 22px;
    text-overflow: ellipsis;
}

.game_win {
    font-size: 40px;
    margin: 15px 0 30px;
}

.game_win-hidden {
    font-size: 0;
}

.game_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.game_img {
    width: 240px;
    height: 330px;
    margin: 0 15px 50px;
    transition: filter 1s ease;
    user-select: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game_img-hidden {
    filter: brightness(0) invert(0.6) sepia(1) hue-rotate(8deg);
}

.game_button {
    padding: 16px 28px;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 600;
    background: var(--svc);
    color: var(--ffc);
    border-radius: 10px;
    margin-right: 30px;
    cursor: pointer;
    width: 100%;
    transition: background .5s ease, color .5s ease;
}

.game_button:hover {
    background: var(--sc);
    color: var(--ffc);
}

.game_button:active {
    background: var(--sc);
    color: var(--ffc);
    transform: translateY(2px);
}

/* FOOTER */
.footer_section {
    background: var(--fc);
    margin-top: 50px;
}

.footer {
    padding: 23px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footer_logo_number {
    max-width: 180px;
    width: 100%;
}

.number {
    padding-top: 35px;
}

.phone {
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
    color: var(--tc);
}

.name {
    padding-top: 8px;
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    color: var(--ftc);
}

.footer_nav_list {
    display: flex;
    gap: 60px;
}

.footer_nav_item {
    display: flex;
    flex-direction: column;
}

.footer_nav_item .excursion_button {
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    color: var(--sc);
    padding: 0;
    padding-bottom: 6px;
    background: transparent;
}

.footer_nav_item .excursion_button-active {
    background: transparent;
}

.footer_nav_item .excursion_button:hover {
    color: var(--sc);
    background: transparent;
}

.footer_nav_link {
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    color: var(--sc);
}

.footer_nav_link:hover {
    color: var(--ftc);
}

.footer_nav_link:not(:last-child) {
    padding-bottom: 6px;
}

.footer_nav_social {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    width: 100%;
}

.footer_social_icon {
    display: flex;
    gap: 40px;
}

.footer_social_link {
    color: var(--tc);
}

.footer_icon {
    transition: color 0.3s ease;
}

.footer_icon path {
    fill: currentColor;
}

.footer_icon:hover {
    color: var(--sc);
}

.footer_social_text {
    padding-top: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    color: var(--ftc);
}

.footer_social_copyright {
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    color: var(--ftc);
}

.footer_social_reserved {
    padding-top: 6px;
}

/* Accessibility & general protections */
a,
a:link,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

aside,
footer,
header,
main,
nav,
section {
    display: block;
}

ul,
ul li {
    list-style: none;
}

address {
    font-style: normal;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
    display: none;
}

button,
input[type=submit] {
    display: inline-block;
    box-shadow: none;
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

label {
    cursor: pointer;
}

legend {
    display: block;
}

/* ============================
      ADAPTIVE (чистый, единый блок)
      чек-пойнты: 1440 / 690 / 320
      (удалены все старые экспериментальные адаптивы)
      ============================ */

/* Общие защитные правила для адаптива */
.excursion_card,
.excursion_block,
.excursion_tabs .excursion_button,
.feedback_content,
.feedback_input,
.feedback_input_text {
    min-width: 0;
}

.excursion_name,
.vit_subtitle,
.team_subtitle,
.footer_nav_link,
.feedback_input_text {
    word-break: break-word;
    overflow-wrap: break-word;
}


/* Форма: поля адаптивные */
.feedback_content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.feedback_input,
.feedback_input_text,
.feedback_input_submit {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

/* ============================
      1440px — ДЕСКТОП (легкая подстройка)
      ============================ */
@media (max-width: 1440px) {
    .container {
        max-width: 1000px;
    }

    .main_heading {
        font-size: 52px;
        line-height: 60px;
    }

    .excursion_card {
        max-width: 320px;
    }
}

/* ============================
   ADAPTIVE: 690px (Tablet / Mobile Large)
   Строго по макету: вертикальное выравнивание, 
   одна карточка в ряд, полная ширина изображений.
   ============================ */

@media (max-width: 690px) {

    /* --- GLOBAL LAYOUT FIXES --- */
    .container {
        padding: 0 20px;
        /* Чуть больше отступа по краям */
    }

    .secret_star[data-page="quiz"] {
        top: 140px;
        left: 281px;
    }

    /* --- HEADER --- */
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    /* Логотип по центру */
    .logo {
        justify-content: center;
    }

    /* Меню превращаем в список по центру (так как нет JS бургера) */
    .nav_list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 20px;
    }

    .main_nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 20px;
    }

    .nav_link {
        font-size: 18px;
        line-height: 23px;
    }

    /* BREADCRUMBS */
    .breadcrumbs {
        padding: 8px 0;
    }

    .breadcrumbs_item {
        font-size: 12px;
    }

    /* --- MAIN SECTION --- */
    .main {
        flex-direction: column;
        /* Картинка сверху, текст снизу */
        gap: 30px;
        text-align: center;
        /* Центрируем текст */
    }

    .main_left,
    .main_right {
        width: 100%;
        max-width: 100%;
    }

    .main_image {
        display: flex;
        justify-content: center;
    }

    .main_heading {
        font-size: 40px;
        line-height: 1.1;
    }

    .main_subtitle {
        font-size: 16px;
        margin-top: 15px;
    }

    .main_button {
        margin: 30px auto 0 auto;
        /* Центрируем кнопку */
    }

    /* --- excursion (Catalog) --- */
    .excursion_top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .excursion_text {
        font-size: 30px;
    }

    /* Кнопки фильтров */
    .excursion_tabs {
        width: 100%;
        overflow-x: auto;
        /* Добавляем скролл, если не влезут */
        padding-bottom: 10px;
        /* Место для скроллбара */
        justify-content: flex-start;
        gap: 10px;
    }

    /* Сами карточки товаров */
    .excursion_block-active {
        justify-content: center;
        /* Центрируем карточки */
    }

    .excursion_name {
        min-height: 0;
    }

    .excursion_card {
        width: 100%;
        /* вместо max-width: 100% */
        max-width: none;
        margin-bottom: 20px;
    }

    .excursion_card>img {
        width: 100%;
        height: auto;
        max-height: 400px;
        /* Ограничиваем высоту картинки */
        object-fit: cover;
    }

    .excursion_btn {
        width: 100%;
        max-width: none;
        /* Кнопка "Записаться" во всю ширину */
    }

    /* --- vitebsk (Yellow section) --- */
    .vitebsk {
        padding: 50px 0;
    }

    .vit_logo_title {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vit_title {
        font-size: 30px;
        line-height: 1.2;
    }

    .vit_subtitle {
        text-align: center;
        font-size: 16px;
        max-width: none;
    }

    .vit_link {
        display: block;
        margin: 40px auto 0 auto;
        text-align: center;
        width: fit-content;
    }

    .booking_flex_div {
        flex-direction: column;
    }

    .booking_input_not_text {
        width: 100%;
    }

    /* --- team (Team) --- */
    .team {
        flex-direction: column;
        text-align: center;
    }

    .team_img {
        width: 100%;
        height: auto;
        max-width: 500px;
        /* Ограничиваем ширину фото команды */
        margin: 0 auto;
    }

    .team_right {
        max-width: 100%;
    }

    .team_title {
        font-size: 30px;
    }

    .team_people_image {
        justify-content: center;
        /* Центрируем иконки людей */
    }

    /* --- FOOTER --- */
    .footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer_logo_number {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .number {
        padding-top: 15px;
        text-align: center;
    }

    /* Ссылки в футере перестраиваем */
    .footer_nav_social {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer_nav_list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer_nav_item {
        align-items: center;
    }

    .footer_social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ============================
      320px — МОБИЛЬНЫЕ (Mobile)
      ============================ */
@media (max-width: 320px) {

    .container {
        padding: 0 15px;
    }

    /* HEADER */
    .logo_text {
        font-size: 18px;
    }

    .nav_list {
        gap: 12px;
    }

    .secret_star[data-page="quiz"] {
        top: 296px;
        left: 150px;
    }

    .main_nav {
        gap: 12px;
    }

    /* MAIN */
    .main_heading {
        font-size: 32px;
        line-height: 38px;
    }

    .main_subtitle {
        font-size: 16px;
    }

    .main_button {
        width: 100%;
        height: 55px;
        font-size: 18px;
    }

    /* excursion */
    .excursion_text {
        font-size: 32px;
        text-align: center;
    }

    .excursion_button {
        font-size: 20px;
        padding: 8px 4px;
        width: 100%;
    }

    .excursion_card {
        max-width: 100%;
        padding: 15px;
    }

    .excursion_card>img {
        min-height: 0;
        height: auto;
    }

    /* Название — ровно 3 строки */
    .excursion_name {
        font-size: 20px;
        line-height: 26px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 62px;
    }

    .excursion_price {
        font-size: 20px;
    }

    .excursion_btn {
        width: 100%;
        height: 55px;
        font-size: 18px;
    }

    /* vitebsk */
    .vit_title {
        font-size: 28px;
        line-height: 34px;
    }

    .vit_subtitle {
        font-size: 16px;
    }

    /* team */
    .team_title {
        font-size: 28px;
    }

    .team_subtitle {
        font-size: 16px;
    }

    .people_img {
        max-width: 60px;
    }

    /* FEEDBACK */
    .feedback_input_text {
        font-size: 16px;
        padding: 12px;
    }

    .feedback_input_submit {
        width: 100%;
        font-size: 18px;
        padding: 14px;
    }

    /* FOOTER */
    .footer_nav_list {
        flex-direction: column;
        gap: 20px;
    }

    .footer_social_icon {
        gap: 20px;
    }
}

/* ============================
      Дополнительная страховка против горизонтального скролла
      ============================ */
@media (max-width: 470px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .feedback_input_text {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
