/*
* Style
*/

/*************************************************************
СБРОС СТИЛЕЙ
*************************************************************/

*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
}

ul[role="list"], ol[role="list"] {
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img, picture {
    max-width: 100%;
    height: auto;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

hr {
    border: 0;
    border-top: 1px solid #e5e9ef;
    margin: 0;
}

b, strong {
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.screen-reader-text, .screen-reader-text span, .screen-reader-shortcut {
    position: absolute !important;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
    color: #333;
    background: #fff
}

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/
/* ibm-plex-sans-300 - latin_cyrillic */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local(''),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-300.woff2') format('woff2'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-300.woff') format('woff'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-300.ttf') format('truetype'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-300.svg#IBMPlexSans') format('svg');
}

/* ibm-plex-sans-regular - latin_cyrillic */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-regular.woff2') format('woff2'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-regular.woff') format('woff'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-regular.ttf') format('truetype'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-regular.svg#IBMPlexSans') format('svg');
}

/* ibm-plex-sans-600 - latin_cyrillic */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local(''),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-600.woff2') format('woff2'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-600.woff') format('woff'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-600.ttf') format('truetype'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-600.svg#IBMPlexSans') format('svg');
}

/* ibm-plex-sans-700 - latin_cyrillic */
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local(''),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-700.woff2') format('woff2'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-700.woff') format('woff'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-700.ttf') format('truetype'),
        url('fonts/ibm-plex-sans-v14-latin_cyrillic-700.svg#IBMPlexSans') format('svg');
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

body {
    position: relative;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #272746;
    line-height: 1.76;
    background-color: #fff;
    overflow-x: hidden;
}

p {
    margin-top: 0;
    margin-bottom: 20px;
}

p:empty, p:last-of-type {
    margin-bottom: 0;
}

.site-container {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: auto;
    max-width: 1300px;
}

.site-main {
    flex: 1 0 auto;
}

.hide {
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
}

@media screen and (max-width: 1350px) {
    .site-container {
        padding: 0 15px;
        overflow: hidden;
    }
}

/* ## Headings */

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    line-height: 1.5;
    font-weight: 700;
}

h1, h2, h3, h4, h5 {
    margin-bottom: 30px;
    margin-top: 40px;
}

h1, .h1 {
    margin-top: 0;
    font-size: 42px;
}

h1 span {
    font-weight: 300;
}

