/*
Theme Name: MedPred
Theme URI: https://medpred.ru
Description: Чистая тема для медицинского проекта MedPred с современным дизайном и адаптивной версткой.
Author: MedPred Team
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medpred
Tags: medical, responsive, clean, modern
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/


/* Общие стили - шрифты теперь загружаются через preload и отдельные CSS файлы */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #f7f9fa;
    font-weight: 400;
}

.logo-text span {
    font-weight: 700;
    font-size: clamp(0.625rem, 0.217rem + 0.65vw, 1rem); /* 16px */
}

/* Номер телефона */
.phone-number:hover {
    color: #F1A54B;
}

.btn-menu:hover {
    box-shadow: 0 7px 15px 0 rgba(46, 150, 194, 0.15), 0 28px 28px 0 rgba(46, 150, 194, 0.13), 0 62px 37px 0 rgba(46, 150, 194, 0.08), 0 111px 44px 0 rgba(46, 150, 194, 0.02), 0 173px 48px 0 rgba(46, 150, 194, 0);
    background: linear-gradient(90deg, #2fade3 0%, #53ccff 100%), radial-gradient(155.52% 73.4% at 70.15% 36.53%, #50c9fd 0%, #2cace3 100%), radial-gradient(155.52% 73.4% at 70.15% 36.53%, #3fc5ff 0%, #58cdff 100%);
}
.footer {
    background: #3a3a3a;
    padding: clamp(20px, calc(1.389vw + 3.333px), 30px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    gap: 30px;
}

.footer-logo svg {
    width: clamp(130px, calc(11.111vw - 3.333px), 210px);
}

.footer-logo .logo-description {
    font-size: clamp(10px, calc(0.556vw + 3.333px), 14px);
}

.footer-logo .logo-description span {
    font-size: clamp(11px, calc(0.694vw + 2.667px), 16px);
}

.footer-logo-text {
    display: flex;
    align-items: center;
}

.footer-nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.footer-nav-item a {
    color: #fff;
    font-weight: 500;
    font-size: clamp(11px, calc(0.972vw - 0.667px), 18px);
    line-height: 120%;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-weight: 300;
    font-size: clamp(10px, calc(0.833vw), 16px);
    line-height: 120%;
    letter-spacing: -0.01em;
    margin-top: clamp(40px, calc(2.083vw + 15px), 55px);
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer-nav-link--active {
    border-bottom: 1px solid #fff;
    padding-bottom: clamp(10px, calc(0.694vw + 1.667px), 15px);
}

.footer-bottom-right {
    display: none;
}

.footer-bottom-left__wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
}


/* ========================
   Layout Containers
   ======================== */

.main-container {
    max-width: 1665px;
    width: 93%;
    margin: auto;
    overflow: hidden;
}

/* ========================
   Responsive Visibility Classes
   ======================== */

.news-section .main-container {
    max-width: clamp(960px, calc(80.139vw - 1.667px), 1537px);
    overflow: visible;
}
.news-section h2 {
    font-weight: 400;
    font-size: clamp(34px, calc(2.285vw + 11.126px), 55px);
    line-height: 120%;
    letter-spacing: -0.01em;
    text-align: center;
    color: #3a3a3a;
}
.news-item {
    display: flex;
    flex-direction: column;
}
.news-item-title {
    font-weight: 500;
    font-size: clamp(13px, calc(1.25vw - 2px), 22px);
    line-height: 150%;
    color: #3a3a3a;
    margin-bottom: clamp(15px, calc(1.389vw - 1.667px), 25px);
}
.news-item-text {
    font-size: clamp(11px, calc(0.972vw - 0.667px), 18px);
    line-height: 150%;
    color: #3a3a3a;
    margin-bottom: 40px;
    flex-grow: 1;
}
.news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-link {
    font-weight: 600;
    font-size: clamp(11px, calc(1.111vw - 2.333px), 19px);
    line-height: 150%;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #18b4b0;
}
.news-button-wrapper {
    display: flex;
    justify-content: center;
    margin: clamp(50px, calc(4.167vw), 80px) 0;
}
.news-date {
    font-size: clamp(11px, calc(1.111vw - 2.333px), 19px);
    line-height: 150%;
    color: #3a3a3a;
}
.news-item-footer .news-date {
    font-size: clamp(12px, calc(0.194vw + 11.272px), 15px);
}
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 45px;
}
.news-image {
    background: #fff;
    background-size: contain;
    background-position: center center;
    /*height: clamp(288px, calc(26.667vw - 32px), 480px);*/
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    aspect-ratio: 1;
}

.consultation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: scroll;
}

