@font-face {
    font-display: swap;
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/cormorant-garamond-v16-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/cormorant-garamond-v16-cyrillic_latin-500.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/cormorant-garamond-v16-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/roboto-v30-cyrillic_latin-500.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-cyrillic_latin-700.woff2') format('woff2');
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    margin: 0;
}
body {
    font: 400 16px/1.5 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
}
a {
    color: #fff;
}
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}
input,
button,
textarea,
select {
    font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}
.home {
    background-color: #d5d3c5;
    color: #9f815d;
}
.portret-lichnosti {
    background-color: #92755f;
    color: #E3E3E2;
}
.kompozit-dvuh-dat {
    background-color: #c3a37a;
    color: #fff;
}
.prognoz-dnya-mesyaca {
    background-color: #bebab4;
    color: #92755F;
}
.programmy {
    background-color: #a7a7a7;
    color: #E3E3E2;
}
.prediction {
    background-color: #e1dad2;
    color: #92755F;
}
.button {
    border: 0;
    padding: 6px 15px;
    border-radius: 40px;
    background-color: #cba77c;
    color: #fff;
    cursor: pointer;
    font: 20px/1.5 'Cormorant Garamond', serif;
}
.container {
    min-width: 360px;
    max-width: 480px;
    padding: 0 20px;
    margin: 0 auto;
}
.header {
    display: flex;
    align-items: center;
    margin: 100px 0 200px;
}
.prediction .header {
    margin: 30px 40px 40px;
}
.header>.container {
    max-width: 1240px;
    width: 100%;
}
.header__row {
    display: flex;
    align-items: center;
}
.prediction .header>.container {
    max-width: 100%;
}
.prediction .header__row {
    flex-direction: column;
    align-items: start;
}
.header__image {
    display: none;
}
.prediction .header__image {
    display: block;
    position: absolute;
    right: 5%;
    top: 0;
    max-width: 400px;
    width: 100%;
}
.header__author {
    font: 20px/1.5 'Roboto', sans-serif;
    margin: 0 40px 0 0;
}
.prediction .header__author {
    max-width: 600px;
    margin: 0 0 20px;
}
.header__author-name {
    white-space: nowrap;
}
.header__author-link {
    border-radius: 10px;
    text-decoration: none;
}
.kompozit-dvuh-dat .header__author-link {
    background-color: #9f815d;
}
.programmy .header__author-link {
    background-color: #68513f;
}
.home-buttons {
    display: flex;
    flex-direction: column;
    grid-row-gap: 15px;
    margin: 0 0 80px;
}
.home-buttons .button {
    border-radius: 20px;
    color: #fff;
    width: 100%;
    font-size: 30px;
    text-align: center;
    text-decoration: none;
}
.home-buttons .button.gray {
    background-color: #a3a3a3;
}
.footer__image {
    margin: 0 0 80px;
}
.prediction .content {
    overflow: hidden;
}
.home .content>.container {
    max-width: 360px;
}
.prediction .content>.container {
    max-width: 800px;
}
.content__title {
    font: 400 54px/1.5 'Cormorant Garamond', serif;
    margin: 0 0 40px;
}
.content__subtitle {
    text-align: center;
    font: 500 30px/1.5 'Cormorant Garamond', serif;
    margin: 60px 0 20px;
}
.programmy .content__subtitle {
    padding: 10px 20px;
    background-color: #fff;
    font-size: 20px;
    border-radius: 12px;
    width: fit-content;
    margin: 60px auto 20px;
}
.prediction .content__title {
    text-align: center;
    margin: 0 0 60px;
}
.prognoz-dnya-mesyaca .content__title {
    font-size: 52px;
}
.content p {
    max-width: 95%;
    font: 400 20px/1.5 'Roboto', sans-serif;
}
.prediction .content p,
.prediction .content ul {
    font: 400 18px/1.5 'Roboto', sans-serif;
    margin: 0.5em 0;
}
.calculate-form {
    display: flex;
    flex-direction: column;
    max-width: 320px;
    margin: 80px auto;
    grid-row-gap: 20px;
}
.calculate-form__row {
    display: flex;
    align-items: end;
    grid-column-gap: 10px;
}
.calculate-form__row span {
    margin: 0 0 15px;
}
.calculate-form__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.content .calculate-form__descr {
    font-size: 14px;
    margin: 0 12px;
}
.calculate-form__label {
    font: 400 12px/1.5 'Roboto', sans-serif;
    margin: 0 0 12px 12px;
}
.calculate-form__input {
    outline-color: #cba77c;
    color: #92755F;
    font: 500 24px/1.5 'Cormorant Garamond', serif;
    border-radius: 12px;
    border: 0;
    padding: 8px 12px;
    text-align: center;
}
.calculate-form__input::placeholder {
    color: #92755F;
    opacity: 1;
}
.calculate-form__input::-ms-input-placeholder {
    color: #92755F;
}
.calculate-form__submit {
    font: 500 24px/1.5 'Cormorant Garamond', serif;
    padding: 12px 15px;
    margin: 20px 0 0;
    transition: .4s;
}
.calculate-form__submit:hover,
.calculate-form__submit:focus,
.kompozit-dvuh-dat .calculate-form__submit:hover,
.prognoz-dnya-mesyaca .calculate-form__submit:hover,
.programmy .calculate-form__submit:hover,
.programmy .calculate-form__submit:focus {
    background-color: #fff;
    color: #92755f;
}
.kompozit-dvuh-dat .calculate-form__submit {
    background-color: #9f815d;
}
.prognoz-dnya-mesyaca .calculate-form__submit {
    background-color: #92755f;
}
.programmy .calculate-form__submit {
    background-color: #68513f;
}
.results {
    margin: 0 auto 100px;
    position: relative;
}
.results__bg-image {
    content: '';
    position: absolute;
    background: url('../images/bg_mind.png');
    width: 390px;
    height: 390px;
    z-index: -1;
}
.results__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-row-gap: 20px;
    flex: 1;
}
.results__row {
    display: flex;
    grid-column-gap: 80px;
}
.results__row.portraits {
    position: relative;
}
.results__row.portraits::before {
    content: '';
    position: absolute;
    background: url('../images/ic_plus.svg') no-repeat center / cover;
    width: 48px;
    height: 48px;
    bottom: 240px;
    left: calc(50% - 24px);
}
.results__item-row {
    display: flex;
    grid-column-gap: 20px;
}
.results__date {
    font: 500 28px/1 'Cormorant Garamond', serif;
}
.results__item {
    text-align: center;
    z-index: 3;
}
.results__item-label {
    color: #9B958D;
    font: 13px/1 'Roboto', sans-serif;
    margin: 2px 0 6px;
}
.results__item-archetype {
    font: 500 19px/1 'Cormorant Garamond', serif;
    border-radius: 10px;
    height: 32px;
    width: 50px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #61412C;
}
.results__equality {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
}
.results__equality img {
    width: 48px;
}
.results__dates {
    font: 500 28px/1 'Cormorant Garamond', serif;
    display: flex;
    justify-content: center;
    grid-column-gap: 60px;
    margin: 0 0 40px;
}
.results__positions {
    text-align: center;
}
.results__explain {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.results__explain-button {
    color: #cba77c;
    background-color: #fff;
    border-radius: 12px;
    margin: 0 auto 20px;
    font-weight: 600;
    font-size: 32px;
    text-decoration: underline;
    padding: 6px 60px;
    transition: .4s;
}
.results__explain-button.active {
    color: #fff;
    background-color: #cba77c;
}
.results__explain-title {
    text-align: center;
    font-weight: 400;
    font-size: 24px;
    margin: 0 0 20px;
}
.results__explain-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background: #fff;
    padding: 0 30px;
    max-width: 75%;
    position: relative;
    margin: 0 0 40px;
}
.results__explain-content.expanded {
    max-height: 1500px;
    padding: 30px;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}