.h1-column h1 {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

h2, .h2 {
    font-size: 32px;
}

h3, .h3 {
    font-size: 26px;
}

h4, .h4 {
    font-size: 24px;
    line-height: 1.5;
}

h5, .h5 {
    font-size: 20px;
    line-height: 1.5;
}

.h6, .h7 {
    font-weight: 700;
    line-height: 1.4;
}

h6, .h6 {
    font-size: 18px;
}

.h7 {
    font-size: 16px;
}

@media screen and (max-width: 640px) {
    h1, h2, h3, h4, h5 {
        word-break: break-word
    }

    h1 {
        font-size: 32px;
    }
}

/* ## Links */

a, button, input, textarea, .button {
    transition: .3s
}

a {
    color: #4343a0;
    text-decoration: none;
}

.post a:not([class]) {
    text-decoration: underline;
}

.post a:not([class]):hover {
    text-decoration: none;
}


/* ## Form */

input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
textarea, select {
    display: block;
    margin: 0;
    padding: 15px 20px;
    width: 100%;
    font-size: 16px;
    color: #272746;
    line-height: 1.3;
    background-color: #fff;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    border-radius: 10px;
}

select:hover {
    cursor: pointer;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="date"]:focus,
textarea:focus, select:focus {
    border-color: #e6eaee;
    outline: none
}

input[type="text"]:disabled, input[type="email"]:disabled, input[type="search"]:disabled, input[type="number"]:disabled, input[type="tel"]:disabled, input[type="date"]:disabled,
textarea:disabled, select:disabled {
    color: rgba(39, 39, 70, 0.5);
    background-color: #fbf8fd;
    cursor: not-allowed;
}

input[type="checkbox"], input[type="image"], input[type="radio"] {
    padding: auto;
    width: auto;
}

select {
    padding-right: 50px;
    background-image: url(img/angle.png);
    background-position: right 20px center;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none !important;
}

select::-ms-expand {
    display: none;
}

select.big {
    font-size: 20px;
    font-weight: 700;
}

/* ## Buttons */

.button, button, input[type="button"], input[type="reset"], input[type="submit"] {
    margin: 0;
    padding: 20px 30px;
    width: auto;
    font-size: 14px;
    color: #fff;
    line-height: 1;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    background-color: #8d61f1;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

button:focus, input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus {
    outline: unset;
}

button:disabled, input[type="button"]:disabled, input[type="reset"]:disabled, input[type="submit"]:disabled {
    background-color: #a286e4;
    opacity: .8;
    cursor: not-allowed;
}

button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .button:hover {
    opacity: .8;
}

.button-arrow {
    display: flex;
    align-items: center;
    margin-top: auto;
    margin-left: -20px;
    padding: 6px 20px 7px;
    font-size: 15px;
    line-height: 1;
    color: #4343a0;
    border-radius: 5px;
    transition: 0.3s linear
}

.button-arrow:after {
    content: "";
    width: 38px;
    height: 9px;
    margin-left: 20px;
    background-image: url(img/arrow.png);
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.3s linear
}

.button-arrow:hover, .item:hover .button-arrow {
    margin-left: 0;
    color: #fff;
    text-decoration: none;
    background-color: #4343a0
}

.button-arrow:hover:after, .item:hover .button-arrow:after {
    background-image: url(img/arrow-wh.png)
}

.button-line {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #272746;
    border-width: 1px;
    border-style: solid;
    border-color: #e8e8f0;
    border-radius: 10px;
}

.button-line:hover {
    border-color: #8d61f1;
}

.cross {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.cross:before, .cross:after {
    content: '';
    position: absolute;
    width: 1px;
}

.cross:before {
    transform: rotate(45deg);
}

.cross:after {
    transform: rotate(-45deg);
}

@media screen and (max-width: 640px) {
    .button, button, input[type="button"], input[type="reset"], input[type="submit"] {
        min-height: 50px;
        background: linear-gradient(#8d61f1, #8d61f1);
    }
}

/* ## Form bg */

.form-bg {
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    background-image: -moz-linear-gradient(0deg, rgb(239, 244, 250) 0%, rgb(250, 238, 250) 100%);
    background-image: -webkit-linear-gradient(0deg, rgb(239, 244, 250) 0%, rgb(250, 238, 250) 100%);
    background-image: -ms-linear-gradient(0deg, rgb(239, 244, 250) 0%, rgb(250, 238, 250) 100%);
    border-radius: 30px;
}

.form-bg form {
    display: flex;
    flex-direction: column;
}

.form-icon:before {
    content: '';
    align-self: center;
    margin-bottom: 40px;
    width: 128px;
    height: 128px;
    background-image: url(img/rand.png);
    background-position: center;
    background-repeat: no-repeat;
}

.form-bg .form-bottom {
    padding-top: 35px;
    margin-top: 10px;
    margin-bottom: 35px;
    border-top: 1px solid #e4e2ea;
}

.random-results .form-bottom {
    margin-bottom: 0;
}

.form-bg .h3 {
    margin-bottom: 30px;
    font-size: 28px;
}

.form-bg .h3:not(:first-child) {
    margin-top: 30px;
}

.small-links {
    font-size: 14px;
    color: #8d61f1;
    text-decoration: none;
    text-align: center;
}

.small-links a {
    display: block;
}

.form-bg form~.small-links {
    margin-top: 20px;
}

.small-links a:not(:last-child) {
    margin-bottom: 10px;
}

.small-links a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 400px) {
    .form-bg {
        padding: 30px 20px;
    }

    .form-bg .h3 {
        font-size: 24px;
    }
}

/* ## Fieldset */

fieldset {
    margin: 0;
    padding: 0;
    border: unset;
    min-width: unset;
}

fieldset:not(:last-child) {
    margin-bottom: 30px;
}

fieldset>*:last-child {
    margin-bottom: 0;
}

legend {
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

/* ## Margin */

.input-text:not(:last-child), .input-button:not(:last-child), .input-textarea:not(:last-child), .input-number:not(:last-child), .input-text:not(:last-child), select {
    margin-bottom: 20px;
}

/* ## Label */

.label-left {
    display: flex;
    align-items: center;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.label-left label {
    margin-bottom: 0;
    margin-right: 20px;
    flex-shrink: 0;
    line-height: 1.4;
}

label.small {
    display: block;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 300;
    line-height: 1;
    opacity: .5;
}

@media screen and (max-width: 640px) {
    .label-left {
        align-items: flex-start;
        flex-direction: column;
    }

    .label-left label {
        flex-shrink: unset;
        margin-bottom: 10px;
    }

    .label-left input {
        width: 100%;
    }
}

/* ## Input button */

.input-button>input {
    width: 100%;
}

/* ## Input number */

.amount-block {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.amount-block .right {
    position: absolute;
    right: 7px;
}

.amount-num {
    height: 60px;
}

.amount-arrow-minus, .amount-arrow-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
    color: #272746;
    border-radius: 5px;
    background-color: #f3f3f9;
    transition: .3s;
    cursor: pointer;
}

.amount-arrow-minus {
    margin-bottom: 4px;
}

.amount-arrow-minus:hover, .amount-arrow-plus:hover {
    background-color: #ececf1;
}

.amount-num:disabled+.right {
    display: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"].big {
    font-size: 28px;
    font-weight: 700;
}

input[type="text"].big {
    font-size: 20px;
    font-weight: 700;
}

@media screen and (max-width: 640px) {
    input[type="number"].big {
        font-size: 20px;
    }

    .label-left .amount-block {
        width: 100%;
    }
}

/* ## Input checkbox */

.input-checkbox {
    display: grid;
    grid-template-columns: 20px auto;
    gap: 20px;
    font-weight: 300;
    line-height: 1.1;
}

.input-checkbox+.input-checkbox {
    margin-top: 10px;
}

.form-control--disabled {
    color: var(--form-control-disabled);
    cursor: not-allowed;
}

input[type="checkbox"] {
    display: grid;
    place-content: center;
    margin: 0;
    color: #8d61f1;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 5px;
    transform: translateY(-0.075em);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

input[type="checkbox"]::before {
    content: '';
    width: 13px;
    height: 13px;
    background-image: url(img/check.png);
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"]:focus {
    outline: max(2px, 0.15em) solid #8d61f1;
    outline-offset: max(2px, 0.15em);
}

input[type="checkbox"]:disabled {
    opacity: .5;
    cursor: not-allowed;
}

input[type="checkbox"]:disabled::before {
    opacity: .5;
}

/* ## Input radiobutton */

.input-radio {
    display: grid;
    grid-template-columns: 20px auto;
    gap: 20px;
    font-weight: 300;
    line-height: 1.1;
}

.input-radio+.input-radio {
    margin-top: 10px;
}

.input-radio:focus-within {}

input[type="radio"] {
    display: grid;
    place-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    color: #8d61f1;
    background-color: #fff;
    border-radius: 50%;
    transform: translateY(-0.075em);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

input[type="radio"]::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #8d61f1;
    box-shadow: inset 12px 12px #8d61f1;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

input[type="radio"]:focus {
    outline: max(2px, 0.15em) solid #8d61f1;
    outline-offset: max(2px, 0.15em);
}

input[type="radio"]:disabled {
    opacity: .5;
    cursor: not-allowed;
}

input[type="radio"]:disabled::before {
    opacity: .5;
}

/* ## Textarea wrap */

.textarea-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    padding: 20px 20px 15px;
    background-color: #fff;
    border-radius: 20px;
}

.textarea-wrap small {
    display: block;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1;
    opacity: .5;
}

.textarea-wrap textarea {
    flex-grow: 1;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
}

.textarea-wrap textarea:focus {
    border: unset
}

.textarea-wrap textarea:disabled {
    padding: 10px;
}

/* ## Range slider */

.input-range-wrap {
    --range-handle-width: 90px;
    --range-handle-height: 26px;
    --range-handle-border-radius: 5px;
    --range-handle-margin-top: -8px;
    --range-handle-background: #91c54d;
    --range-track-height: 10px;
    --range-track-border-radius: 5px;
    --range-track-background: #d8d3e4;
}

.input-range-wrap label {
    font-size: 14px;
    font-weight: 300;
}

.input-range {
    position: relative;
    width: 100%;
}

.range-slider-background {
    position: absolute;
    top: 11px;
    left: 0;
    z-index: 0;
    width: 100%;
    height: var(--range-track-height);
    background-color: var(--range-track-background);
    border-radius: var(--range-track-border-radius);
    pointer-events: none;
}

/* ### Range value */

.range-value-wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.range-label {
    font-size: 14px;
    font-weight: 700;
    opacity: 1;
    transition: opacity 0.1s ease;
}

.range-label.hidden {
    opacity: 0;
}

.range-value {
    position: absolute;
    top: 0;
    font-size: 12px;
    border-radius: var(--range-handle-border-radius);
    opacity: .7;
}

.range-value.hidden {
    opacity: 0;
}

.range-value>div {
    animation: bulge 0.3s ease-out;
}

@keyframes bulge {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ### Remove defaults range styles */

.input-range input[type="range"] {
    position: relative;
    z-index: 1;
    margin: 10px 0;
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
}

.input-range input[type="range"]::-webkit-slider-thumb {
    border: none;
    -webkit-appearance: none;
}

.input-range input[type="range"]:focus {
    outline: none;
}

.input-range input[type="range"]::-moz-focus-outer {
    border: 0;
}

/* ### Handle */

.input-range input[type="range"]::-webkit-slider-thumb {
    margin-top: var(--range-handle-margin-top);
    width: var(--range-handle-width);
    height: var(--range-handle-height);
    background-color: var(--range-handle-background);
    border-radius: var(--range-handle-border-radius);
    -webkit-transform: scale(1);
    transform: scale(1);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-appearance: none;
    cursor: pointer;
}

.input-range input[type="range"]:hover::-webkit-slider-thumb,
.input-range input[type="range"]:focus::-webkit-slider-thumb {
    transform: scale(1.2);
}

.input-range input[type="range"]::-moz-range-thumb {
    width: var(--range-handle-width);
    height: var(--range-handle-height);
    background-color: var(--range-handle-background);
    border: none;
    border-radius: var(--range-handle-border-radius);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-appearance: none;
    cursor: pointer;
}

.input-range input[type="range"]:hover::-moz-range-thumb,
.input-range input[type="range"]:focus::-moz-range-thumb {
    transform: scale(1.2);
}

/* ### Track */

.input-range input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: var(--range-track-height);
    background: none;
    border-radius: var(--range-track-border-radius);
    cursor: pointer;
}

.input-range input[type="range"]::-moz-range-track {
    width: 100%;
    height: var(--range-track-height);
    background: none;
    border-radius: var(--range-track-border-radius);
    cursor: pointer;
}

.input-range input[type="range"]:focus::-webkit-slider-runnable-track {
    background: none;
}

.input-range input[type="range"]:active::-webkit-slider-runnable-track {
    background: none;
}

/* ## Placeholder */

::placeholder {
    font-size: 16px;
    color: #223158;
    text-overflow: ellipsis;
    opacity: 0.5;
    transition: opacity ease .3s
}

input:focus::placeholder {
    opacity: 0;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f1f6;
}

@media screen and (max-width: 640px) {
    .site-header {
        flex-wrap: wrap;
    }
}

/* ## Logo */

.site-header>div:first-of-type {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    order: 1;
    margin-right: 30px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 30px;
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 700;
    color: #272746;
}

.logo picture {
    flex-shrink: 0;
}

.logo img {
    height: auto;
}

.site-desc {
    max-width: 150px;
    font-size: 12px;
    color: #272746;
    line-height: 1.4;
}

@media screen and (max-width: 1240px) {
    .site-header>div:first-of-type {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header .logo {
        margin-right: 0;
    }

    .site-desc {
        margin-top: 10px;
        max-width: 100%;
    }
}

@media screen and (max-width: 640px) {
    .site-desc {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    .logo {
        font-size: 25px;
    }

    .logo img {
        width: 180px;
    }
}

/* ## Lang */

.lang {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    order: 3;
    margin-left: 30px;
}

.lang>* {
    flex-shrink: 0;
}

.lang>*:not(:last-child) {
    margin-right: 20px;
}

.lang a {
    opacity: .3;
}

.lang a:hover {
    opacity: 1;
}

@media screen and (max-width: 980px) {
    .lang {
        order: 2;
    }
}

@media screen and (max-width: 640px) {
    .lang {
        order: 3;
        justify-content: center;
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }
}

/*--------------------------------------------------------------
# Menu
--------------------------------------------------------------*/

.menu {
    position: relative;
    display: flex;
    margin: 0;
    padding: 0;
    line-height: 1;
    list-style: none;
}

.menu a:hover {
    text-decoration: underline;
}

@media screen and (min-width: 981px) {
    .header-menu {
        position: relative;
        order: 2;
    }

    /* ## Primary menu */
    .primary-menu .menu {
        font-size: 14px;
        font-weight: 700;
    }

    .primary-menu>ul>li {
        position: relative;
        display: flex;
        white-space: nowrap;
    }

    .primary-menu>ul>li:not(:last-of-type) {
        margin-right: 5px;
    }

    .primary-menu a {
        color: #272746;
        text-decoration: none;
    }

    .primary-menu>ul>li>a {
        position: relative;
        display: flex;
        align-items: center;
        padding: 10px 20px;
        text-transform: uppercase;
        border-radius: 10px;
    }

    .primary-menu>ul>li:hover>a, .primary-menu>ul>li.current-menu-item>a {
        color: #fff;
        background-color: #8d61f1;
    }

    .primary-menu>ul>li.cat-5.blog>a {
        color: #fff;
        background-color: #91c54d;
    }

    .primary-menu>ul>li.cat-5.blog:hover>a {
        opacity: .7;
    }

    .primary-menu a:hover {
        text-decoration: unset;
    }

    .primary-menu>ul>li>a:before {
        content: '';
        margin-right: 10px;
        width: 24px;
        height: 24px;
        background-position: center;
        background-repeat: no-repeat;
        transition: .3s
    }

    .primary-menu>ul>li.cat-1>a:before {
        background-image: url(img/cat-1.png)
    }

    .primary-menu>ul>li.cat-1:hover a:before, .primary-menu>ul>li.cat-1.current-menu-item>a:before {
        background-image: url(img/cat-1-hover.png)
    }

    .primary-menu>ul>li.cat-2>a:before {
        background-image: url(img/cat-2.png)
    }

    .primary-menu>ul>li.cat-2:hover a:before, .primary-menu>ul>li.cat-2.current-menu-item>a:before {
        background-image: url(img/cat-2-hover.png)
    }

    .primary-menu>ul>li.cat-3>a:before {
        background-image: url(img/cat-3.png)
    }

    .primary-menu>ul>li.cat-3:hover a:before, .primary-menu>ul>li.cat-3.current-menu-item>a:before {
        background-image: url(img/cat-3-hover.png)
    }

    .primary-menu>ul>li.cat-4>a:before {
        background-image: url(img/cat-4.png)
    }

    .primary-menu>ul>li.cat-4:hover a:before, .primary-menu>ul>li.cat-4.current-menu-item>a:before {
        background-image: url(img/cat-4-hover.png)
    }

    .primary-menu>ul>li.cat-5>a:before {
        background-image: url(img/cat-5.png)
    }

    .primary-menu li:hover>.sub-menu {
        display: flex
    }

    .primary-menu li ul {
        position: absolute;
        top: 38px;
        left: 0;
        z-index: 3;
        display: none;
        flex-direction: column;
        margin: 0;
        padding: 15px 10px 10px 10px;
        width: 100%;
        min-width: 250px;
        height: auto;
        background-color: #8d61f1;
        border-radius: 0 10px 10px 10px;
        list-style: none;
    }

    .primary-menu li ul li {
        position: relative;
    }

    .primary-menu li ul li:not(:last-of-type) {
        margin-bottom: 3px;
    }

    .primary-menu li ul a, .primary-menu .hide-menu a {
        display: block;
        padding: 11px;
        font-size: 16px;
        color: #fff;
        font-weight: 400;
        line-height: 1;
        border-radius: 10px;
    }

    .primary-menu li ul a:hover {
        color: #272746;
        background-color: #fff;
    }

    .primary-menu li ul ul {
        top: 0;
        left: 100%;
        border-radius: 0 10px 10px
    }

    /* ## Hide menu */
    .primary-menu .hide-menu {
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        cursor: pointer;
    }

    .primary-menu .hide-menu .burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 55px;
        height: 37px;
    }

    .primary-menu .hide-menu .burger span, .primary-menu .hide-menu .burger span:before, .primary-menu .hide-menu .burger span:after {
        width: 15px;
        height: 3px;
        background-color: #000;
        border-radius: 3px;
        transition: .3s;
    }

    .primary-menu .hide-menu .burger span {
        position: relative;
    }

    .primary-menu .hide-menu .burger span:before, .primary-menu .hide-menu .burger span:after {
        content: '';
        position: absolute;
    }

    .primary-menu .hide-menu .burger span:before {
        top: -6px;
    }

    .primary-menu .hide-menu .burger span:after {
        top: 6px;
    }

    .primary-menu .hide-menu:hover .burger {
        background-color: #d82c2c;
        border-radius: 5px;
    }

    .primary-menu .hide-menu:hover .burger span, .primary-menu .hide-menu:hover .burger span:before, .primary-menu .hide-menu:hover .burger span:after {
        background-color: #fff;
    }

    .primary-menu li.hide-menu>ul {
        right: 0;
        left: unset;
    }
}

@media screen and (max-width: 1300px) {
    .primary-menu>ul>li>a {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 1040px) {
    .primary-menu .menu {
        flex-wrap: wrap;
    }
}

/* ## Mobile menu */

#mobile-menu-toggle {
    display: none;
}

.mobile-menu-button {
    margin-bottom: 0;
}

@media screen and (max-width: 980px) {
    .header-menu {
        position: relative;
        order: 3;
        margin-top: 0;
        padding: 10px 25px;
        height: 50px;
    }

    .mobile-menu-button {
        position: relative;
        right: -25px;
        z-index: 999;
        display: flex;
        align-items: center;
        margin-left: auto;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .mobile-menu-button span, .mobile-menu-button span:before, .mobile-menu-button span:after {
        position: absolute;
        top: 14px;
        right: 0;
        width: 35px;
        height: 5px;
        background-color: #000;
        border-radius: 3px;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .mobile-menu-button span:before {
        content: '';
        top: -10px;
    }

    .mobile-menu-button span:after {
        content: '';
        top: 10px;
    }

    #mobile-menu-toggle:checked~.mobile-menu-button span, #mobile-menu-toggle:checked~.mobile-menu-button span:before, #mobile-menu-toggle:checked~.mobile-menu-button span:after {
        background-color: #fff;
    }

    #mobile-menu-toggle:checked~.mobile-menu-button span {
        z-index: 0;
        background: transparent;
        transform: rotate(45deg);
    }

    #mobile-menu-toggle:checked~.mobile-menu-button span:before {
        top: 0;
        transform: rotate(0);
    }

    #mobile-menu-toggle:checked~.mobile-menu-button span:after {
        top: 0;
        transform: rotate(90deg);
    }

    .top-menu {
        font-size: 17px;
    }

    .primary-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        display: flex;
        flex-direction: column;
        width: 320px;
        font-size: 1em;
        color: #e2e2e2;
        background-color: #303030;
        box-shadow: 0px 0px 29px 0px rgba(104, 136, 209, 0.16);
        transition: -webkit-transform 0.35s ease-out;
        transition: transform 0.35s ease-out;
        transition: transform 0.35s ease-out, -webkit-transform 0.35s ease-out;
        transform: translate3d(-400px, 0, 0);
        overflow-y: scroll;
    }

    .primary-menu ul {
        display: block;
        line-height: 1;
    }

    .primary-menu>ul {
        margin-bottom: 20px;
    }

    .primary-menu .top-menu {
        margin-bottom: 0;
    }

    .primary-menu li {
        position: relative;
        border-top: 1px solid #4d4d4d;
    }

    .primary-menu li a {
        display: flex;
        padding: 20px 15px;
        color: #e2e2e2;
    }

    .primary-menu .sub-menu {
        padding: 0;
        list-style: none;
    }

    .top-menu .sub-menu {
        display: none;
    }

    .primary-menu .sub-menu li {
        text-transform: none;
    }

    .primary-menu .sub-menu li a {
        align-items: center;
        padding-left: 40px;
    }

    .primary-menu .sub-menu li a:before {
        content: '';
        margin-right: 10px;
        width: 3px;
        height: 10px;
        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFAQMAAAC6v8ThAAAABlBMVEVHcEwAmqjMic0bAAAAAXRSTlMAQObYZgAAABBJREFUeNpjaGA4wPAAiBsAEOoDYca3kSkAAAAASUVORK5CYII=);
        filter: grayscale(100%);
        opacity: 0.8;
        background-position: center;
        background-repeat: no-repeat;
    }

    .primary-menu .social {
        justify-content: center;
        flex-wrap: wrap;
        padding: 15px 10px;
    }

    .primary-menu .social a {
        margin-right: 10px;
        width: 40px;
        height: 40px;
    }

    #mobile-menu-toggle:checked~.primary-menu {
        transform: translate3d(0, 0, 0);
    }

    body.mobile-menu-active {
        overflow: hidden;
    }

    /* ## Menu toggle */
    .toggle {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 57px;
        background-color: rgba(255, 255, 255, 0.09);
        cursor: pointer;
    }

    .toggle:hover {
        background-color: rgba(255, 255, 255, 0.13);
    }

    .toggle:before {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnN2Z2pzPSJodHRwOi8vc3ZnanMuY29tL3N2Z2pzIiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDYxMiA2MTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUxMiA1MTIiIHhtbDpzcGFjZT0icHJlc2VydmUiIGNsYXNzPSIiPjxnPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgoJPGcgaWQ9Il94MzFfMF8zNF8iPgoJCTxnPgoJCQk8cGF0aCBkPSJNNjA0LjUwMSwxMzQuNzgyYy05Ljk5OS0xMC4wNS0yNi4yMjItMTAuMDUtMzYuMjIxLDBMMzA2LjAxNCw0MjIuNTU4TDQzLjcyMSwxMzQuNzgyICAgICBjLTkuOTk5LTEwLjA1LTI2LjIyMy0xMC4wNS0zNi4yMjIsMHMtOS45OTksMjYuMzUsMCwzNi4zOTlsMjc5LjEwMywzMDYuMjQxYzUuMzMxLDUuMzU3LDEyLjQyMiw3LjY1MiwxOS4zODYsNy4yOTYgICAgIGM2Ljk4OCwwLjM1NiwxNC4wNTUtMS45MzksMTkuMzg2LTcuMjk2bDI3OS4xMjgtMzA2LjI2OEM2MTQuNSwxNjEuMTA2LDYxNC41LDE0NC44MzIsNjA0LjUwMSwxMzQuNzgyeiIgZmlsbD0iI2ZmZmZmZiIgZGF0YS1vcmlnaW5hbD0iIzAwMDAwMCIgc3R5bGU9IiIgY2xhc3M9IiI+PC9wYXRoPgoJCTwvZz4KCTwvZz4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8L2c+CjxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjwvZz4KPGcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPC9nPgo8L2c+PC9zdmc+);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 20px;
        opacity: 0.5;
    }

    .toggle:hover:before {
        opacity: 0.8;
    }

    .primary-menu .sub-menu {
        display: none;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99;
        background: #000;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.35s ease-in;
    }

    .menu-overlay.active {
        visibility: visible;
        opacity: 0.5;
    }
}

@media screen and (max-width: 640px) {}

@media screen and (max-width: 400px) {
    .primary-menu {
        padding-top: 60px;
        width: 100%;
    }

    .primary-menu .social {
        padding-top: 10px;
    }

    .primary-menu .cross {
        position: absolute;
        right: 15px;
        top: 15px;
        display: block;
        width: 32px;
        height: 32px;
        opacity: 0.5;
        cursor: pointer;
    }

    .primary-menu .cross:before, .primary-menu .cross:after {
        content: '';
        position: absolute;
        left: 15px;
        height: 33px;
        width: 2px;
        background-color: #e2e2e2;
    }

    .cross:before {
        transform: rotate(45deg);
    }

    .cross:after {
        transform: rotate(-45deg);
    }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 25px;
    padding: 0;
    font-size: 15px;
    list-style: none;
}

.breadcrumbs li {
    margin-right: 15px;
}

.breadcrumbs a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: 0.3s linear;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs li:first-child a:before {
    content: "";
    width: 11px;
    height: 9px;
    margin-right: 20px;
    background-image: url(img/bread.png);
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.3s linear;
}

.breadcrumbs li:not(:only-child):not(:last-child) a:after {
    content: "";
    margin-left: 15px;
    width: 8px;
    height: 8px;
    border: 1px solid #16258f;
    border-radius: 50%
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/

.main-wrap {
    margin-top: 50px;
}

/* ## Reclame */

.top-reclame {
    margin-top: 24px;
    margin-bottom: 50px;
    padding: 0;
    background: transparent;
}

/* ## Columns */

.one-column {
    margin-bottom: 50px;
}

.one-column .form-bg {
    max-width: 700px;
    margin: 0 auto;
}

/*
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    grid-gap: 45px;
    margin-bottom: 50px;
}
*/

.two-column.grid-areas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: max-content;
    grid-template-areas:
        "head form"
        "text  form"
        "footer footer";
    grid-gap: 40px;
    margin-bottom: 50px;
}

.two-column.grid-areas h1 {
    grid-area: head;
    margin-bottom: 0;
}

.two-column.grid-areas .left {
    grid-area: text;
}

.two-column.grid-areas .form-bg {
    grid-area: form;
}

.two-column.grid-areas .content-footer {
    grid-area: footer;
}

.three-column {
    --minmax: 380px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--minmax), 1fr));
    grid-gap: 45px;
    margin-bottom: 50px;
}

