/* CSS Variables */
:root {
    --primary-color: #0070c9;
    --secondary-color: #ff7875;
    --urgent-color: #ff4d4f;
    --success: #52c41a;
    --text-color: #333;
    --white: #fff;
    --light-bg: #f0f2f5;
}

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

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styling */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 35px;
    width: auto;
}

.header-info {
    display: flex;
    align-items: center;
}

.header-contacts {
    display: flex;
    align-items: center;

    justify-content: center;

    @media screen and (min-width: 768px) {
        gap: 65px;

    }
}

.phone-link {
    color: var(--urgent-color);
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.phone-link:hover {
    color: var(--primary-color);
}

.phone-link i {
    margin-right: 8px;
    font-size: 20px;
}

.header-address {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.header-address i {
    margin-right: 5px;
}

/* Hero Section */
.hero {
    padding: 20px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
}

h1 {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.hero-text {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.emergency-block {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--urgent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.emergency-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        gap: 10px;
    }
}

.emergency-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.emergency-title {
    font-size: 24px;
    color: var(--urgent-color);
    display: flex;
    align-items: center;
}

.emergency-title i {
    margin-right: 10px;
    font-size: 26px;
}

.emergency-text {
    font-size: 16px;
    line-height: 1.4;
}

.timer {
    background-color: #f8f8f8;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;

    font-size: 14px;
    display: inline-block;

    @media screen and (min-width: 768px) {
        margin-right: 20px;

    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background-color: var(--urgent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(255, 77, 79, 0.3);
    align-self: flex-end;
}

.cta-button:hover {
    background-color: #ff7875;
    transform: translateY(-3px);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button i {
    margin-right: 12px;
    font-size: 22px;
}

/* Features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 6px 10px;
    border-radius: 50px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    font-weight: 500;
    min-width: 140px;
    justify-content: center;
}

.feature i {
    color: var(--success);
    margin-right: 8px;
    font-size: 16px;
}

/* Services */
.services-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.service-image {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f8ff;
}

.service-image i {
    font-size: 36px;
    color: var(--primary-color);
}

.service-content {
    padding: 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    min-height: auto;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    min-height: auto;
    text-align: left;
    flex: 1;
}

.service-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.service-list li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #999;
}

.service-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: auto;
}

.service-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.service-btn i {
    margin-right: 8px;
}

/* Google Reviews Styling */
.google-reviews {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviews-title h3 {
    color: #673ab7;
    font-size: 16px;
    margin: 0 0 2px 0;
}

.reviews-title h2 {
    color: #1976d2;
    font-size: 22px;
    margin: 0;
    font-weight: 500;
}

.rating-summary {
    text-align: center;
}

.rating-label {
    font-weight: bold;
    font-size: 14px;
}

.rating-stars {
    color: #ffc107;
    font-size: 18px;
    margin: 4px 0;
}

.rating-count {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.google-logo img {
    height: 20px;
    width: auto;
}

.reviews-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
    scroll-behavior: smooth;
    padding: 2px;
    height: 150px;
    /* Уменьшенная фиксированная высота */
}

.reviews-slider::-webkit-scrollbar {
    height: 5px;
}

.reviews-slider::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.reviews-slider::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.review-card {
    flex: 0 0 260px;
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-weight: bold;
    font-size: 13px;
}

.review-date {
    font-size: 11px;
    color: #666;
}

.google-icon {
    margin-left: auto;
}

.review-rating {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.verified-icon {
    color: #1976d2;
    margin-left: 4px;
    font-size: 12px;
}

.review-text {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    flex: 1;
}

.read-more {
    color: #1976d2;
    font-size: 11px;
    margin-top: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s;
    align-self: flex-start;
}

.read-more:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.slider-prev,
.slider-next {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 14px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.slider-prev,
.slider-next {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 16px;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    border-radius: 15px;
    padding: 35px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-color);
}

#modal-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    top: 14px;
    left: 15px;
    color: #888;
}

.contact-form input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.2);
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button i {
    margin-right: 10px;
}

/* Mobile Buttons */
.mobile-buttons {
    position: fixed;
    bottom: 100px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 91;
    /* Увеличил z-index чтобы был выше чем у fixed-call-button */
}

.call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: var(--urgent-color);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    animation: pulse-float 2s infinite;
}

.call-button:hover {
    transform: scale(1.1);
}

.messenger-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.telegram-button,
.whatsapp-button,
.viber-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    animation: pulse-float 2s infinite;
    animation-delay: 0.3s;
}

.telegram-button {
    background-color: #0088cc;
}

.viber-button {
    background-color: #7360f2;
    animation-delay: 0.6s;
}

.whatsapp-button {
    background-color: #42b38b;
}

.telegram-button:hover,
.whatsapp-button:hover,
.viber-button:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: #333;
    color: var(--white);
    padding: 15px 0;
    padding-bottom: 100px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;


}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 14px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        gap: 10px;
    }
}

.footer-separator {
    color: #666;
    margin: 0 2px;

    @media screen and (max-width: 768px) {
        display: none;
    }
}

.footer-contacts a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contacts a:hover {
    color: var(--secondary-color);
}

/* Privacy Policy */
.privacy {
    color: #aaa;
    font-size: 14px;
}

/* Bottom Fixed Call Button */
.fixed-call-button {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    justify-content: center;
}

.fixed-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: var(--urgent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    animation: pulse-float 3s ease-in-out infinite;
    max-width: 320px;
    width: 90%;
}

@keyframes pulse-float {
    0% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

    30% {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    }

    70% {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    100% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
}

.fixed-call-btn:hover {
    background-color: #ff7875;
    transform: translateY(-3px);
}

.fixed-call-btn i {
    margin-right: 12px;
    font-size: 22px;
}

/* Добавляем необходимые стили для iOS совместимости */
@supports (-webkit-touch-callout: none) {

    /* CSS для устройств iOS */
    .fixed-call-button,
    .mobile-buttons {
        /* Фикс для iOS, предотвращает скрытие элементов за нижним интерфейсом */
        bottom: env(safe-area-inset-bottom, 20px);
    }
}

/* Дополнительный класс для предотвращения проблем с отображением */
.always-visible {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.hero-text {
    font-size: 16px;
}

.hero-features {
    flex-wrap: wrap;
}

.emergency-block {
    padding: 8px 15px;
}

.emergency-title {
    font-size: 22px;
}

.emergency-text {
    font-size: 16px;
}

.cta-button {
    padding: 12px 20px;
    font-size: 16px;

    @media screen and (max-width: 768px) {
        padding: 10px 15px;
        align-self: normal;

    }
}

.services-title {
    font-size: 22px;
}

.service-image {
    height: 80px;
}

.service-image i {
    font-size: 40px;
}

.reviews-header {
    flex-direction: column;
    align-items: center;
    gap: 15px;

    @media screen and (min-width: 768px) {
        gap: 10px;
        flex-direction: row;
        justify-content: space-around;

    }
}

.reviews-title {
    text-align: center;
}

.review-card {
    flex: 0 0 85%;
}

.fixed-call-btn {
    width: 90%;
    padding: 12px 20px;
    font-size: 18px;
}

@media (max-width: 576px) {
    .header-flex {
        flex-direction: column;
        gap: 8px;
    }

    .header-info {
        align-items: center;
    }

    .hero-features {
        gap: 10px;
    }

    .feature {
        font-size: 12px;
        padding: 8px 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-list {
        min-height: auto;
    }

    .emergency-image {
        display: none;
    }

    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
    }
}