@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;900&display=swap');
/* font-family: "Roboto Condensed", sans-serif; */
@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans+Semi+Condensed:wght@1..1000&display=swap');
/* font-family: "Sofia Sans Semi Condensed", sans-serif; */

/* На случай блокировок серверов Google Fonts */
/* @import url(../font/RobotoCondensed/stylesheet.css);
@import url(../font/Sofia/stylesheet.css); */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Sofia Sans Semi Condensed", sans-serif;
    font-size: 16px;
    color: #193666;
    margin: 0;
    padding: 0;
    font-weight: 400;
}

:root {
    --font-family: "Sofia Sans Semi Condensed", sans-serif;
    --second-family: "Roboto Condensed", sans-serif;
    --margin-top-section: 120px;
    --xs-margin-top-section: 40px;
    --main-color: #202D41;
}

.container {
    max-width: 1405px;
    margin: 0 auto;
}

.header__svgs {
    display: flex;
    align-items: center;
    gap: 15px;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

/* 1 */
.header {
    max-width: 1405px;
    width: 100%;
    min-height: 779px;
    height: 100%;
    margin: 0 auto;
    margin-top: 20px;
    border-radius: 40px;
}

.consul__wrapper-logo-name_svg {
    margin-bottom: 40px;
}

.header__ul {
    display: flex;
    gap: 67px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    padding: 22px 25px;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border-radius: 10px;
}

.header__li {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    color: #fff;
}

.header__li a {
    position: relative;
    color: #fff;
    transition: all .3s ease-in-out;
}

.header__li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #fff;
    transition: all .3s ease-in-out;
}

.header__li a:hover::after {
    width: 100%;
}

.btn {
    background: linear-gradient(90deg, #193666 0%, #542c9c 100%);
    border-radius: 40px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 9px 8px 17px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.header__svg {
    transition: all 0.3s ease;
}

.header__svg:hover {
    transform: scale(1.05);
}

.header__wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 15px;
}

.header__btns {
    display: flex;
    align-items: center;
    gap: 15px;
}

.home__title {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 90px;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    color: #fff;
}

.home__titles {
    display: flex;
    align-items: center;
    margin-top: 32px;
}

.home__titles-svg {
    width: 67px;
    height: 105px;
    margin-right: 45px;
    margin-left: 36px;
}

.home__titles-svg_two svg {
    width: 99px;
    height: 98px;
    margin-left: 77px;
}

.home__subtitle {
    text-shadow: 0 12px 12px rgba(0, 0, 0, 0.25);
    font-family: var(--second-family);
    font-weight: 900;
    font-size: 36px;
    letter-spacing: 0.11em;
    color: #fff;
    margin-left: 36px;
    margin-top: 23px;
}

.home__subtitles-svg svg {
    width: 85px;
    height: 84px;
}

.home__subtitles {
    display: flex;
    align-items: end;
    gap: 57px;
}

.astrology__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 40px;
}

.astrology__subtitle {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    color: rgba(62, 93, 126, 0.85);
    margin-top: 20px;
}

.astrology {
    background: #fff;
    border-radius: 20px;
    max-width: 599px;
    margin: 31px 0 20px 20px;
    padding: 16px 0 18px 24px;
}

.astrology__btn {
    margin-top: 20px;
}

/* 2 */
.consultation {
    margin-top: var(--margin-top-section);
}

.logo__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 68px;
    text-transform: uppercase;
    color: #fff;
    -webkit-text-stroke: 1px #9DB6DF;
    color: transparent;

}

.logo__subtitle {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 180px;
    line-height: 106%;
    color: #fff;
    -webkit-text-stroke: 1px #9DB6DF;
    color: transparent;
    margin-top: -27px;
    margin-left: -6px;
}

.cons__text-title {
    font-weight: 400;
    color: rgba(25, 54, 102, 0.47);
    font-size: 32px;
}

.cons__text-title strong {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 32px;
    color: #193666;
}

.cons__text-subtitle {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 28px;
    color: #1d4d9c;
    margin-top: 40px;
}

.consul__wrapper {
    display: flex;
    gap: 80px;
    align-items: center;
}

