:root {
    --primary-color: #227EC6;
    --secondary-color: #E53935;
    --font-family-montserrat: 'Montserrat', sans-serif;
    --font-family-roboto: 'Roboto', sans-serif;
    --background-light: #FFFFFF;
    --background-dark: #FFFFFF;
    --box-shadow-base: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
    --gradient-text: linear-gradient(90deg, #227EC6 0%, #E53935 100%);
}

/* Базовые стили */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-roboto);
    font-weight: 400;
    background: linear-gradient(135deg, #E8F2F8 0%, #FFFFFF 100%);
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Заголовки */
.header {
    font-family: var(--font-family-montserrat);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    margin: 0 0 20px 0;
}
.header::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin-top: 5px;
    border-radius: 2px;
}

.section-header {
    font-family: var(--font-family-montserrat);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.section-header::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Основной блок */
.background-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.8), rgba(255,255,255,0.7)),
            url('./img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    box-sizing: border-box;
}

.main-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-direction: row;
    z-index: 1;
}

/* Белый блок без фиксированной высоты */
.white-rectangle {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 60px;
    width: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 20px;
    box-shadow: var(--box-shadow-base);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}
.white-rectangle::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -70px;
    right: -70px;
    opacity: 0.1;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.left-content-wrapper {
    width: 60%;
}

.right-content-wrapper {
    width: 40%;
}

.form-container {
    margin-top: 20px;
}

/* Верхний ряд внутри белого блока */
.top-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

/* Блок с шагами */
.steps-inline {
    margin-top: 20px;
}
.steps-inline .step-title {
    font-family: var(--font-family-montserrat);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.steps-inline .step-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.step-item {
    background: #FAFAFA;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    font-size: 14px;
}
.step-icon {
    font-size: 16px;
    color: var(--primary-color);
}

/* Блок преимуществ */
.benefits-row {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.benefits-list-inline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.benefits-list-inline li {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.benefits-list-inline li img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}
.benefits-list-inline li span {
    font-family: var(--font-family-roboto);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

/* Цена и акции */
.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}
.price-shape {
    background: var(--secondary-color);
    border-radius: 15px 0;
    padding: 3px 15px;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.price-shape::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.price {
    font-family: var(--font-family-montserrat);
    font-weight: 700;
    font-size: 60px;
    line-height: 1;
    color: #FFFFFF;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Второй экран (иконки) */
.second-screen {
    padding: 40px 10px;
    text-align: center;
    position: relative;
    box-shadow: none;
    margin: 40px 0;
}
.icons-wrapper {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 40px 20px;
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.icons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}
.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(74, 74, 74, 0.2);
    font-size: 14px;
    transition: transform var(--transition);
}
.icon:hover {
    transform: translateY(-5px);
}
.icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}
.icon p {
    font-family: var(--font-family-roboto);
    font-size: 16px;
    color: #333;
    text-align: center;
    margin: 0;
}

/* Блок с кругами (без пульсации) */
.background-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.background-circles .circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
}

/* "Рандомные" позиции и размеры кругов */
.second-screen .circle-1 {
    top: -50px;
    left: 1%;
    width: 120px;
    height: 120px;
}
.second-screen .circle-2 {
    top: 20%;
    right: -60px;
    width: 180px;
    height: 180px;
}
.second-screen .circle-3 {
    bottom: -70px;
    left: 30%;
    width: 150px;
    height: 150px;
}

/* Блок "Почему выбирают нашу клинику" */
.advantages {
    background: #FFFFFF;
    padding: 60px 20px;
    position: relative;
    margin: 0;
}
.advantages .background-circles .circle-1 {
    top: -60px;
    left: -40px;
    width: 160px;
    height: 160px;
}
.advantages .background-circles .circle-2 {
    bottom: -80px;
    right: -50px;
    width: 180px;
    height: 180px;
}
.advantages .background-circles .circle-3 {
    top: 40%;
    left: 45%;
    width: 120px;
    height: 120px;
}
.advantages-container {
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background: #FAFAFA;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--box-shadow-base);
}
.advantages-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.advantage-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow-base);
    padding: 20px;
    flex: 0 0 calc(50% - 10px);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform var(--transition);
}
.advantage-item:hover {
    transform: translateY(-5px);
}
.advantage-icon {
    width: 50px;
    height: 50px;
}
.advantage-text {
    font-family: var(--font-family-roboto);
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}
.advantage-text strong {
    color: var(--primary-color);
}