.three-column .left {
    grid-column: span 2;
}

@media screen and (max-width: 980px) {
    .two-column.grid-areas {
        grid-template-columns: repeat(1, 1fr);
        grid-template-areas:
            "head"
            "form"
            "text"
            "footer";
    }

}

@media screen and (max-width: 640px) {
    .three-column {
        --minmax: 250px;
    }

    .two-column, .three-column {
        grid-gap: 30px;
    }
}

/* ## Stat percents */

.stat {
    margin-top: 35px;
}

.stat .percents {
    display: flex;
    margin-top: 25px;
    border-radius: 10px;
    overflow: hidden;
}

.stat .percents .progress-bar {
    display: flex;
    align-items: center;
    padding: 13px 30px;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.stat .percents .progress-bar-eagle {
    background-color: #8d61f1;
}

.stat .percents .progress-bar-tails {
    background-color: #91c54d;
}

@media screen and (max-width: 400px) {
    .stat .percents .progress-bar {
        padding: 13px 20px;
        font-size: 12px;
    }
}

/* ## Toss a coin */

.form-bg.toss-coin {
    align-self: start;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 50px 60px 50px 40px;
}

.toss-coin picture {
    flex-shrink: 0;
}

.toss-coin .small-links {
    text-align: left;
}

.toss-coin .label-left label {
    flex-shrink: unset;
}

@media screen and (max-width: 1240px) {
    .form-bg.toss-coin {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 980px) {
    .form-bg.toss-coin {
        flex-wrap: nowrap;
        padding: 30px 40px 30px 20px;
    }
}

@media screen and (max-width: 640px) {
    .form-bg.toss-coin {
        flex-direction: column;
        padding: 30px 40px;
    }

    .toss-coin .small-links {
        text-align: center;
    }
}

@media screen and (max-width: 400px) {
    .form-bg.toss-coin {
        padding: 30px 20px;
    }
}

/* ## Random */

.random-form .input-number label {
    flex-basis: 150px;
}

.input-diapazon label:last-of-type {
    margin-left: 10px;
    margin-right: 10px;
}

.input-diapazon label:first-of-type {
    flex-basis: 150px;
    text-align: right;
}

.results-wrap {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    background-color: #fff;
    border-radius: 20px;
}

.results-wrap>div {
    flex-grow: 1;
}

.results-wrap>div+div {
    padding-left: 30px;
}

.results-wrap small {
    display: block;
    margin-bottom: 15px;
    width: 100%;
    font-size: 12px;
    font-weight: 300;
    line-height: 1;
    opacity: .5;
}

.results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.results-info .h3 {
    margin-bottom: 0;
}

.results-info span {
    font-size: 14px;
}

.results-text {
    padding-right: 10px;
    max-height: 100px;
    overflow-y: scroll;
}

.results-text::-webkit-scrollbar {
    width: 5px;
    background-color: #eff4fa;
    border-radius: 3px
}

.results-text::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: #91c54d
}

.results-text::-webkit-scrollbar-track {
    border-radius: 3px;
    background-color: #eff4fa
}

@media screen and (max-width: 640px) {
    .random-form .input-number label {
        flex-basis: unset;
    }

    .input-diapazon label:first-of-type {
        flex-basis: unset;
    }

    .results-info {
        flex-direction: column;
    }

    .results-wrap>div {
        width: 100%;
    }

    .results-wrap>div+div {
        margin-top: 30px;
        padding-left: 0;
    }
}

/* ## Zhrebii */

.zhrebii-form .label-left {
    margin-bottom: 40px;
}

/* ## Nickname */

.nickname-standart {}

/* ## Content footer */

.content-footer.border {
    display: flex;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid #f1f1f6;
}

.button-vk, .button-widget {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 10px;
}

.button-vk:before, .button-widget:before {
    content: '';
    margin-right: 15px;
    width: 24px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

.button-vk:before {
    background-image: url(img/vk.png);
}

.button-widget:before {
    background-image: url(img/widget.png);
}

@media screen and (max-width: 1040px) {
    .content-footer.border {
        justify-content: center;
    }
}

@media screen and (max-width: 640px) {
    .button-vk {
        margin-bottom: 10px;
    }
}

/* ## Share */

.share {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.share:only-child {
    margin-right: auto;
}

.share>span {
    margin-left: 30px;
    max-width: 240px;
    font-size: 12px;
    line-height: 1.4;
}

.post .ya-share2__list {
    margin: 0;
}

.share .ya-share2__item {
    transition: .3s;
}

.ya-share2__list.ya-share2__list_direction_horizontal>.ya-share2__item {
    margin: 2px 8px 0 0;
}

.share .ya-share2__container_size_m .ya-share2__badge .ya-share2__icon {
    height: 32px;
    width: 40px;
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: center;
}

@media screen and (max-width: 1140px) {
    .share {
        margin-left: 0;
    }
}

@media screen and (max-width: 1040px) {
    .share {
        margin-top: 20px;
        width: 100%;
    }
}

@media screen and (max-width: 728px) {
    .share .ya-share2__container_size_m .ya-share2__badge .ya-share2__icon {
        height: 40px;
        width: 40px;
        background-size: 40px 40px;
    }

    .ya-share2__container_mobile .ya-share2__badge {
        border-radius: 5px !important;
    }

    .share>span {
        display: none;
    }
}

/* ## Popup */

.popup-wrap {
    position: fixed;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-wrap.active {
    top: 0;
}

.popup-wrap .popup-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    background: #000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease-in;
}

.popup-wrap.active .popup-overlay {
    visibility: visible;
    opacity: 0.8;
}

.popup-wrap .popup {
    position: relative;
    z-index: 999;
}

.popup .cross {
    position: absolute;
    top: 0;
    right: 10px;
    z-index: 100;
    margin-bottom: 5px;
    margin-top: 10px;
    width: 30px;
    height: 30px;
}

.popup .cross:before, .popup .cross:after {
    height: 20px;
    background-color: #272746;
}

#popupwidget .popup {
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 20px;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f6;
}

#popupwidget textarea {
    margin-top: 15px;
    border: 1px solid #f1f1f6;
}

@media screen and (max-width: 640px) {
    .popup .cross {
        top: 20px;
        right: 20px;
    }
}

/*--------------------------------------------------------------
# Archive
--------------------------------------------------------------*/

.archive-info {
    margin-bottom: 50px;
}

.articles-list {
    --minmax: 250px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--minmax), 1fr));
    grid-gap: 40px
}