.cons__block {
    border: 1px solid rgba(79, 121, 190, 0.65);
    border-radius: 30px;
    padding: 15px 14px 20px 15px;
    flex: 1;
    min-width: 290px;
}

.const__benefit-title {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 16px;
    color: rgba(79, 121, 190, 0.65);
    border: 1px solid rgba(79, 121, 190, 0.65);
    border-radius: 40px;
    padding: 8px 13px;
    display: inline-block;
    /* Добавляем это */
    width: auto;
}

.const__benefit-subtitle {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 24px;
    background: linear-gradient(90deg, #193666 0%, #542c9c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 20px;
}

.cons__blocks {
    display: flex;
    justify-content: space-between;
    gap: 41px;
    margin-top: 40px;
}

.const__benefit-svg {
    display: flex;
    justify-content: flex-end;
    margin-top: 47px;
}

.consl__btn {
    padding: 14px 9px 14px 9px;
    gap: 28px;
    font-weight: 400;
    font-size: 18px;
}

/* 3 */
.about {
    margin-top: var(--margin-top-section);
}

.about__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 32px;
}

.about__subtitle {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 32px;
    color: rgba(25, 54, 102, 0.47);
    margin-top: 40px;
}

.about__doc {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 24px;
    margin-top: 40px;
}

.about__wrapper {
    display: flex;
    align-items: center;
    gap: 204px;
}

.about__btn-two {
    margin-top: 20px;
    gap: 18px;
}

.about__logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Выравнивание элементов по правому краю */
    width: 100%;
}

.about__btns {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Кнопки прижмутся к правому краю */
    margin-left: auto;
    /* Автоматический отступ слева вытолкнет блок вправо */
}

.about__btn {
    gap: 8px;
}

/* 4 */
.footer {
    margin-top: var(--margin-top-section);
}

.footer__text {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 32px;
}

.footer__block {
    background: #202D41;
    padding: 31px 30px 12px 30px;
    border-radius: 50px;
    position: relative;
}

.footer__block-two {
    background: #ffffff;
    border-radius: 50px;
    padding: 37px 0 21px 38px;
}

.footer__block-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 24px;
}


.form-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    font-family: var(--font-family);
    position: absolute;
    top: -10px;
    left: 15px;
    background: white;
    padding: 0 8px;
    font-size: 14px;
    color: #121826;
    font-weight: 500;
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label,
.form-input:not([value=""])+.form-label,
.form-textarea:focus+.form-label,
.form-textarea:not(:placeholder-shown)+.form-label {
    top: -10px;
    font-size: 14px;
    color: #121826;
    font-weight: 500;
    background: white;
}

/* Для textarea с начальным значением */
.form-textarea:not(:focus):not(:placeholder-shown)+.form-label {
    top: -10px;
    font-size: 14px;
    color: #121826;
    font-weight: 500;
    background: white;
}

.form-label.required::after {
    content: " *";
    color: #e74c3c;
}

.form-input {
    font-family: var(--second-family);
    width: 100%;
    padding: 15px;
    border: 1px solid #d2d5da;
    border-radius: 8px;
    font-size: 16px;
    color: #6C727F;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05);
}


.phone-field::before {
    display: none;
}

.phone-field .form-input {
    padding-left: 15px;
    /* Возвращаем обычный padding */
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
    padding: 15px;
    font-family: var(--second-family);
}

.telegram-field::before {
    display: none;
}

.form-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto);
    column-gap: 25px;
    margin-top: 50px;
    position: relative;
}

.form-email {
    grid-row: 2/3;
    grid-column: 1/3;
    display: flex;
}

.form-email > p {
    width: 100%;
}

.form-textarea {
    resize: none;
    max-height: 120px;
}

.phone-field {
    grid-column: 1/3;
}

.com-form {
    grid-column: 1/3;
}

.block-footer__title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 22px;
    color: #c0854d;
}

.block-footer__num {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    color: #787885;
    margin-top: 20px;
    margin-left: 15px;
}

.block-footer__subtitle {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    color: #787885;
    margin-top: 20px;
}

.footer__wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
}

.block-footer {
    margin-top: 47px;
}