/* FAQ - дизайн схожий с doctors-section */
.faq-section {
    padding: 40px 10px;
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
}
.faq-section::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    bottom: -70px;
    left: -70px;
    opacity: 0.05;
    z-index: 0;
}
.faq-container {
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background: #FAFAFA;
    border-radius: 15px;
    padding: 20px 10px;
    box-shadow: var(--box-shadow-base);
    text-align: center;
}
.faq-section h2.section-header {
    margin-bottom: 30px;
}
.faq-section .card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    text-align: left;
}
.faq-section .card-header {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border: none;
}
.faq-section .btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    width: 100%;
    text-align: left;
    padding: 0;
    background: none;
    border: none;
    outline: none;
}
.faq-section .btn-link:hover,
.faq-section .btn-link:focus {
    text-decoration: none;
    color: var(--secondary-color);
}
.faq-section .btn-link::after {
    content: "\25BC";
    float: right;
    transition: transform 0.3s ease;
}
.faq-section .btn-link.collapsed::after {
    transform: rotate(0deg);
}
.faq-section .btn-link:not(.collapsed)::after {
    transform: rotate(180deg);
}
.faq-section .card-body {
    background-color: #ffffff;
    padding: 20px;
    font-size: 15px;
    color: #333;
    border-top: 1px solid #eee;
    line-height: 1.4;
}

/* Секция врачи */
.doctors-section {
    padding: 40px 10px;
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
}
.doctors-section::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    bottom: -70px;
    left: -70px;
    opacity: 0.05;
    z-index: 0;
}
.doctors-wrapper {
    background-color: #FAFAFA;
    border-radius: 15px;
    padding: 20px 10px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-base);
    z-index: 1;
}
.doctors-wrapper::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    border-radius: 50%;
    bottom: -40px;
    right: -40px;
    opacity: 0.1;
}
.doctors-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
    position: relative;
}

/* Финальный призыв к действию */
.final-cta {
    background: #FFFFFF;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}
.final-cta-container {
    max-width: 800px;
    margin: 0 auto;
    background: #FAFAFA;
    border-radius: 15px;
    box-shadow: var(--box-shadow-base);
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}
.final-cta h2 {
    font-family: var(--font-family-montserrat);
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.final-cta p {
    font-family: var(--font-family-roboto);
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
}
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-family: var(--font-family-montserrat);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color var(--transition), transform var(--transition);
}
.cta-button:hover {
    background-color: #1a6fa8;
    transform: scale(1.03);
}

/* Кнопки */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color var(--transition);
    margin-top: 8px;
    display: inline-block;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}
.btn-primary:hover {
    background-color: #1a6fa8;
}

.booking-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: auto;
    transition: background-color var(--transition), transform var(--transition);
}
.booking-btn:hover {
    background-color: #1a5e8a;
    transform: scale(1.02);
}

/* Адаптив */
@media (min-width: 1001px) {
    .white-rectangle {
        min-height: 600px;
    }
    .left-content-wrapper,
    .right-content-wrapper {
        height: 100%;
    }
    .left-content-wrapper {
        justify-content: space-between;
    }
    .right-content-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 1000px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .white-rectangle {
        max-width: 100%;
        flex-direction: column;
        padding: 15px;
    }
    .top-row {
        flex-direction: column;
        position: relative;
    }
    .left-content-wrapper,
    .right-content-wrapper {
        width: 100% !important;
    }
    .header {
        font-size: 28px;
        text-align: center;
        margin: 0 0 20px 0;
    }
    .price-section {
        justify-content: center;
        margin-bottom: 20px;
    }
    .price {
        font-size: 42px;
    }
    .deadline {
        font-size: 16px;
        text-align: center;
        margin-bottom: 20px;
    }
    .content-wrapper {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        align-items: center;
    }
    .doctors-block .doctor-card {
        width: 100%;
    }
    .icons-wrapper {
        padding: 15px 8px;
    }
    .section-header {
        font-size: 20px;
    }
}

/* Мобильная адаптация advantages */
@media (max-width: 768px) {
    .icons-container {
        grid-template-columns: 1fr;
    }
    .doctor-content {
        flex-direction: column;
        align-items: center;
    }
    .description {
        text-align: center;
    }
    .photo {
        width: 100%;
    }
    .benefits-list-inline {
        display: block;
        text-align: center;
    }
    .benefits-list-inline li {
        display: block;
        margin-bottom: 20px;
    }
    .benefits-list-inline li img {
        display: block;
        margin: 0 auto 5px;
    }
    .benefits-list-inline li span {
        display: block;
    }
    .advantages-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .advantage-item {
        flex: none;
        width: 100%;
    }
}
