/* extracted from view/locations.php — порядок блоков сохранён */

/* --- block 1 --- */
.service-locations {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
}

.service-locations:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.locations-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

.locations-text {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.locations-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #0F1114;
    position: relative;
    padding-bottom: 15px;
}

.locations-text h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #7a6a54;
}

.locations-text p {
    color: #333;
    margin-bottom: 20px;
}


.locations-benefits {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.locations-benefits:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: #7a6a54;
}

.locations-benefits h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #0F1114;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(154, 138, 120, 0.1);
}

.benefits-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(154, 138, 120, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 20px;
    height: 20px;
    stroke: #7a6a54;
}

.benefits-list li span:last-child {
    font-size: 1.05rem;
    color: #333;
}

.quote-button {
    display: inline-block;
    background-color: #0F1114;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
}

.quote-button:hover {
    background-color: #7a6a54;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .service-locations {
        padding: 60px 0;
    }
    
    .locations-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .locations-text {
        padding-right: 0;
    }
    
    .locations-text h2 {
        font-size: 2.2rem;
    }
    
    .locations-benefits h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .service-locations {
        padding: 50px 0;
    }
    
    .locations-text h2 {
        font-size: 1.8rem;
    }
    
    .locations-text p {
        font-size: 1rem;
    }
    
    .locations-benefits {
        padding: 30px 20px;
    }
    
    .benefits-list li {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .benefit-icon {
        width: 35px;
        height: 35px;
    }
    
    .benefit-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .benefits-list li span:last-child {
        font-size: 0.95rem;
    }
    
    .quote-button {
        width: 100%;
        padding: 12px 20px;
    }
}

/* --- block 2 --- */
.service-conclusion {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
}
/* 
.service-conclusion:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(154, 138, 120, 0.2), transparent);
} */

.conclusion-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
}

.conclusion-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    /* height: 400px; */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.conclusion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.conclusion-content:hover .conclusion-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.conclusion-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.conclusion-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #0F1114;
    position: relative;
    padding-bottom: 15px;
}

.conclusion-text h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #7a6a54;
}

.conclusion-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}

.conclusion-highlight {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background-color: rgba(154, 138, 120, 0.05);
    border-radius: 10px;
    border-left: 4px solid #7a6a54;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background-color: #7a6a54;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.highlight-text p {
    margin-bottom: 0;
    font-style: italic;
    color: #333;
}

.conclusion-cta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(154, 138, 120, 0.2);
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.phone-link,
.email-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #0F1114;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.phone-link svg,
.email-link svg {
    stroke: #7a6a54;
}

.phone-link:hover,
.email-link:hover {
    background-color: #7a6a54;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.phone-link:hover svg,
.email-link:hover svg {
    stroke: #ffffff;
}

@media (max-width: 991px) {
    .service-conclusion {
        padding: 60px 0;
    }
    
    .conclusion-content {
        flex-direction: column;
    }
    
    .conclusion-image {
        width: 100%;
        max-width: 100%;
        height: 350px;
        order: -1;
    }
    
    .conclusion-text h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .service-conclusion {
        padding: 50px 0;
    }
    
    .conclusion-image {
        height: 250px;
    }
    
    .conclusion-text {
        padding: 0;
    }
    
    .conclusion-text h3 {
        font-size: 1.6rem;
    }
    
    .conclusion-text p {
        font-size: 1rem;
    }
    
    .conclusion-highlight {
        padding: 20px;
        margin: 25px 0;
    }
    
    .highlight-icon {
        width: 35px;
        height: 35px;
    }
    
    .highlight-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .phone-link,
    .email-link {
        width: 100%;
        justify-content: center;
    }
}

/* --- block 3 --- */
.locations-title {
    margin-top:40px;
    margin-bottom:40px;
}

.button-loc {
    background: linear-gradient(135deg, #111111, #000000);
    padding: 50px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.button-loc::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 164, 92, 0.1) 0%, transparent 50%);
    animation: shimmer 15s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.button-loc h3 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 35px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #c8a45c, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: titleReveal 0.8s ease forwards;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(-20px);
        letter-spacing: 15px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 4px;
    }
}

.button-loc h3::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #c8a45c;
    margin: 15px auto 0;
    animation: lineGrow 1s ease forwards 0.5s;
}

@keyframes lineGrow {
    to { width: 50px; }
}

.button-loc .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    animation: rowFadeIn 0.8s ease forwards 0.3s;
}

@keyframes rowFadeIn {
    to { opacity: 1; }
}

.col-lg-6, 
.col-md-6 {
    flex: 1;
    min-width: 280px;
}

.button-loc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.citybutton {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 164, 92, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 15px;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.citybutton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shine 8s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.citybutton::after {
    content: '→';
    margin-left: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.citybutton:hover {
    border-color: #c8a45c;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(200, 164, 92, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 15px rgba(200, 164, 92, 0.2); }
    50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 25px rgba(200, 164, 92, 0.4); }
    100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 15px rgba(200, 164, 92, 0.2); }
}

.citybutton:hover::after {
    opacity: 1;
    transform: translateX(0);
    animation: arrowBounce 1s infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.button-loc li {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFade 0.5s ease forwards;
}

@keyframes staggerFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-loc li:nth-child(1) { animation-delay: 0.1s; }
.button-loc li:nth-child(2) { animation-delay: 0.2s; }
.button-loc li:nth-child(3) { animation-delay: 0.3s; }
.button-loc li:nth-child(4) { animation-delay: 0.4s; }
.button-loc li:nth-child(5) { animation-delay: 0.5s; }

.button-loc::-webkit-scrollbar {
    width: 8px;
}

.button-loc::-webkit-scrollbar-track {
    background: #000000;
}

.button-loc::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c8a45c, #8b713e);
    border-radius: 4px;
    animation: scrollGlow 2s infinite;
}

@keyframes scrollGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(200, 164, 92, 0.3); }
    50% { box-shadow: 0 0 10px rgba(200, 164, 92, 0.5); }
}

@media (max-width: 768px) {
    .button-loc {
        padding: 30px 0;
    }

    .container {
        padding: 0 20px;
    }

    .button-loc h3 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .row {
        gap: 15px;
    }

    .citybutton {
        padding: 14px 18px;
        margin: 0px 0 0px !important;
    }
}
