html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
    overflow: hidden;

    background-image: url("/img/indexback.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

* {
    box-sizing: border-box;
}

.visit-page {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    background: #f6f7f9;

    box-shadow:
            0 0 0 1px rgba(0,0,0,0.04),
            0 12px 40px rgba(0,0,0,0.18);
}

.visit-langs {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 10;

    display: flex;
    gap: 6px;

    padding: 6px;
    border-radius: 999px;

    background: rgba(236, 224, 198, 0.72);
    border: 1px solid rgba(95, 72, 45, 0.25);
    box-shadow: 0 3px 10px rgba(50, 35, 20, 0.18);
    backdrop-filter: blur(2px);
}

.visit-langs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 30px;
    padding: 0 10px;

    border-radius: 999px;

    color: #4b3825;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    background: rgba(255, 248, 226, 0.65);
    border: 1px solid rgba(95, 72, 45, 0.18);
}

.visit-langs a:hover {
    background: rgba(255, 248, 226, 0.9);
}

.visit-langs a.active,
.visit-langs a[aria-current="page"] {
    background: #6f5637;
    color: #f7ead0;
    border-color: #6f5637;
}

.visit-content {
    flex: 1 1 auto;
    min-height: 0;

    display: flex;
    align-items: stretch;
    justify-content: stretch;

    width: 100%;

    padding:
            35px   /* сверху */
            20px
            40px;

    overflow-y: auto;
    background-image: url("/img/background2.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.visit-content-inner {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: auto;

    padding: 28px 24px;
}

.visit-content-inner h1 {
    margin: 0 0 12px;

    color: #3a2b1e;
    font-size: 30px;
    line-height: 1.12;
}

.visit-subtitle {
    margin: 0 0 14px;

    color: #6f5637;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}

.visit-text {
    margin: 0 0 24px;

    color: #4f463c;
    font-size: 15px;
    line-height: 1.5;
}

.visit-quest-info {
    display: grid;
    gap: 12px;

    margin-top: 18px;
    padding: 14px;

    overflow: hidden;

    background: rgba(255, 250, 238, 0.88);
    border: 1px solid rgba(111, 86, 55, 0.24);
    border-radius: 8px;
    box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.7) inset,
            0 10px 22px rgba(58, 43, 30, 0.14);
}

.visit-quest-info-title {
    color: #2f261d;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
}

.visit-quest-info-description {
    color: #594d41;
    font-size: 14px;
    line-height: 1.45;
}

.visit-quest-info img {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;

    border-radius: 6px;
    border: 1px solid rgba(111, 86, 55, 0.18);
    background: rgba(111, 86, 55, 0.12);
}

.visit-quest-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;

    min-height: 44px;
    padding: 0 22px;

    color: #f7f1dc;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    text-shadow:
            0 2px 2px rgba(0, 0, 0, 0.65),
            0 0 8px rgba(0, 0, 0, 0.3);

    background-color: transparent;
    background-image: url("/img/btn_back.png");
    background-position: center;
    background-size: 100% 100%;

    transition:
            transform 0.12s ease,
            filter 0.12s ease;
}

.visit-quest-info-link:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.visit-quest-info-link:active {
    filter: brightness(0.96);
    transform: translateY(1px) scale(0.99);
}

.actions {
    margin-top: 32px;

    display: flex;
    justify-content: center;
}

.actions button {
    appearance: none;
    border: none;
    min-width: 240px;
    height: 72px;
    padding: 0 36px;

    font-size: 22px;
    font-weight: 700;
    color: #f7f1dc;
    text-shadow:
            0 2px 2px rgba(0, 0, 0, 0.7),
            0 0 8px rgba(0, 0, 0, 0.35);

    cursor: pointer;

    background-position: center;
    background-image: url("/img/btn_back.png");
    background-color: transparent;
    background-size: 100% 100%;

    transition:
            transform 0.12s ease,
            filter 0.12s ease;
}

.actions button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.actions button:active {
    transform: translateY(1px) scale(0.99);
    filter: brightness(0.96);
}