.ie .articles-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap
}

.item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.articles-list .item {
    padding: 0 25px 25px;
    border-width: 1px;
    border-style: solid;
    border-color: #f3efef;
    border-radius: 30px;
    transition: .3s;
}

.item-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden
}

.articles-list .item-image {
    margin-left: -25px;
    margin-bottom: 25px;
    height: 230px;
    width: calc(100% + 50px);
    border-radius: 30px;
}

.item-image img {
    max-width: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.item .h6 {
    margin-bottom: 15px;
}

a.item, a.h6 {
    color: #272746
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

.content-sidebar-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(580px, 855px) minmax(350px, 380px);
    grid-gap: 65px;
}

.ie .content-sidebar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap
}

.top-text {
    margin-bottom: 35px;
    font-size: 18px;
}

.post-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
    margin-bottom: 40px;
    height: 390px;
    border-radius: 20px;
    overflow: hidden;
}

.post-image img {
    max-width: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-image .post-excerpt {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 20px;
    width: calc(100% - 40px);
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.post-excerpt p:last-of-type {
    margin-bottom: 0;
}

@media screen and (max-width: 1240px) {
    .content-sidebar-wrap {
        gap: 40px;
    }
}

@media screen and (max-width: 980px) {
    .content-sidebar-wrap {
        display: block;
    }
}

@media screen and (max-width: 640px) {
    .post-image .post-excerpt {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 20px;
        padding: 0 0 20px 0;
        width: 100%;
        font-size: 16px;
        color: #000;
        background-color: transparent;
        border-bottom: 1px solid #ebebeb;
    }

    .top-text {
        font-size: 17px;
    }
}

/* TOC */

#toc_container {
    position: relative;
    margin: 40px 0;
    padding: 35px 50px 40px;
    width: 100%;
    background-color: #f6f7f8;
    border-radius: 10px;
}

.toc_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
}

#toc_container .toc_toggle {
    margin-left: 30px;
    font-size: 0;
    text-transform: none;
}

#toc_container .toc_toggle a {
    display: block;
    padding: 6px 15px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    font-weight: 300;
    text-transform: none;
    background-color: #8d61f1;
    border-radius: 7px;
}

#toc_container .toc_toggle a:hover {
    opacity: .7;
}

#toc_container ul.toc_list {
    margin-top: 35px;
    column-count: 2;
    column-gap: 30px;
    font-size: 15px;
}

#toc_container ul {
    margin: 0;
}

#toc_container li ul {
    margin-top: 10px;
}

#toc_container ul li {
    display: block;
    padding-left: 30px;
    width: 100%;
    line-height: 1.5;
}

#toc_container ul li:before {
    top: 0;
    left: 0;
    width: 8px;
    height: 20px;
    background-color: unset;
    background-image: url(img/toc.png);
    background-position: center;
    background-repeat: no-repeat;
    border: none;
}

#toc_container ul li a {
    text-decoration: none;
}

#toc_container ul li a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    #toc_container {
        padding: 30px 25px;
    }

    #toc_container ul.toc_list {
        column-count: 1;
    }
}

@media screen and (max-width: 400px) {
    .toc_title {
        flex-direction: column;
    }

    #toc_container .toc_toggle {
        margin-top: 10px;
        margin-left: 0;
    }
}

/* ## Lists */

.post ul, .post ol {
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.post ul li, .post ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 10px;
}

.post ul li:last-child, .post ol li:last-child {
    margin-bottom: 0;
}

.post ul li:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid #4343a0;
    border-radius: 50%;
}

.post ol {
    counter-reset: listCounter;
}

.post ol li:before {
    counter-increment: listCounter;
    content: counter(listCounter);
    position: absolute;
    left: 0;
    top: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 23px;
    height: 23px;
    font-size: 14px;
    color: #fff;
    background-color: #4343a0;
    border-radius: 50%;
}