.consultation-modal.is-open {
    display: flex;
    opacity: 1;
}

.quiz-slide {
    border-radius: 10px;
    position: relative;
    max-width: clamp(977px, calc(95.978vw + 17.217px), 1860px);
    max-height: clamp(674px, calc(30.435vw + 369.652px), 954px);
    height: 95%;
    padding-left: clamp(50px, calc(8.696vw - 36.957px), 130px);
    padding-right: clamp(50px, calc(8.696vw - 36.957px), 130px);
    padding-top: clamp(55px, calc(6.522vw - 10.217px), 115px);
    padding-bottom: clamp(55px, calc(6.522vw - 10.217px), 115px);
    display: flex;
    gap: clamp(0.625rem, -4.14rem + 7.62vw, 5rem); /*80px*/
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    justify-content: flex-start;
    align-items: flex-start;
}
.consultation-modal .quiz-slide {
    background: #3BB8EE;
    padding: clamp(45px, calc(4.167vw - 5px), 75px) clamp(40px, calc(2.778vw + 6.667px), 60px);
    width: 100%;
    margin-left: 20px;
    margin-right: 20px;
}
.consultation-modal .contact-form {
    padding: clamp(35px, calc(2.778vw + 1.667px), 55px) clamp(35px, calc(3.472vw - 6.667px), 60px);
}
.consultation-modal .contact-form {
    width: clamp(565px, calc(47.222vw - 1.667px), 905px);
}