.footer_btn {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Кнопки прижмутся к правому краю */
    margin-left: auto;
    margin-top: 0;
    gap: 13px;
}

.foot-btn {
    margin-top: 40px;
    margin-left: auto;
}

.block-footer {
    position: relative;
}

.block-footer_svg {
    position: absolute;
    top: 338px;
    left: 520px;
}

.footer__block {
    margin-top: 40px;
    margin-bottom: 20px;
}


/* services */
.services__header {
    background: url(../img/bg.webp);
}

.service__astrology {
    margin: 98px 0 20px 20px;
}

/* 2 */
.listServis {
    margin-top: 100px;
}

.listServis__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 32px;
}

.listServis__subtitle {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 32px;
    color: rgba(25, 54, 102, 0.67);
    margin-top: 20px;
}

.listServis__mintitle {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    color: rgba(62, 93, 126, 0.7);
    margin-top: 20px;
}

.listServis__btn {
    background: #7d95bc;
    border-radius: 40px;
    padding: 14px 16px;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.listServis__wrapper {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 3 */
.characteristic {
    margin-top: 40px;
}

.char__block-title {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 28px;
    line-height: 164%;
    letter-spacing: 0em;
    color: #542c9c;
}

.char__block-subtitle {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    color: #787885;
    margin-top: 30px;
}

.char__btn {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    gap: 13px;
    padding: 14px 8px 13px 13px;
    margin-top: 30px;
}

.char__img {
    max-width: 484px;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    height: 100%;
    border-radius: 20px;
}

.char__img img {
    width: 100%;
    height: 100%;
}

.char__wrapper {
    padding-top: 40px;
    display: flex;
    gap: 56px;
    align-items: center;
    border-top: 1px solid var(--main-color);
    width: 100%;
    max-width: 1180px;
}


/* contacts */
.contacts__astrology {
    max-width: 393px;
    margin: 188px 0 20px 20px;
}

/* 2 */
.contact {
    margin-top: 42px;
}

.cont__block-text {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 16px;
    color: rgba(79, 121, 190, 0.65);
    border: 1px solid rgba(79, 121, 190, 0.65);
    border-radius: 40px;
    padding: 8px 13px;
    display: inline-block;
    width: auto;

}

.cont__block {
    border: 1px solid rgba(79, 121, 190, 0.65);
    border-radius: 30px;
    padding: 15px;
    max-width: 290px;
    width: 100%;
    min-height: 189px;
}

.cont__block-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 24px;
    background: linear-gradient(90deg, #193666 0%, #542c9c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-top: 20px;
}

.cont__block-svg {
    display: flex;
    justify-content: center;
    margin-top: 11px;
}

.cont__block-btn {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    gap: 13px;
}

.const__block-sub {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 230%;
    letter-spacing: -0.01em;
    color: #1d4d9c;
}

.cont__wrapper {
    display: flex;
    gap: 41px;
    justify-content: center;
}


/* privacy */
.privacy__astrology {
    padding: 20px 22px;
    max-width: 620px;
    margin: 300px 0 20px 20px;
}

/* 2 */
.privacy {
    margin-top: 40px;
}

.privacy__title {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    color: rgba(62, 93, 126, 0.7);
}

.privacy__ul, .privacy__title ul, .privacy__title ol {
    margin-left: 10px;
}

.privacy__ul li::before, .privacy__title ul li::before, .privacy__title ol li::before {
    content: "•";
    font-size: 21px;
    margin-right: 10px;
    vertical-align: middle;
}

.footer__under-copyright {
    margin: 0 auto;
    margin-top: 70px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}

.footer__under-policy_link {
    display: block;
    margin: 0 auto;
    margin-top: 10px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
}

.footer__under-policy_link:hover {
    color: #c0854d;
}

.footer__block-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer__block-inner_item {
    position: relative;
    margin-top: -37px;
    display: flex;
    background-color: var(--main-color);
    align-items: center;
    gap: 25px;
    padding: 12px 47px 22px 22px;
    border-bottom-left-radius: 40px;
}

.footer__block-inner_item a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__block-inner_item-radius {
    position: absolute;
    width: 26px;
    height: 24px;
}

.footer__block-inner_item-radius.first {
    top: 0;
    left: -25px;
}

.footer__block-inner_item-radius.second {
    bottom: -24px;
    right: -1px;
}

.footer__under-arrow_up {
    position: absolute;
    right: 30px;
    bottom: 30px;
    border: none;
    cursor: pointer;
    outline: none;
    background-color: #542c9c;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer__under-arrow_up:hover {
    transform: translateY(-10px);
}

html {
    scroll-padding-top: 5%;
    scroll-behavior: smooth;
}

.tab-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    transition:
        max-height 0.5s ease,
        opacity 0.4s ease,
        transform 0.4s ease;
}

.tab-content.active {
    max-height: 5000px;
    opacity: 1;
    transform: translateY(0);
}

.listServis__btn.active {
   background: linear-gradient(90deg, #193666 0%, #542c9c 100%);
    color: #fff;
}

body.scroll-lock {
    overflow: hidden;
}

.popup-casual__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.popup-casual__overlay.open {
    visibility: visible;
    opacity: 1;
}

.popup-casual {
    z-index: 99;
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 40px 20px 20px 20px;
    background-color: white;
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
    border-radius: 20px;
}

.popup-casual-policy-text {
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--main-color);
    margin-top: 10px;
    text-align: left;
}

.popup-casual-policy-text a {
    color: #4d2d95;
    text-decoration: underline;
}

.popup-casual.open {
    visibility: visible;
    opacity: 1;
}

.popup-casual__close {
    font-size: 20px;
    position: fixed;
    top: 10px;
    right: 10px;
}

.popup-casual__title {
    font-size: 20px;
    color: #4d2d95;
    font-family: var(--font-family);
    text-align: center;
}

.popup-casual__descr {
    margin-top: 10px;
    font-size: 18px;
    color: var(--main-color);
    font-family: var(--font-family);
    text-align: center;
}

.popup-casual__input {
    all: unset;
    margin-top: 10px;
    display: block;
    border: 1px solid rgb(177, 176, 176);
    border-radius: 10px;
    box-sizing: border-box;
    padding: 15px;
    font-family: var(--font-family);
    text-align: left;
    width: 100%;
    transition: border .3s ease-in-out;
}

.popup-casual__input:focus {
    border: 1px solid #c0854d;
}

.popup-casual_form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.popup-casual__submit {
    all: unset;
    display: block;
    margin: 0 auto;
    margin-top: 15px;
    border: 1px solid red;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    font-family: sans-serif;
    cursor: pointer;
}

.popup-casual__submit:hover {
    transform: scale(1.1);
}

.popup-casual__close {
    outline: none;
    border: none;
    background-color: unset;
    display: block;
    cursor: pointer;
}

.popup-casual__close svg {
    width: 30px;
    height: 30px;
}

.popup-casual__close svg path {
    transition: all .3s ease-in-out;
}

.popup-casual__close svg:hover path {
    fill: #4d2d95;
}

.popup-casual-btn-name {
    display: block;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    color: var(--main-color);
}

.popup-consl__btn {
    margin: 20px auto 0 auto;
    border-radius: 10px;
    max-width: 300px;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 15px 0;
    font-size: 20px;
}

.popup__consl-hidden {
    opacity: 0;
    position: absolute;
    visibility: hidden;
}

.header__burger svg, .header__burger  {
    display: none;
    width: 40px;
    height: 40px;
}

.mobile-menu__overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    background: #000;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu__overlay.open {
    opacity: 0.5;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    background-color: #fff;
    width: 70%;
    padding: 20px 40px 20px 20px;
    height: 100%;
    transform: translateX(-100%);
    transition: all .3s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
     transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
}

.mobile-menu__body-img {
    max-width: 300px;
}

.mobile-menu__btns {
    margin-block: 20px;
}

.mobile-menu__body_nav ul li a {
    display: block;
    text-transform: uppercase;
    margin-top: 20px;
    color: #000;
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-family);
}

.mobile__menu-social-btns-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.wpcf7 form.sent .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output {
    border-radius: 10px;
    text-align: center;
}