/* ## Table */
.post-table {
    margin: 40px 0;
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.post table {
    width: 100%;
    font-size: 15px;
    line-height: 1.3;
    border: unset;
    border-collapse: collapse;
    border-spacing: 0;
}

.post tbody tr:nth-child(odd) {
    background-color: #eff4fa;
}

.post tbody tr:first-child {
    background-color: #e3eaf2;
}


.post td {
    padding: 10px 20px;
    text-align: center;
    border: unset
}

.post td:first-of-type {
    text-align: left;
}

.post table>tbody>tr:first-child>td:first-child, .post table>tbody>tr:first-child>th:first-child {
    border-radius: 10px 0 0 0
}

.post table>tr:first-child>td:first-child, .post table>tr:first-child>th:first-child {
    border-radius: 10px 0 0 0
}

.post table>tbody>tr:first-child>td:last-child, .post table>tbody>tr:first-child>th:last-child {
    border-radius: 0 10px 0 0
}

.post table>tr:first-child>td:last-child, .post table>tr:first-child>th:last-child {
    border-radius: 0 10px 0 0
}

.post table>tbody>tr:last-child>td:last-child, .post table>tbody>tr:last-child>th:last-child {
    border-radius: 0 0 10px 0
}

.post table>tr:last-child>td:last-child, .post table>tr:last-child>th:last-child {
    border-radius: 0 0 10px 0
}

.post table>tbody>tr:last-child>td:first-child, .post table>tbody>tr:last-child>th:first-child {
    border-radius: 0 0 0 10px
}

.post table>tr:last-child>td:first-child, .post table>tr:last-child>th:first-child {
    border-radius: 0 0 0 10px
}

/* ## Blockquote, blocks */

blockquote p:last-of-type {
    margin-bottom: 0;
}

blockquote:not([class]) {
    position: relative;
    margin: 60px 0 50px;
    padding: 40px 50px;
    width: 100%;
    font-size: 26px;
    text-align: center;
    border-top: 1px solid #eaefec;
    border-bottom: 1px solid #eaefec;
    clear: both;
}

blockquote:not([class]):before {
    content: '';
    position: absolute;
    top: -16px;
    left: calc(50% - 40px);
    width: 80px;
    height: 33px;
    background-color: #fff;
    background-image: url(img/quote.png);
    background-position: center;
    background-repeat: no-repeat;
}

.info-box {
    position: relative;
    margin: 40px 0;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 20px;
}

.blue {
    border-width: 1px;
    border-style: solid;
    border-color: #8d61f1;
}

.info-box p:last-of-type {
    margin-bottom: 0;
}

@media screen and (min-width: 641px) {
    .info-box {
        padding: 25px 40px 25px 125px;
    }

    .info-box:before {
        content: '';
        position: absolute;
        left: 30px;
        top: calc(50% - 32px);
        height: 64px;
        width: 64px;
        background-position: center;
        background-repeat: no-repeat;
    }

    .blue:before {
        background-image: url(img/cube.png);
    }
}

@media screen and (max-width: 640px) {
    blockquote {
        padding: 20px;
    }

    blockquote:not([class]) {
        font-size: 20px;
    }

    .info-box {
        padding: 20px;
    }
}

/* ## Images */
.post img {
    content-visibility: auto;
    border-radius: 5px;
}

.caption {
    max-width: 100%;
}

.caption img {
    display: block;
    border-radius: 5px 5px 0 0;
}

.caption-text {
    padding: 10px;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    background-color: #eff4fa;
    border-radius: 0 0 5px 5px;
}

.aligncenter {
    display: block;
    margin: 30px auto;
}

.alignright {
    float: right;
    margin: 10px 0 30px 30px;
}

.alignleft {
    float: left;
    margin: 10px 30px 30px 0;
}

.alignnone {
    display: block;
    margin: 30px auto;
}

@media screen and (max-width:728px) {
    .alignright:not(.wp-caption), .alignleft:not(.wp-caption) {
        display: table;
    }

    .alignright, .alignleft {
        float: none;
        margin: 0 auto 30px;
    }
}

/* ## Standard gallery */

.gallery {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin: 30px 0;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    margin: 0;
    margin-bottom: 5px;
    text-align: center;
}

.gallery-icon.landscape {
    height: 100%;
}

.gallery-item a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.gallery-item a:hover {
    opacity: 0.8;
}

.gallery-icon img {
    margin: 0 auto;
    display: block;
    max-width: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media screen and (min-width: 640px) {
    .gallery-columns-1 .gallery-item {
        flex-basis: calc(100% - 5px);
    }

    .gallery-columns-2 .gallery-item {
        flex-basis: calc(50% - 5px);
    }

    .gallery-columns-3 .gallery-item {
        flex-basis: calc(33.3333333333% - 5px);
    }

    .gallery-columns-4 .gallery-item {
        flex-basis: calc(25% - 5px);
    }

    .gallery-columns-5 .gallery-item {
        flex-basis: calc(20% - 5px);
    }

    .gallery-columns-6 .gallery-item {
        flex-basis: calc(16.6666666667% - 5px);
    }

    .gallery-columns-7 .gallery-item {
        flex-basis: calc(14.2857142857% - 5px);
    }

    .gallery-columns-8 .gallery-item {
        flex-basis: calc(12.5% - 5px);
    }

    .gallery-columns-9 .gallery-item {
        flex-basis: calc(11.1111111111% - 5px);
    }
}

@media screen and (max-width: 640px) {
    .gallery-item {
        flex-basis: calc(50% - 5px);
    }
}

@media screen and (max-width: 400px) {
    .gallery-item {
        flex-basis: calc(100% - 5px);
    }
}


/* ## Video */

.post-video-wrap {
    margin: 30px auto;
    max-width: 800px;
}

.post-video {
    position: relative;
    margin: 30px auto;
    padding: 56.25% 0 0;
    height: 0;
    overflow: hidden;
}

.post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ## Post footer */

.post-footer {
    display: flex;
    margin-top: 50px;
    margin-bottom: 50px;
    padding-top: 30px;
    border-top: 1px solid #f1f1f6;
}

.post-footer .share {
    margin-left: unset;
}

/*--------------------------------------------------------------
# Related
--------------------------------------------------------------*/

.related {
    margin-top: 60px;
}

.related .h1 {
    margin-bottom: 40px;
}

@media screen and (max-width: 640px) {
    .related .h1 {
        font-size: 36px;
    }
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/

.pagination {
    margin-top: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.page-numbers {
    margin-right: 10px;
    padding: 15px 17px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
    background-color: #8d61f1;
    border-radius: 10px;
}

.page-numbers.current, .page-numbers:hover {
    color: initial;
    background-color: #eff4fa;
}

@media screen and (max-width: 640px) {
    .nav-links {
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/

.sidebar-primary {
    position: relative;
}

.sidebar-primary .widget {
    padding: 30px;
    border-radius: 30px;
    background-image: -moz-linear-gradient(0deg, rgb(239, 244, 250) 0%, rgb(250, 238, 250) 100%);
    background-image: -webkit-linear-gradient(0deg, rgb(239, 244, 250) 0%, rgb(250, 238, 250) 100%);
    background-image: -ms-linear-gradient(0deg, rgb(239, 244, 250) 0%, rgb(250, 238, 250) 100%);
}

.sidebar-primary .widget:not(:last-of-type) {
    margin-bottom: 50px
}

.widgettitle {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
}

@media screen and (max-width: 980px) {
    .sidebar-primary {
        display: none
    }
}

/* ## Sticky */

.sidebar-sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column
}

/* ## Reclame */

.widget-reclame .demo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    opacity: .07;
}

/* ## Popular */

.articles-column .item {
    flex-direction: row;
    align-items: center;
}

.articles-column .item:not(:last-child) {
    margin-bottom: 30px;
}

.articles-column .item-image {
    width: 110px;
    height: 70px;
    margin-bottom: 0;
    margin-right: 25px;
    border-radius: 10px;
}

/*************************************************************
# Comments
*************************************************************/

.comments-wrap {
    margin-top: 70px;
    max-width: 855px;
}

.comments-wrap .h2 {
    margin-bottom: 40px;
}

ol.comment-list, ol.children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list .children li {
    margin-left: 30px;
}

.comment-list .comment>div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.comment .avatar {
    flex-shrink: 0;
    margin-right: 30px;
    border-radius: 50%;
}

.comment .comment-inner {
    display: flex;
    flex-direction: column;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    line-height: 1;
}

.comment-author {
    margin-right: 20px;
    font-size: 13px;
    color: #0052b4;
}

.comment-reply-link {
    padding: 4px 10px;
    font-size: 12px;
    color: #fff;
    background-color: #8d61f1;
    transition: .3s;
    cursor: pointer;
    border-radius: 7px;
}

.comment-reply-link:hover {
    opacity: 0.8;
}

.comment-text {
    font-size: 16px;
    line-height: 1.56;
}

.comment-text p:last-of-type {
    margin-bottom: 0;
}

.comment-time {
    font-size: 12px;
    color: #1e2c37;
    opacity: 0.7;
}

@media screen and (max-width: 980px) {
    .comments-wrap {
        max-width: 100%;
    }

    .comments-wrap .h2 {
        text-align: left;
    }
}

@media screen and (max-width: 728px) {
    .comment .avatar {
        display: none;
    }
}

@media screen and (max-width: 640px) {
    .comment-list .children li {
        margin-left: 0;
    }
}

/* ## Comment form */

.comment-respond {
    margin-top: 50px;
    padding: 40px 50px;
    background-image: -moz-linear-gradient(0deg, rgb(239, 244, 250) 0%, rgb(250, 238, 250) 100%);
    background-image: -webkit-linear-gradient(0deg, rgb(239, 244, 250) 0%, rgb(250, 238, 250) 100%);
    background-image: -ms-linear-gradient(0deg, rgb(239, 244, 250) 0%, rgb(250, 238, 250) 100%);
    border-radius: 20px;
}

.archive .comment-respond {
    background-color: #f5f5f9;
}

.comment-respond form {
    position: relative;
}

.comment-respond textarea, .comment-respond input[type="text"], .comment-respond input[type="email"] {
    width: 100%;
}

#cancel-comment-reply-link {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 12px;
}

.form-row.col-2 {
    display: flex;
    margin-top: 20px;
}

.form-row.col-2>div {
    flex: 1;
}

.comment-form-author {
    margin-right: 15px;
}

.form-submit {
    display: inline-block;
    margin-top: 30px;
}

.form-submit .button {
    padding: 17px 40px;
}

@media screen and (max-width: 768px) {
    .comment-respond {
        padding: 30px 20px;
    }

    .form-row.col-2 {
        display: block;
    }

    .comment-form-author {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .form-submit {
        display: block;
    }

    .form-submit .button {
        width: 100%;
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.site-footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.site-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-50vw + 50%);
    z-index: -1;
    display: block;
    height: 100%;
    width: 100vw;
    background-color: #eff4fa;
}

.site-footer>div:first-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}

.copyright {
    max-width: 280px;
    font-size: 12px;
    line-height: 1.4;
    opacity: .7;
}

.footer-info {
    margin-right: 30px;
    font-size: 18px;
    font-weight: 600;
}

.footer-menu ul {
    flex-direction: column;
    font-size: 14px;
}

.footer-menu ul a {
    display: block;
    padding: 5px;
}

@media screen and (max-width: 1040px) {
    .site-footer {
        justify-content: space-evenly;
        flex-wrap: wrap;
    }

    .site-footer>div:first-of-type {
        margin-right: 0;
        margin-bottom: 30px;
        width: 100%;
    }
}

@media screen and (max-width: 640px) {
    .site-footer {
        flex-direction: column;
        text-align: center;
    }

    .site-footer>div:first-of-type {
        flex-direction: column;
    }

    .site-footer .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .footer-info {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

/* ## Scroll to top */

#scroll-button {
    position: fixed;
    right: 25px;
    bottom: 40px;
    z-index: 1099;
    display: flex;
    flex-direction: column;
    width: 35px;
    text-align: center
}

#scroll-button_up, #scroll-button_down {
    margin-top: 5px;
    margin-bottom: 5px;
    opacity: .5;
    cursor: pointer;
    transition: 0.3s
}

#scroll-button_up svg, #scroll-button_down svg {
    display: block;
    margin: auto;
    width: 14px;
    height: 16px
}

#scroll-button_up:hover, #scroll-button_down:hover {
    opacity: 1
}

#scroll-button_middle {
    font-size: 10px;
    font-weight: 700;
    opacity: .5
}