.consultation-modal .submit-btn {
    background: linear-gradient(90deg, #2FADE3 0%, #53CCFF 100%);
}
.consultation-modal .quiz-slide {
    height: auto;
}
.consultation-modal .agreement input[type="checkbox"]:checked {
    background: #3BB8EE;
    border-color: #3BB8EE;
}
.consultation-modal .quiz-content h1 {
    max-width: clamp(400px, calc(37.5vw - 50px), 670px);
    font-size: clamp(35px, calc(2.917vw), 56px);
    line-height: 110%;
}
.consultation-modal .form-row input {
    padding: clamp(18px, calc(1.667vw - 2px), 30px) clamp(30px, calc(0.543vw + 24.565px), 35px);
}
.consultation-modal .contact-form .submit-btn {
    padding-top: clamp(18px, calc(1.667vw - 2px), 30px);
    padding-bottom: clamp(18px, calc(1.667vw - 2px), 30px);
}
.consultation-modal .form-row {
    margin-bottom: clamp(10px, calc(1.389vw - 6.667px), 20px);
    gap: clamp(10px, calc(1.389vw - 6.667px), 20px);
}
.quiz-content__wrapper {
    display: flex;
    width: 100%;
    gap: 50px;
}
.close-btn {
    position: absolute;
    top: 40px;
    right: 45px;
    background: none;
    border: none;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}
.quiz-content {
    max-width: clamp(35rem, 9.131rem + 41.35vw, 58.75rem); /*940px*/
    height: 100%;
    display: flex;
    flex-direction: column;
}
.quiz-content__inner {
    flex-grow: 1;
}

.quiz-content h1 {
    font-size: clamp(40px, calc(1.739vw + 22.609px), 56px);
    font-weight: 300;
    color: #ffffff;
    line-height: 125%;
    letter-spacing: -0.01em;
    margin-bottom: clamp(35px, calc(4.167vw - 15px), 65px);
}

.consultation-modal .consultation-success {
    background: url('./assets/images/quiz-final.png');
    background-size: cover;
    background-repeat: no-repeat;
    padding: clamp(45px, calc(4.167vw - 5px), 75px) clamp(40px, calc(2.778vw + 6.667px), 60px);
    width: 100%;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 10px;
    position: relative;
    max-width: clamp(977px, calc(95.978vw + 17.217px), 1860px);
    max-height: clamp(674px, calc(30.435vw + 369.652px), 954px);
    height: 95%;
    padding-left: clamp(50px, calc(8.696vw - 36.957px), 130px);
    padding-right: clamp(50px, calc(8.696vw - 36.957px), 130px);
    padding-top: clamp(55px, calc(6.522vw - 10.217px), 115px);
    padding-bottom: clamp(55px, calc(6.522vw - 10.217px), 115px);
    display: flex;
    gap: clamp(0.625rem, -4.14rem + 7.62vw, 5rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    justify-content: flex-start;
    align-items: flex-start;
}
.consultation-modal .consultation-success .quiz-content {
    max-width: none;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.consultation-modal .consultation-success .quiz-content h1 {
    color: #3A3A3A;
    text-align: center;
}
.consultation-modal .consultation-success .quiz-content__inner {
    display: flex;
    align-items: center;
}
.consultation-success .close-btn {
    width: clamp(23px, calc(2.174vw + 1.261px), 43px);
    height: clamp(23px, calc(2.174vw + 1.261px), 43px);
}

@media (max-width: 1200px) {
    .consultation-modal .consultation-success {
        background: url('../images/quiz-final-1200.png');
        background-size: cover;
        background-repeat: no-repeat;
    }
    .consultation-modal .quiz-illustration {
        position: static;
    }
    .consultation-modal .contact-form {
        width: 100%;
        max-width: none;
    }
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: clamp(1.875rem, -0.167rem + 3.26vw, 3.75rem) clamp(3.125rem, 1.083rem + 3.26vw, 5rem); /* 60px 80px */
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input {
    flex: 1;
    padding: clamp(25px, calc(0.543vw + 19.565px), 30px) clamp(30px, calc(0.543vw + 24.565px), 35px);
    border: 1px solid #e1e5e9;
    border-radius: 100px;
    font-size: clamp(0.813rem, 0.54rem + 0.44vw, 1.063rem); /* 17px */
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}
.contact-form .submit-btn {
    padding-top: clamp(30px, calc(0.543vw + 24.565px), 35px);
    padding-bottom: clamp(30px, calc(0.543vw + 24.565px), 35px);
}

.form-row input:focus {
    border-color: #14b8c7;
    box-shadow: 0 0 0 3px rgba(20, 184, 199, 0.1);
}

.form-row input::placeholder {
    color: #999;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: #14b8c7;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: clamp(0.875rem, 0.535rem + 0.54vw, 1.188rem); /* 19px */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: #0ea5b4;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.agreements {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: clamp(0.75rem, 0.546rem + 0.33vw, 0.938rem); /* 15px */
    color: #666;
    cursor: pointer;
}

.agreement input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 1px;
    flex-shrink: 0;
}

.agreement input[type="checkbox"]:checked {
    background: #14b8c7;
    border-color: #14b8c7;
}

.agreement input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}
.checkbox-text {
    cursor: pointer;
}


@media (max-width: 1200px) {
    .footer-bottom-right {
        display: block;
    }
    
    .footer-bottom-left__wrapper {
        flex-direction: column;
        gap: 10px;
        width: auto;
    }
}
.quiz-illustration {
    width: clamp(335px, calc(40.217vw - 67.174px), 705px);
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 999px) {
    .footer-right {
        display: none;
    }
    .quiz-illustration {
        flex: none;
        order: -1;
        position: absolute;
        right: 0;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .consultation-modal .consultation-success {
        background: url('../images/quiz-final744.png');
        background-size: cover;
        background-repeat: no-repeat;
    }

    .consultation-modal .close-btn {
        top: 10px;
        right: 10px;
    }
    .consultation-modal .quiz-content {
        max-width: 100%;
        width: 100%;
    }
    .consultation-modal .quiz-illustration {
        position: static;
        width: 95%;
        margin-top: -200px;
    }

    .consultation-modal .quiz-illustration {
        position: relative;
        z-index: 0;
        width: 95%;
        margin-top: -240px;
        margin-left: auto;
        margin-right: auto;
    }
    .consultation-modal .contact-form {
        background: rgba(255, 255, 255);
    }
    .consultation-modal .quiz-content__inner {
        position: relative;
        z-index: 3;
    }
    .consultation-modal .quiz-content h1 {
        font-size: 30px;
        max-width: 510px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .logo-text {
        font-size: 12px;
    }
    .step-line {
        margin: 4px 0;
        width: 30%;
    }
    .quiz-content {
        max-width: 100%;
    }
    .quiz-content h1 {
        font-size: 36px;
    }
    .quiz-options .option {
        font-size: 17px;
    }
    .quiz-content__wrapper {
        flex-direction: column-reverse;
    }
    .quiz-slide .close-btn svg {
        width: 19px;
        height: 19px;
    }
    .quiz-slide {
        flex-direction: column;
        padding: 30px;
        width: 95%;
        max-height: 95vh;
        overflow-y: auto;
    }
}

@media (max-width: 699px) {

    .consultation-modal .consultation-success {
        background: url('./assets/images/quiz-final375.png');
        background-size: cover;
        background-repeat: no-repeat;
    }
    .consultation-modal .quiz-content h1 {
        font-size: 22px;
    }
    .consultation-modal .quiz-illustration {
        margin-top: auto;
        margin-bottom: -45px;
    }

    .consultation-modal .quiz-content h1 {
        width: 84%;
    }
    .consultation-modal .quiz-slide {
        padding-left: 10px;
        padding-right: 10px;
    }
    .consultation-modal .quiz-options {
        display: block;
    }
    .consultation-modal .contact-form {
        padding-left: 25px;
        padding-right: 25px;
        padding-top: 25px;
        padding-bottom: 25px;
    }
    .quiz-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .quiz-slide {
        height: 100%;
        align-items: flex-start;
    }
    .quiz-content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .form-row input {
        padding: 25px 30px;
        font-size: 14px;
    }
    .agreement {
        font-size: 13px;
    }
    .submit-btn {
        padding: 25px;
    }
    .quiz-content h1 {
        font-size: 23px;
    }
    .quiz-slide .close-btn svg {
        width: 19px;
        height: 19px;
    }
    .close-btn {
        top: 15px;
        right: 15px;
    }
    .footer-logo {
        display: block;
    }
    .footer-content {
        display: flex;
    }

    .footer-nav-list {
        flex-direction: column;
        gap: 15px;
    }
    .footer-nav-link--active {
        padding-bottom: 5px;
    }
    .footer-nav-item a {
        font-size: 12px;
    }
    .footer-logo .logo-description {
        font-size: 12px;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: baseline;
    }

    .news-section .heading-block h2 {
        font-size: 26px;
    }
    .news-image {
        border-radius: 10px;
        width: 100%;
        height: auto;
        aspect-ratio: 300 / 288;
        max-width: 100%;
    }
    .news-item-text {
        margin-bottom: 35px;
        font-size: 15px;
    }
    .news-item-title {
        font-size: 17px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom a {
        font-size: 12px;
    }
    .footer-bottom {
        margin-top: 25px;
    }
    .logo-text, .logo-text span {
        font-size: 13px;
    }
    .logo-text {
        max-width: 200px;
    }
    .logo-text br {
        display: none;
    }
}

/* Cookie Popup Styles */
.modal-container {
    position: fixed;
    bottom: 0;
    z-index: 1000;
}

.modal-container--hidden {
    display: none;
}

.modal-container__body {
    background-color: #ffffff;
    min-height: 100px;
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.05);
    border: 1px solid #e0e7ff;
}

.modal-container__text {
    font-size: clamp(11px, -2.333px + 1.111vw, 19px);
    line-height: 1.5;
    margin-right: 20px;
    color: #374151;
    text-align: center;
    flex: 1;
}

.modal-container__text a {
    color: #2fade3;
    text-decoration: none;
}

.modal-container__text a:hover {
    text-decoration: underline;
}

.modal-container__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.modal-container__button {
    position: relative;
    padding: 12px 24px;
    min-width: 120px;
    height: auto;
    border-radius: 8px;
    border: none;
    color: white;
    font-size: clamp(11px, -2.333px + 1.111vw, 19px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-container__button--accept {
    background: linear-gradient(135deg, #2fade3 0%, #53ccff 100%);
    box-shadow: 0 4px 15px rgba(47, 173, 227, 0.3);
}

.modal-container__button--decline {
    background: linear-gradient(135deg, #e32f4a 0%, #ff5370 100%);
    box-shadow: 0 4px 15px rgba(227, 47, 74, 0.3);
}

.modal-container__button--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 173, 227, 0.4);
    background: linear-gradient(135deg, #1e9bd1 0%, #42b5e6 100%);
}

.modal-container__button--decline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 47, 74, 0.4);
    background: linear-gradient(135deg, #d12842 0%, #e64659 100%);
}

.modal-container__button:active {
    transform: translateY(0);
}

.modal-container__button--accept:active {
    box-shadow: 0 2px 10px rgba(47, 173, 227, 0.3);
}

.modal-container__button--decline:active {
    box-shadow: 0 2px 10px rgba(227, 47, 74, 0.3);
}

/* Mobile styles */
@media (max-width: 768px) {
    .modal-container__body {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        margin: 10px;
    }
    
    .modal-container__text {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .modal-container__buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .modal-container__button {
        min-width: 100px;
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
}