﻿body {
    padding-top: 7vh;
    background-color: #ffffff;
    overflow-x: hidden; 
}
hr {
    height: 2px;
    width: 1000px; 
    background-color: #BFA315;
    margin: 0 auto; 
}

.info-page {
    display: flex;
    max-width: 1200px;
    padding: 0;
}

.info-page > div {
    flex: 1;
    max-width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-page img {
    width: 500px;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.info-page img:hover {
    transform: translateY(-6px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 35px 80px rgba(0, 0, 0, 0.18),
        0 60px 120px rgba(0, 0, 0, 0.15);
}

.info-page h1 {
    color: #333;
    margin-top: -10px;
    font-size: 36px;
    margin-bottom: 20px;
}

.info-page p {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ipoteka__main-text {
    font-style: italic;
    width: 100%;
}

.mortgage-page {
    line-height: 1.6;
    color: #333;
    padding: 40px 0;
    padding-bottom: 0px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.intro-section {
    margin-bottom: 50px;
}

.text-block {
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #BFA315;
}

.benefits-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.benefit-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #BFA315;
}

.work-process {
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.work-process h2 {
    text-align: center;
    margin-bottom: 10px;
}
.step:hover {
    background-color: #fff9e6;
    transform: translateX(5px);
    transition: 0.2s;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

.step {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(73, 73, 73, 0.4);
    position: relative;
    padding-left: 20px;
}

.step__num {
    font-family: 'Comic Sans MS', cursive;
    color: #BFA315;
    font-size: 20px;
    margin-bottom: 15px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.additional-service {
    margin-bottom: 50px;
}

.additional-service h2 {
    margin-bottom: 20px;
    text-align: center;
}

.service-details {
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.ipoteka__footer-text {
    margin-bottom: 40px;
    text-align: center;
    color: #666;
    font-family: italic;
    padding: 10px 20px;
    border-radius: 20px;
    border-left: 4px solid #BFA315;
    border-right: 4px solid #BFA315;
    font-size: 20px;
}

.cta-section {
    text-align: center;
    margin-top: 50px;
}

.cta-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.cta-button {
    display: inline-block;
    background-color: #BFA315;
    color: #333;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0b300;
}

@media (max-width: 992px) {
    hr {
        display: none;
    }
    .info-page {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .info-page > div {
        max-width: 100%;
        padding: 30px 20px;
        text-align: center;
    }

    .info-page img {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        margin-top: 30px;
        font-size: 16px;
    }

    hr {
        width: 90%;
    }

    .info-page h1 {
        font-size: 28px;
    }

    .info-page p {
        font-size: 16px;
    }

    .info-page img {
        display: none;
    }
        .page-title {
        font-size: 2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .work-process {
        padding: 20px;
    }

    .benefits-block {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .work-process,
    .text-block,
    .service-details {
        padding: 15px;
    }

    .cta-button {
        width: 100%;
        padding: 12px;
        font-size: 18px;
    }

    .ipoteka__footer-text {
        font-size: 16px;
        padding: 8px 15px;
    }
}