@media screen and (max-width: 980px) {
    .footer-block.footer-search {
        margin-bottom: 0;
        width: 100%;
    }
}

@media screen and (max-width: 800px) {
    #scroll-button {
        display: none
    }
}

/* Монетка на главной */
.form-bg.toss-coin {
    gap: 35px;
}

.coin-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 190px;
    min-width: 190px;
    min-height: 190px;
}

#main-coin {
    display: block;
    width: 190px;
    height: auto;
    flex-shrink: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

#main-coin.coin-flipping {
    animation: coin-spin 0.7s linear infinite;
}

@keyframes coin-spin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.coin-results-grid {
    display: none;
    grid-template-columns: repeat(4, 42px);
    justify-content: center;
    gap: 6px;
    width: 190px;
}

.coin-results-grid img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.coin-results-summary {
    margin-top: 14px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.coin-error {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.4;
    color: #b42318;
}

@media screen and (max-width: 768px) {
    .form-bg.toss-coin {
        gap: 20px;
    }

    .coin-visual {
        width: 150px;
        min-width: 150px;
        min-height: 150px;
    }

    #main-coin {
        width: 150px;
    }

    .coin-results-grid {
        grid-template-columns: repeat(3, 44px);
        gap: 6px;
        width: 150px;
    }

    .coin-results-grid img {
        width: 44px;
        height: 44px;
    }

    .coin-results-summary {
        font-size: 13px;
    }
}


/* --------------------------------------------------------------
# Random number generator — Laravel
-------------------------------------------------------------- */

.random-generated .results-wrap {
    margin-bottom: 30px;
}

.random-generated .generated-numbers {
    width: 100%;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.random-error {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.45;
    color: #b42318;
}

.random-share-status {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}

#random-share-link.is-loading {
    pointer-events: none;
    opacity: .65;
}

.random-results .results-text {
    max-height: none;
    overflow: visible;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.random-shared-algorithm {
    margin-top: 25px;
    padding-top: 20px;
    font-size: 14px;
    line-height: 1.45;
    border-top: 1px solid #e4e2ea;
}

.random-results .small-links {
    margin-top: 20px;
}

@media screen and (max-width: 640px) {
    .random-generated .results-wrap {
        margin-bottom: 25px;
    }

    .random-generated .generated-numbers,
    .random-results .results-text {
        font-size: 18px;
    }
}


/* --------------------------------------------------------------
# Random number generator — stable desktop layout
-------------------------------------------------------------- */

/*
 * На десктопе заголовок и текст объединены в один левый grid-элемент.
 * Благодаря этому изменение высоты формы/результата справа больше
 * не влияет на расстояние между заголовком и текстом слева.
 */
.two-column.grid-areas.random-page-grid {
    grid-template-areas:
        "copy form"
        "footer footer";
    align-items: start;
}

.random-page-copy {
    grid-area: copy;
    min-width: 0;
}

.two-column.grid-areas.random-page-grid .random-page-copy h1 {
    margin-bottom: 40px;
}

.random-page-copy .left {
    grid-area: auto;
}

/*
 * На планшетах и телефонах возвращаем прежний порядок:
 * заголовок → форма → текст → футер.
 */
@media screen and (max-width: 980px) {
    .two-column.grid-areas.random-page-grid {
        grid-template-areas:
            "head"
            "form"
            "text"
            "footer";
    }

    .random-page-copy {
        display: contents;
    }

    .random-page-copy h1 {
        margin-bottom: 0;
    }
}


/* --------------------------------------------------------------
# Random generator — stable share row
-------------------------------------------------------------- */

/*
 * Блок ссылки всегда занимает место в форме.
 * До первой успешной генерации ссылка невидима, но её высота сохранена.
 * Поэтому появление/обновление результата больше не двигает нижнюю часть формы.
 */
.random-share-wrap {
    min-height: 20px;
}

.random-share-wrap.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

#random-share-link.is-disabled {
    pointer-events: none;
    opacity: .45;
}


/* --------------------------------------------------------------
# Random generator — hide empty result before first generation
-------------------------------------------------------------- */

/*
 * В базовом CSS .results-wrap имеет display:flex, поэтому он мог
 * переопределять HTML-атрибут hidden и показывать пустой белый блок.
 * До первой успешной генерации блок результата полностью скрыт.
 */
#random-results-wrap[hidden] {
    display: none;
}


/* --------------------------------------------------------------
# Random generator — help tooltip
-------------------------------------------------------------- */

.random-extra-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.random-extra-option__label {
    margin: 0;
}

.random-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    max-height: 18px;
    margin: 0;
    padding: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #8d61f1;
    background: #fff;
    border: 1px solid #cfc4eb;
    border-radius: 50%;
    cursor: help;
}

.random-help:hover,
.random-help:focus-visible {
    border-color: #8d61f1;
    outline: none;
}

.random-help__tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 40px;
    z-index: 20;
    width: 320px;
    max-width: calc(100vw - 80px);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: #fff;
    background: #272746;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(39, 39, 70, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
        opacity .15s ease,
        transform .15s ease,
        visibility .15s ease;
}

.random-help:hover + .random-help__tooltip,
.random-help:focus + .random-help__tooltip,
.random-help__tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media screen and (max-width: 640px) {
    .random-help__tooltip {
        left: 0;
        width: min(300px, calc(100vw - 60px));
    }
}


/* --------------------------------------------------------------
# Random generator — share result popup
-------------------------------------------------------------- */

.random-share-popup {
    top: 0;
    visibility: hidden;
    pointer-events: none;
}

.random-share-popup.active {
    visibility: visible;
    pointer-events: auto;
}

.random-share-popup__overlay {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    cursor: default;
}

.random-share-popup__dialog {
    width: min(560px, calc(100vw - 40px));
    padding: 24px 30px 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(39, 39, 70, .25);
}

.random-share-popup__close {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.random-share-popup__text {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
}

.random-share-popup__copy {
    display: flex;
    gap: 10px;
}

.random-share-popup__input {
    min-width: 0;
    flex: 1 1 auto;
    height: 52px;
    padding: 0 15px;
    font-size: 14px;
    background: #f7f7fb;
    border: 1px solid #e5e3ec;
    border-radius: 10px;
}

.random-share-popup__copy-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 145px;
    height: 52px;
    padding: 0 20px;
}

.random-share-popup__status {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.random-share-popup__open {
    display: inline-block;
    margin-top: 18px;
    font-size: 14px;
}

@media screen and (max-width: 640px) {
    .random-share-popup__dialog {
        width: calc(100vw - 30px);
        padding: 22px 20px 24px;
    }

    .random-share-popup__copy {
        flex-direction: column;
    }

    .random-share-popup__copy-button {
        width: 100%;
    }
}


/* --------------------------------------------------------------
# Password generator
-------------------------------------------------------------- */

.password-generator {
    align-self: start;
}

.password-length-row label {
    flex-basis: 150px;
}

.password-options .input-checkbox {
    grid-template-columns: 20px minmax(0, 1fr);
}

.password-option-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.password-option-example {
    flex: 0 0 auto;
    margin-left: 0;
    font-size: 12px;
    opacity: .55;
    white-space: nowrap;
}

.password-option-with-help {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.password-option-with-help__label {
    margin: 0;
}

.password-results {
    margin-bottom: 35px;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
}

.password-results[hidden] {
    display: none;
}

.password-results__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.password-results__title {
    font-size: 20px;
    font-weight: 700;
}

.password-results__privacy {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    opacity: .5;
}

.password-copy-all,
.password-copy-one {
    padding: 0;
    width: auto;
    min-height: 0;
    color: #4343a0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.password-copy-all:hover,
.password-copy-one:hover {
    opacity: .65;
}

.password-list {
    display: flex;
    flex-direction: column;
}

.password-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #f1f1f6;
}

.password-result-value {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: monospace;
    font-size: 16px;
    color: #272746;
    background: transparent;
}

.password-copy-status {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #5f5f7a;
}

.password-copy-status[hidden] {
    display: none;
}

.password-error {
    margin-bottom: 20px;
}

.password-content-footer {
    justify-content: flex-start;
}

.password-local-note {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f5f7a;
}

@media screen and (max-width: 640px) {
    .password-length-row label {
        flex-basis: auto;
    }

    .password-results__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .password-result-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .password-copy-one {
        justify-self: start;
    }

    .password-option-label {
        flex-wrap: wrap;
        column-gap: 8px;
        row-gap: 3px;
    }
}


/* --------------------------------------------------------------
# Draw generator
-------------------------------------------------------------- */

.draw-generator {
    align-self: start;
}

.draw-generator [hidden] {
    display: none;
}

.draw-participants-wrap textarea {
    min-height: 220px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    resize: vertical;
}

.draw-participants-wrap textarea[readonly] {
    color: #272746;
    background: transparent;
    opacity: .8;
}

.draw-textarea-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 11px;
    line-height: 1.35;
    color: #77758b;
    border-top: 1px solid #f1f1f6;
}

.draw-error {
    margin-bottom: 20px;
}

.draw-result-panel {
    min-width: 0;
}

.draw-winners-wrap {
    margin-bottom: 20px;
}

.draw-winners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 26px;
}

.draw-winners-list li {
    padding-left: 4px;
}

