

.rules-page {
    --rules-accent: #a58979;
    --rules-accent-soft: #f3ede9;
    --rules-secondary: #c9b6aa;
    --rules-text: #404040;
    --rules-muted: #777;
    --rules-line: #e7e7e7;
    color: var(--rules-text);
    padding-bottom: 100px;
}

.pubcontent .cont > h1 + .rules-page {
    margin-top: 38px;
}

.rules-page--dogs {
    --rules-accent: #b98267;
    --rules-accent-soft: #f7eee9;
}

.rules-page__hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
    padding: 42px 70px 44px;
    border-radius: 30px;
    background: #f6f6f6;
}

.rules-page__hero::before,
.rules-page__hero::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.rules-page__hero::before {
    width: 280px;
    height: 280px;
    top: -150px;
    right: -60px;
    background: var(--rules-secondary);
    opacity: .16;
}

.rules-page__hero::after {
    width: 190px;
    height: 190px;
    right: 100px;
    bottom: -145px;
    background: var(--rules-accent);
    opacity: .12;
}

.pubcontent .cont .rules-page__lead {
    position: relative;
    z-index: 1;
    max-width: 710px;
    margin: 0;
    padding: 0;
    color: #595959;
    font-size: 20px;
    line-height: 1.55;
}

.rules-page__list {
    display: block;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.rules-page__item {
    position: relative;
    padding: 0;
}

.rules-page__item + .rules-page__item {
    margin-top: 38px;
}

.rules-page__item--wide {
    width: 100%;
}

.rules-page__heading-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.rules-page__marker {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 30px;
    color: var(--rules-accent);
    line-height: 1;
}

.rules-page__marker svg {
    width: 46px;
    height: 30px;
    fill: currentColor;
}

.rules-page--restaurant .rules-page__marker {
    color: #d5b9a9;
}

.rules-page--dogs .rules-page__marker {
    flex-basis: 34px;
    width: 34px;
    color: #b98267;
}

.rules-page--dogs .rules-page__marker svg {
    width: 24px;
    height: 24px;
}

.pubcontent .cont .rules-page__heading {
    margin: 0;
    color: #404040;
    font-family: agora_bold, Arial, sans-serif;
    font-size: 23px;
    line-height: 1.25;
}

.pubcontent .cont .rules-page__text,
.pubcontent .cont .rules-page__item p {
    margin: 0;
    padding: 0;
    color: var(--rules-text);
    font-size: 17px;
    line-height: 1.58;
}

.rules-page__bullets {
    margin: 7px 0;
    padding: 0;
    list-style: none;
}

.rules-page__bullets li {
    position: relative;
    margin-top: 7px;
    padding-left: 22px;
    color: var(--rules-text);
    font-size: 17px;
    line-height: 1.5;
}

.rules-page__bullets li::before {
    position: absolute;
    content: "";
    width: 7px;
    height: 7px;
    left: 0;
    top: .7em;
    border-radius: 50%;
    background: var(--rules-secondary);
}

.rules-page__note {
    position: relative;
    display: block;
    overflow: hidden;
    margin-top: 32px;
    padding: 38px 50px 39px 42px;
    border-radius: 52px 24px 52px 24px;
    background: linear-gradient(135deg, var(--rules-accent-soft), #faf6f3);
}

.rules-page__note::after {
    position: absolute;
    content: "";
    width: 150px;
    height: 150px;
    right: -75px;
    bottom: -95px;
    border: 22px solid var(--rules-accent);
    border-radius: 50%;
    opacity: .08;
}

.rules-page__note-mark {
    position: absolute;
    z-index: 0;
    width: 118px;
    height: 118px;
    left: 14px;
    top: 2px;
    color: var(--rules-accent);
    opacity: .1;
    pointer-events: none;
    transform: rotate(-13deg);
}

.rules-page__note-mark svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.rules-page__note-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.pubcontent .cont .rules-page__note-title {
    margin: 0 0 8px;
    color: #404040;
    font-family: agora_bold, Arial, sans-serif;
    font-size: 24px;
    line-height: 1.3;
}

.pubcontent .cont .rules-page__note p {
    margin: 0;
    padding: 0;
    color: #595959;
    font-size: 17px;
    line-height: 1.55;
}

.rules-page__legal {
    max-width: 760px;
    margin: 20px auto 0;
}

.pubcontent .cont p.rules-page__legal {
    margin: 20px auto 0;
    padding: 0;
    color: var(--rules-muted);
    font-size: 12px;
    line-height: 1.5;
}

.rules-page__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--rules-line);
}

.rules-page__back,
.rules-page__other {
    display: inline-flex;
    align-items: center;
    color: #404040;
    font-size: 16px;
    line-height: 1.3;
}