.results__order {
    font: 600 24px/1.5 'Cormorant Garamond', serif;
    padding: 14px 30px;
    margin: 40px auto 60px;
    display: block;
    text-align: center;
    inline-size: fit-content;
}
.programmy .results__order {
    background-color: #68513f;
}
.results__praktikum {
    color: #fff;
    background-color: #75695d;
    font: 600 24px/1.5 'Cormorant Garamond', serif;
    padding: 14px 30px;
    margin: 60px auto;
    display: block;
    text-align: center;
    inline-size: fit-content;
}
.programmy .results__praktikum {
    background-color: #a7a7a7;
    color: #fff;
}
.results__calendar {
    margin: 0 auto;
}
.results__calendar table {
    width: 100%;
    border-collapse: collapse;
}
.results__calendar th,
.results__calendar td {
    border: 2px solid #e1dad2;
    text-align: center;
    padding: 0;
    font: 400 14px/1 'Roboto', sans-serif;
}
.results__calendar th {
    background: #b09476;
    color: #fff;
    text-transform: uppercase;
    padding: 2px 0;
}
.results__calendar .cell-header {
    background-color: #b09476;
    color: #fff;
    padding: 4px 0;
}
.results__calendar .cell-content {
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    grid-gap: 10px;
    font-family: serif;
    background: #ece1d6;
}
.results__calendar .cell-content>div {
    display: flex;
    justify-content: center;
    grid-gap: 10px;
}
.results__error {
    text-align: center;
    color: #b09476;
    font-size: 24px;
    margin: 0 0 30px;
}
.results__back {
    text-align: center;
}
.results__back a {
    font-size: 20px;
    color: #92755f;
}
.portret-lichnosti .r13.results__item,
.kompozit-dvuh-dat .r13.results__item {
    transform: translateX(-200%);
}
.portret-lichnosti .r14.results__item,
.portret-lichnosti .r12.results__item,
.kompozit-dvuh-dat .r14.results__item,
.kompozit-dvuh-dat .r12.results__item {
    transform: translateX(calc(200% - 7px));
}
.portret-lichnosti .r4.results__item,
.portret-lichnosti .r5.results__item,
.portret-lichnosti .r6.results__item,
.kompozit-dvuh-dat .r4.results__item,
.kompozit-dvuh-dat .r5.results__item,
.kompozit-dvuh-dat .r6.results__item {
    transform: translateX(calc(100% - 15px));
}
.portret-lichnosti .r7.results__item,
.kompozit-dvuh-dat .r7.results__item {
    transform: translateX(calc(150% - 17px));
}
.portret-lichnosti .rH.results__item,
.portret-lichnosti .rG1.results__item {
    transform: translateX(calc(100% + 20px));
}
.portret-lichnosti .rG2.results__item {
    transform: translateX(calc(150% - 17px));
}
.custom-select-container {
    position: relative;
}
.custom-select-opener {
    background-color: #fff;
    border-radius: 12px;
    display: block;
    cursor: pointer;
    width: 100%;
    outline-color: #cba77c;
    color: #92755F;
    font: 500 24px/1.5 'Cormorant Garamond', serif;
    padding: 8px 12px;
    text-align: center;
}
.custom-select-opener.selected {
    font-size: 20px;
}
.customSelect.is-open .custom-select-opener {
    background-color: #e2e2e2;
}
.custom-select-container select {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
}
.custom-select-panel {
    max-height: 0;
    transition: max-height .5s ease-out;
    overflow: hidden;
    background-color: #fff;
    position: absolute;
    top: 100%;
    z-index: 1;
    width: 94%;
    left: 3%;
    border-radius: 0 0 12px 12px;
}
.custom-select-panel>div:first-child {
    display: none;
}
.custom-select-container.is-open .custom-select-panel {
    max-height: 1000px;
}
.custom-select-option {
    padding: 4px 10px;
    color: #92755F;
    text-align: center;
    font: 500 16px/1.5 'Cormorant Garamond', serif;
    border-top: 1px solid #333;
    transition: 0.4s;
    cursor: pointer;
}
.custom-select-option.has-focus {
    background-color: #e4d5ca;
}
.custom-select-option.is-selected {
    color: #ddd;
    background-color: #333;
}