.draw-result-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
    font-size: 13px;
    line-height: 1.4;
    color: #6d6b80;
}

.draw-result-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.draw-result-links a {
    margin: 0;
}

.draw-next-heading {
    margin-bottom: 25px;
}

.draw-next-links {
    margin-top: 16px;
}

.draw-content-footer {
    justify-content: flex-start;
}

.draw-security-note {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f5f7a;
}

/* Shared draw result */

.draw-shared-page > h1 {
    margin-bottom: 20px;
}

.draw-shared-summary {
    margin-bottom: 35px;
    font-size: 14px;
    line-height: 1.5;
    color: #66647a;
}

.draw-shared-round + .draw-shared-round {
    margin-top: 30px;
}

.draw-shared-results {
    margin-bottom: 0;
}

.draw-shared-results > div {
    min-width: 0;
}

.draw-shared-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-right: 15px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.draw-shared-winners {
    font-weight: 700;
}

@media screen and (max-width: 640px) {
    .draw-textarea-footer {
        flex-direction: column;
        gap: 5px;
    }

    .draw-result-meta {
        flex-direction: column;
        gap: 5px;
    }

    .draw-result-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .draw-shared-list {
        padding-right: 0;
    }
}


/* --------------------------------------------------------------
# Draw generator — single round form
-------------------------------------------------------------- */

.draw-form-round-info {
    margin-bottom: 25px;
}

.draw-form-back {
    margin-top: 16px;
}

/*
 * У textarea всегда остаётся одинаковая рамка 1px.
 * Базовый .textarea-wrap textarea:focus { border: unset; }
 * менял box model на фокусе, из-за чего форма визуально дёргалась.
 */
.draw-participants-wrap textarea,
.draw-participants-wrap textarea:hover,
.draw-participants-wrap textarea:focus {
    box-sizing: border-box;
    border: 1px solid transparent !important;
    outline: none;
    box-shadow: none;
}

.draw-participants-wrap textarea[readonly],
.draw-participants-wrap textarea[readonly]:hover,
.draw-participants-wrap textarea[readonly]:focus {
    border: 1px solid transparent !important;
    outline: none;
    box-shadow: none;
}


/* --------------------------------------------------------------
# Draw shared result — spacing and centered action
-------------------------------------------------------------- */

/* Отделяем последний блок тура от горизонтальной линии футера. */
.draw-shared-page .draw-shared-round:last-of-type {
    margin-bottom: 40px;
}

/* Кнопка "Провести свой жребий" по центру. */
.draw-shared-page .content-footer.border {
    justify-content: center;
    text-align: center;
}


/* --------------------------------------------------------------
# Dice generator
-------------------------------------------------------------- */

.dice-generator {
    align-self: start;
}

.dice-generator [hidden] {
    display: none;
}

.dice-stage {
    display: grid;
    grid-template-columns: 190px;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin-bottom: 28px;
    padding: 15px;
    background: #fff;
    border-radius: 22px;
}

.dice-stage--multiple {
    grid-template-columns: repeat(auto-fit, 82px);
    align-content: center;
    gap: 8px;
}

.dice-face {
    display: block;
    width: 190px;
    height: 190px;
    object-fit: contain;
}

.dice-stage--multiple .dice-face {
    width: 82px;
    height: 82px;
}

.dice-face--rolling {
    animation: dice-roll-animation .18s linear infinite;
}

@keyframes dice-roll-animation {
    0% {
        transform: rotate(-5deg) scale(.96);
    }

    50% {
        transform: rotate(5deg) scale(1.03);
    }

    100% {
        transform: rotate(-5deg) scale(.96);
    }
}

.dice-current-result {
    margin-bottom: 30px;
    padding: 18px 20px;
    background: rgba(255,255,255,.72);
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.45;
}

.dice-result-details {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
}

.dice-generated-at {
    margin-top: 7px;
    font-size: 12px;
    opacity: .55;
}

.dice-count-row label {
    flex-basis: 190px;
}

.dice-error {
    margin-bottom: 20px;
}

.dice-history {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #e4e2ea;
}

.dice-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.dice-history-head .h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.dice-history-clear {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    font: inherit;
    font-size: 12px;
    line-height: 1.3;
    color: #4343a0;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.dice-history-clear:hover {
    opacity: .65;
}

.dice-history-list {
    display: flex;
    flex-direction: column;
}

.dice-history-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    font-size: 13px;
    line-height: 1.35;
    border-top: 1px solid rgba(228,226,234,.8);
}

.dice-history-number {
    font-weight: 700;
}

.dice-history-values {
    overflow-wrap: anywhere;
}

.dice-history-sum {
    white-space: nowrap;
    color: #66647a;
}

.dice-content-footer {
    justify-content: flex-start;
}

.dice-security-note {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f5f7a;
}

@media screen and (max-width: 640px) {
    .dice-stage {
        min-height: 190px;
        grid-template-columns: 160px;
    }

    .dice-face {
        width: 160px;
        height: 160px;
    }

    .dice-stage--multiple {
        grid-template-columns: repeat(auto-fit, 68px);
        gap: 6px;
    }

    .dice-stage--multiple .dice-face {
        width: 68px;
        height: 68px;
    }

    .dice-result-details {
        flex-direction: column;
        gap: 4px;
    }

    .dice-count-row label {
        flex-basis: auto;
    }

    .dice-history-row {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 8px;
    }

    .dice-history-sum {
        grid-column: 2;
    }

    .dice-history-clear {
        min-height: 0 !important;
        background: transparent !important;
    }
}


/* --------------------------------------------------------------
# Yes / No generator
-------------------------------------------------------------- */

.yesno-generator {
    align-self: start;
}

.yesno-generator [hidden] {
    display: none;
}

.yesno-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    margin-bottom: 30px;
    padding: 35px 25px;
    text-align: center;
    background: #fff;
    border-radius: 24px;
}

.yesno-answer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    min-height: 135px;
    padding: 18px 28px;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    color: #272746;
    background: #f7f7fb;
    border-radius: 22px;
    transition:
        transform .2s ease,
        opacity .2s ease,
        background-color .2s ease;
}

.yesno-answer--waiting {
    color: #aaa8b7;
}

.yesno-answer--thinking {
    opacity: .6;
    transform: scale(.96);
}

.yesno-answer--yes,
.yesno-answer--no {
    animation: yesno-answer-pop .28s ease-out;
}

.yesno-answer--yes {
    background: #eef9ee;
}

.yesno-answer--no {
    background: #fbefef;
}

@keyframes yesno-answer-pop {
    0% {
        opacity: 0;
        transform: scale(.86);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.yesno-prompt {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
}

.yesno-generated-at {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
    opacity: .5;
}

.yesno-error {
    margin-bottom: 20px;
}

.yesno-content-footer {
    justify-content: flex-start;
}

.yesno-security-note {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f5f7a;
}

@media screen and (max-width: 640px) {
    .yesno-stage {
        min-height: 260px;
        padding: 25px 18px;
    }

    .yesno-answer {
        min-width: 190px;
        min-height: 115px;
        font-size: 58px;
    }
}


/* --------------------------------------------------------------
# Playing cards generator
-------------------------------------------------------------- */

.cards-generator {
    align-self: start;
}

.cards-generator [hidden] {
    display: none;
}

.cards-stage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(82px, 96px));
    justify-content: center;
    align-items: start;
    gap: 12px;
    min-height: 220px;
    margin-bottom: 28px;
    padding: 24px;
    background: #fff;
    border-radius: 22px;
}

.cards-stage--single {
    grid-template-columns: 150px;
}

.playing-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 231 / 298;
    object-fit: contain;
}

.cards-stage--single .playing-card-image {
    width: 150px;
    max-width: 100%;
    justify-self: center;
}

.playing-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    aspect-ratio: 231 / 298;
    justify-self: center;
    color: #aaa8b7;
    font-size: 54px;
    font-weight: 700;
    background: #fafafd;
    border: 1px solid #e6e4ed;
    border-radius: 10px;
}

.cards-result-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.4;
    background: rgba(255, 255, 255, .72);
    border-radius: 12px;
}

.cards-fieldset {
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.cards-fieldset legend {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
}

.cards-deck-options {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
}

.cards-suits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.cards-suit {
    grid-template-columns: 20px auto 1fr !important;
    align-items: center;
    margin: 0;
}

.cards-suit__symbol {
    font-size: 22px;
    line-height: 1;
}

.cards-suit--red .cards-suit__symbol {
    color: #d93b43;
}

.cards-suit--black .cards-suit__symbol {
    color: #171a2a;
}

.cards-count-row label {
    flex-basis: 175px;
}

.cards-available {
    margin-top: -14px;
    margin-bottom: 24px;
    font-size: 12px;
    line-height: 1.4;
    color: #77758b;
}

.cards-error {
    margin-bottom: 20px;
}

.cards-content-footer {
    justify-content: flex-start;
}

.cards-security-note {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f5f7a;
}

@media screen and (max-width: 640px) {
    .cards-stage {
        grid-template-columns: repeat(auto-fit, minmax(66px, 78px));
        gap: 8px;
        padding: 18px;
    }

    .cards-stage--single {
        grid-template-columns: 130px;
    }

    .cards-stage--single .playing-card-image {
        width: 130px;
    }

    .playing-card-placeholder {
        width: 130px;
        font-size: 46px;
    }

    .cards-suits-grid {
        grid-template-columns: 1fr;
    }

    .cards-result-meta {
        flex-direction: column;
        gap: 4px;
    }

    .cards-count-row label {
        flex-basis: auto;
    }
}


/* --------------------------------------------------------------
# Playing cards — deck radio alignment
-------------------------------------------------------------- */

.cards-deck-options .input-radio {
    align-items: center;
}

.cards-deck-options .input-radio + .input-radio {
    margin-top: 0;
}


/* --------------------------------------------------------------
# Playing cards — exclusions
-------------------------------------------------------------- */

.cards-exclusions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 28px;
    padding: 17px 18px;
    background: rgba(255, 255, 255, .72);
    border-radius: 12px;
}

.cards-exclusions__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cards-exclusions__info strong {
    font-size: 14px;
}

#cards-excluded-summary {
    font-size: 12px;
    line-height: 1.4;
    color: #77758b;
}