.rules-page__back::before {
    content: "←";
    margin-right: 10px;
    color: var(--rules-accent);
    font-size: 22px;
}

.rules-page__other {
    padding: 12px 19px;
    border: 1px solid var(--rules-accent);
    border-radius: 7px;
}

.rules-page__back:hover,
.rules-page__other:hover {
    color: var(--rules-accent);
}

.rules-page__other:hover {
    background: var(--rules-accent-soft);
}


@media only screen and (min-width: 768px) {
    .content:has(.rules-links) {
        min-height: 0;
    }

    .content:has(.rules-links) > .rel {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 150px);
    }

    .content:has(.rules-links) > .rel > .mt60,
    .content:has(.rules-links) > .rel > .mt100 {
        display: none;
    }

    .content:has(.rules-links) .footer {
        margin-top: auto;
    }
}

.rules-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 900px;
    margin: 55px auto 120px;
}

.rules-links__item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 145px;
    padding: 34px 78px 34px 34px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 22px;
    background: #f7f7f7;
    color: #404040;
    box-shadow: 0 12px 32px rgba(82, 60, 48, .09);
}

.rules-links__item--restaurant {
    border-color: #d8c4b8;
    background: linear-gradient(110deg, #faf7f5, #f0e7e1);
}

.rules-links__item--dogs {
    border-color: #e3c4b5;
    background: linear-gradient(110deg, #fff9f5, #f8e9e1);
}

.rules-links__item::after {
    position: absolute;
    z-index: 3;
    content: "→";
    right: 28px;
    top: 50%;
    color: #a58979;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform .25s ease;
}

.rules-links__item:hover {
    border-color: #a58979;
    color: #404040;
}

.rules-links__item:hover::after {
    transform: translate(6px, -50%);
}

.rules-links__title {
    position: relative;
    z-index: 2;
    display: block;
    max-width: none;
    font-family: agora_bold, Arial, sans-serif;
    font-size: 24px;
    line-height: 1.25;
}

.rules-links__art {
    position: absolute;
    z-index: 1;
    top: auto;
    bottom: -32px;
    left: -31px;
    width: 170px;
    height: 120px;
    color: var(--rules-accent);
    opacity: .18;
    pointer-events: none;
    transform: rotate(-8deg);
}

.rules-links__art svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.rules-links__item--dogs .rules-links__art {
    width: 108px;
    height: 108px;
    left: -16px;
    top: auto;
    bottom: -24px;
    color: #b98267;
    opacity: .22;
    transform: rotate(12deg);
}

@media only screen and (max-width: 767px) {
    .rules-page {
        padding-bottom: 55px;
    }

    .rules-page__hero {
        margin: 0 -10px 30px;
        padding: 32px 25px 31px;
        border-radius: 22px;
    }

    .pubcontent .cont .rules-page__lead {
        font-size: 17px;
        line-height: 1.5;
    }

    .rules-page__list,
    .rules-links {
        grid-template-columns: 1fr;
    }

    .rules-page__item {
        padding: 0;
    }

    .rules-page__item + .rules-page__item {
        margin-top: 32px;
    }

    .pubcontent .cont .rules-page__heading {
        font-size: 20px;
    }

    .pubcontent .cont .rules-page__text,
    .pubcontent .cont .rules-page__item p,
    .rules-page__bullets li {
        font-size: 16px;
    }

    .pubcontent .cont .rules-page__text,
    .pubcontent .cont .rules-page__item p {
        margin-left: 0;
    }

    .rules-page__bullets {
        margin-left: 0;
    }

    .rules-page__note {
        padding: 28px 24px 29px;
        border-radius: 34px 18px 34px 18px;
    }

    .rules-page__note-mark {
        width: 88px;
        height: 88px;
        left: 8px;
        top: 5px;
    }

    .rules-page__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .rules-page__other {
        justify-content: center;
        text-align: center;
    }

    .rules-links {
        max-width: none;
        margin: 38px 0 70px;
    }

    .rules-links__item {
        min-height: 135px;
        padding: 28px 62px 28px 25px;
    }

    .rules-links__title {
        font-size: 21px;
    }

    .rules-links__art {
        left: -27px;
        top: auto;
        bottom: -24px;
        width: 120px;
        height: 90px;
    }

    .rules-links__item--dogs .rules-links__art {
        left: -15px;
        top: auto;
        bottom: -19px;
        width: 78px;
        height: 78px;
    }

    .rules-links__item::after {
        right: 20px;
        font-size: 30px;
    }
}

@media print {
    .rules-page__footer {
        display: none;
    }

    .rules-page__item {
        break-inside: avoid;
    }
}