.cards-exclusions__open,
.cards-exclude-reset,
.cards-exclude-popup__close {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    font: inherit;
    text-transform: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.cards-exclusions__open,
.cards-exclude-reset {
    color: #4343a0;
    font-size: 13px;
    font-weight: 600;
}

.cards-exclusions__open:hover,
.cards-exclude-reset:hover {
    opacity: .65;
}

.cards-exclude-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .16s ease,
        visibility .16s ease;
}

.cards-exclude-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cards-exclude-popup__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(23, 26, 42, .5);
    border: 0;
    border-radius: 0;
    cursor: default;
}

.cards-exclude-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(700px, 100%);
    max-height: calc(100vh - 40px);
    padding: 26px 28px 24px;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(39, 39, 70, .25);
}

.cards-exclude-popup__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.cards-exclude-popup__head .h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.cards-exclude-popup__count {
    margin-top: 4px;
    font-size: 12px;
    color: #77758b;
}

.cards-exclude-popup__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    font-size: 28px;
    line-height: 1;
    color: #77758b;
    background: #f7f7fb;
    border-radius: 50%;
}

.cards-exclude-groups {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cards-exclude-group {
    transition: opacity .15s ease;
}

.cards-exclude-group.is-disabled {
    opacity: .35;
}

.cards-exclude-group__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
}

.cards-exclude-group__title span {
    font-size: 22px;
    line-height: 1;
}

.cards-exclude-group__title--red span {
    color: #d93b43;
}

.cards-exclude-group__title--black span {
    color: #171a2a;
}

.cards-exclude-ranks {
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    gap: 6px;
}

.cards-exclude-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 5px 2px;
    color: #272746;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.05;
    background: #f7f7fb;
    border: 1px solid #e6e4ed;
    border-radius: 8px;
    cursor: pointer;
}

.cards-exclude-card span + span {
    margin-top: 3px;
    font-size: 15px;
}

.cards-exclude-card:hover:not(:disabled) {
    border-color: #8b5cf6;
}

.cards-exclude-card.is-excluded {
    color: #fff;
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.cards-exclude-card:disabled {
    cursor: default;
}

.cards-exclude-card[hidden] {
    display: none;
}

.cards-exclude-popup__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eceaf1;
}

.cards-exclude-done {
    width: auto;
    min-width: 130px;
    padding-right: 22px;
    padding-left: 22px;
}

@media screen and (max-width: 760px) {
    .cards-exclude-popup {
        padding: 12px;
    }

    .cards-exclude-popup__dialog {
        max-height: calc(100vh - 24px);
        padding: 22px 18px 20px;
        border-radius: 16px;
    }

    .cards-exclude-ranks {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .cards-exclusions {
        align-items: flex-start;
    }

    .cards-exclusions__open,
    .cards-exclude-reset,
    .cards-exclude-popup__close {
        min-height: 0 !important;
    }

    .cards-exclude-popup__footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cards-exclude-done {
        width: 100%;
    }

    .cards-exclude-reset {
        align-self: center;
    }
}


/* --------------------------------------------------------------
# Nickname generator
-------------------------------------------------------------- */

.nickname-generator {
    align-self: start;
}

.nickname-generator [hidden] {
    display: none;
}

.nickname-results {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
}

.nickname-results__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.nickname-results__head .h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.nickname-generated-at {
    margin-top: 4px;
    font-size: 12px;
    opacity: .5;
}

.nickname-copy-all,
.nickname-copy-one {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #4343a0;
    text-transform: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.nickname-copy-all:hover,
.nickname-copy-one:hover {
    opacity: .65;
}

.nickname-results__list {
    display: flex;
    flex-direction: column;
}

.nickname-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #f1f1f6;
}

.nickname-result-value {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 17px;
    font-weight: 600;
}

.nickname-copy-status {
    margin-top: 12px;
    font-size: 12px;
    color: #5f5f7a;
}

.nickname-fieldset {
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.nickname-fieldset legend {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
}

.nickname-radio-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

.nickname-radio-row .input-radio {
    align-items: center;
    margin: 0;
}

.nickname-radio-row .input-radio + .input-radio {
    margin-top: 0;
}

.nickname-start-letter {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.nickname-start-letter label {
    flex: 0 0 175px;
    font-size: 16px;
    font-weight: 700;
}

.nickname-start-letter input {
    width: 100%;
    min-width: 0;
    height: 58px;
    padding: 0 18px;
    font: inherit;
    font-size: 20px;
    font-weight: 600;
    color: #272746;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
}

.nickname-start-letter input:focus {
    border-color: #d8d2e8;
}

.nickname-count-row label {
    flex-basis: 175px;
}

.nickname-error {
    margin-bottom: 20px;
}

.nickname-content-footer {
    justify-content: flex-start;
}

.nickname-note {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f5f7a;
}

@media screen and (max-width: 640px) {
    .nickname-results__head {
        flex-direction: column;
        gap: 8px;
    }

    .nickname-copy-all,
    .nickname-copy-one {
        min-height: 0 !important;
    }

    .nickname-result-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .nickname-copy-one {
        justify-self: start;
    }

    .nickname-radio-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nickname-start-letter {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .nickname-start-letter label {
        flex-basis: auto;
    }

    .nickname-count-row label {
        flex-basis: auto;
    }
}


/* --------------------------------------------------------------
# Temporary rhyme generator
-------------------------------------------------------------- */

.rhyme-generator {
    align-self: start;
}

.rhyme-generator [hidden] {
    display: none;
}

.rhyme-input-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

#rhyme-text {
    box-sizing: border-box;
    width: 100%;
    height: 58px;
    margin-bottom: 22px;
    padding: 0 18px;
    font: inherit;
    font-size: 17px;
    color: #272746;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
}

#rhyme-text:hover,
#rhyme-text:focus {
    border: 1px solid #d8d2e8;
}

.rhyme-error {
    margin-bottom: 20px;
}

.rhyme-results {
    margin-top: 28px;
    padding: 22px;
    background: #fff;
    border-radius: 18px;
}

.rhyme-results__title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.rhyme-results__title strong {
    color: #6f43c0;
}

.rhyme-result-section + .rhyme-result-section {
    margin-top: 24px;
}

.rhyme-result-section__head {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #77758b;
}

.rhyme-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rhyme-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    font-size: 14px;
    line-height: 1.2;
    color: #272746;
    background: #f6f5fa;
    border: 1px solid #e8e5ef;
    border-radius: 999px;
}

.rhyme-empty {
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #77758b;
    background: #f7f7fb;
    border-radius: 12px;
}

.rhyme-content-footer {
    justify-content: flex-start;
}

.rhyme-note {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f5f7a;
}

@media screen and (max-width: 640px) {
    #rhyme-text {
        height: 54px;
    }

    .rhyme-results {
        padding: 18px;
    }
}

/* CastLots: reusable FAQ */
.castlots-faq { margin: 40px 0; }
.castlots-faq > h2 { margin: 0 0 24px; }
.castlots-faq .castlots-faq-item { border-bottom: 1px solid #e6e6ee; }
.castlots-faq .castlots-faq-item:first-of-type { border-top: 1px solid #e6e6ee; }
.castlots-faq .castlots-faq-item > summary {
    position: relative;
    display: block;
    list-style: none;
    padding: 22px 40px 22px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #272746;
    cursor: pointer;
}
.castlots-faq .castlots-faq-item > summary::-webkit-details-marker,
.article-toc summary::-webkit-details-marker { display: none; }
.castlots-faq .castlots-faq-item > summary::marker,
.article-toc summary::marker { content: ""; }
.castlots-faq .castlots-faq-item > summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 20px;
    color: #8d61f1;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}
.castlots-faq .castlots-faq-item[open] > summary::after { content: "−"; }
.castlots-faq .castlots-faq-item > summary:hover { color: #7549d4; }
.castlots-faq .castlots-faq-item > summary:focus-visible,
.article-toc summary:focus-visible { outline: 2px solid #8d61f1; outline-offset: 4px; }
.castlots-faq .castlots-faq-answer { padding: 0 40px 22px 0; }
.castlots-faq .castlots-faq-answer > :first-child { margin-top: 0; }
.castlots-faq .castlots-faq-answer > :last-child { margin-bottom: 0; }

/* Article TOC: layout from the original post template */
.article-toc {
    box-sizing: border-box;
    margin: 40px 0;
    padding: 35px 50px 40px;
    width: 100%;
    background: #f6f7f8;
    border-radius: 10px;
}
.article-toc .article-toc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    list-style: none;
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.article-toc .article-toc-toggle {
    flex-shrink: 0;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1;
    color: #fff;
    background: #8d61f1;
    border-radius: 7px;
}
.article-toc summary:hover .article-toc-toggle { background: #7549d4; }
.article-toc .article-toc-expand { display: inline; }
.article-toc .article-toc-collapse { display: none; }
.article-toc details[open] > summary .article-toc-expand { display: none; }
.article-toc details[open] > summary .article-toc-collapse { display: inline; }
.article-toc ul.article-toc-list {
    margin: 35px 0 0;
    padding: 0;
    column-count: 2;
    column-gap: 30px;
    font-size: 15px;
    list-style: none;
}
.article-toc ul.article-toc-list ul { margin: 10px 0 0; padding: 0; list-style: none; }
.article-toc ul.article-toc-list li {
    position: relative;
    display: block;
    box-sizing: border-box;
    break-inside: avoid;
    margin: 0 0 12px;
    padding: 0 0 0 30px;
    width: 100%;
    line-height: 1.5;
}
.article-toc ul.article-toc-list li::before {
    content: "";
    position: absolute;
    top: .5em;
    left: 1px;
    width: 6px;
    height: 6px;
    border: solid #8d61f1;
    border-width: 1.5px 1.5px 0 0;
    background: none;
    border-radius: 0;
    transform: rotate(45deg);
}
.article-toc ul.article-toc-list li::after { content: none; }
.article-toc ul.article-toc-list a { text-decoration: none; }
.article-toc ul.article-toc-list a:hover { text-decoration: underline; }
@media screen and (max-width: 768px) {
    .article-toc { padding: 30px 25px; }
    .article-toc ul.article-toc-list { column-count: 1; }
    .article-toc .article-toc-title { font-size: 22px; }
}
@media screen and (max-width: 400px) {
    .article-toc { padding: 24px 18px; }
    .article-toc .article-toc-title { flex-wrap: wrap; gap: 14px; }
    .castlots-faq .castlots-faq-item > summary { font-size: 17px; }
    .castlots-faq .castlots-faq-answer { padding-right: 0; }
}

.ad-top {
    padding-top: 24px;
}