/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    -webkit-tap-highlight-color: transparent; /* Убирает подсветку при клике на мобильных */
}

html {
    -webkit-text-size-adjust: 100%; /* Предотвращает автоматическое изменение размера текста на iOS */
    -ms-text-size-adjust: 100%;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Улучшает читаемость текста на мобильных */
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Предотвращает горизонтальную прокрутку */
}

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

/* Верхняя строка с фиксированным позиционированием */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.status-indicator {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.blinking-button {
    width: 12px;
    height: 12px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.online-text {
    font-size: 12px;
    color: #666;
}

.call-section {
    display: flex;
    align-items: center;
}

.call-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 15px;
    font-weight: bold;
    transition: background-color 0.3s;
    touch-action: manipulation; /* Улучшает отзывчивость на мобильных */
    -webkit-tap-highlight-color: transparent;
}

.call-button:hover {
    background-color: #45a049;
}

.call-button:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.phone-number {
    font-weight: bold;
    color: #333;
}

/* Основной контент */
.main-content {
    margin-top: 70px;
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 20px;
    padding: 20px 0;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Секции */
.section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

/* О мастере */
.about-master {
    display: flex;
    gap: 20px;
}

.master-photo {
    width: 200px;
    height: 200px;
    background-color: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.master-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.master-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.stat-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 10px;
}

.master-badges {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    flex: 1;
    font-size: 12px;
}

.badge-icon {
    font-size: 14px;
    margin-bottom: 3px;
}

.master-description {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.models-list {
    margin-top: 10px;
    font-size: 14px;
}

/* Галерея работ */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-photo-container {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.main-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
    opacity: 1;
}

.main-photo-container img[loading="lazy"] {
    opacity: 0;
}

.main-photo-container img[loading="lazy"].loaded {
    opacity: 1;
}

.other-photos {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.photo-thumb {
    width: 80px;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
    border: 2px solid transparent;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-thumb:hover {
    transform: scale(1.05);
}

.photo-thumb:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.photo-thumb.active {
    border-color: #4CAF50;
}

/* Прайс-лист */
.price-list {
    list-style-type: none;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    white-space: normal;
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    flex: 1;
    white-space: normal;
    word-wrap: break-word;
    padding-right: 10px;
}

.price-dots {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 10px;
}

.price-value {
    font-weight: bold;
    color: #2c3e50;
    flex-shrink: 0;
}

/* Информационный блок */
.info-block {
    text-align: center;
    padding: 20px;
}

.average-check {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.call-master-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0;
    width: 100%;
    transition: background-color 0.3s;
}

.call-master-btn:hover {
    background-color: #45a049;
}

.call-master-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.availability {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.green-check {
    width: 16px;
    height: 16px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
}

.info-phone {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
}

/* Отзывы */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviews-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.rating-stars {
    color: #FFC107;
    font-size: 18px;
}

.reviews-count {
    font-size: 14px;
    color: #666;
}

.add-review-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.add-review-btn:hover {
    background-color: #45a049;
}

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

.review {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
}


.client-photo {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    border: 2px solid #ddd;
    overflow: hidden;
}

.client-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating {
    color: #FFC107;
}

.review-time {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.review-service {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 3px;
}

.review-text {
    line-height: 1.5;
    margin-top: 8px;
}

/* Форма обратной связи */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    -webkit-appearance: none; /* Убирает стили по умолчанию на iOS */
    appearance: none;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    touch-action: manipulation; /* Улучшает отзывчивость на мобильных */
    -webkit-tap-highlight-color: transparent;
    width: 100%; /* На мобильных кнопка на всю ширину */
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: slideUp 0.3s ease;
    margin: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.close-modal:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Яркое модальное окно */
.colorful-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.colorful-modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

.colorful-modal-content {
    background: linear-gradient(135deg, #4CAF50, #2c3e50);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    color: white;
    text-align: center;
    animation: slideUp 0.3s ease;
    margin: auto;
}

.colorful-modal h2 {
    color: white;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    margin-bottom: 20px;
    font-size: 24px;
}

.colorful-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.colorful-close-modal:hover {
    opacity: 0.8;
}

.colorful-close-modal:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    border-radius: 4px;
}

.colorful-form .form-group input {
    border: 1px solid rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.1);
    color: white;
    padding: 12px;
    font-size: 16px;
}

.colorful-form .form-group input::placeholder {
    color: rgba(255,255,255,0.7);
}

.colorful-form .submit-btn {
    background-color: white;
    color: #2c3e50;
    font-weight: bold;
    padding: 14px;
    font-size: 18px;
    border-radius: 6px;
    margin-top: 10px;
}

.urgent-call {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Футер */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.footer-links a:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        margin-top: 20px; /* Уменьшен, так как отступ теперь у контейнера */
    }
    
    .top-bar {
        padding: 6px 0; /* Уменьшено для компактности */
    }
    
    .container {
        margin-top: 65px; /* Отступ для всего контента, чтобы фиолетовый баннер не перекрывался */
        padding-top: 0;
    }
    
    .section:first-of-type {
        margin-top: 0;
    }
    
    /* Стили для фиолетового баннера (H1) на мобильных */
    .container > div:first-child {
        margin-top: 0 !important; /* Убран верхний отступ */
        margin-bottom: 15px !important; /* Уменьшен нижний отступ */
        padding: 12px 15px !important; /* Уменьшен padding */
    }
    
    .container > div:first-child h1 {
        font-size: 20px !important; /* Уменьшен размер H1 */
        line-height: 1.3 !important;
    }
    
    .container > div:first-child p {
        font-size: 14px !important; /* Уменьшен размер текста */
        margin-top: 8px !important;
    }
    
    .top-bar-content {
        flex-direction: row; /* Горизонтально для компактности */
        gap: 6px;
        padding: 4px 10px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .name {
        font-size: 14px; /* Уменьшен размер шрифта */
        line-height: 1.2;
    }
    
    .status-indicator {
        margin-right: 6px;
    }
    
    .online-text {
        font-size: 10px; /* Уменьшен размер текста "сейчас на сайте" */
    }
    
    .call-section {
        margin-top: 0;
        flex-direction: row;
        gap: 5px;
        align-items: center;
    }
    
    .call-button {
        margin-right: 0;
        padding: 5px 10px;
        font-size: 12px; /* Уменьшен размер кнопки */
        white-space: nowrap;
    }
    
    .phone-number {
        font-size: 12px; /* Уменьшен размер номера телефона */
    }
    
    .about-master {
        flex-direction: column;
    }
    
    .master-photo {
        width: 100%;
        max-width: 300px;
        height: 250px;
        align-self: center;
    }
    
    .master-badges {
        flex-direction: column;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .review {
        flex-direction: column;
    }
    
    .client-photo {
        align-self: flex-start;
    }
    
    /* Удаление блока 2 (галереи работ) в мобильной версии */
    .section:nth-child(2) {
        display: none;
    }
    
    /* Отображение блока с отзывами в мобильной версии */
    .reviews-section {
        display: block !important;
    }
    
    /* Отображение всех отзывов в мобильной версии */
    .reviews {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }
    
    .price-list {
        font-size: 14px;
    }
    
    .price-item {
        flex-wrap: wrap;
        white-space: normal;
    }
    
    .price-dots {
        display: none;
    }
    
    .price-name, .price-value {
        flex: 100%;
    }
    
    .price-value {
        margin-top: 5px;
        text-align: right;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .footer-links a {
        display: block;
        text-align: center;
        padding: 12px;
    }
    
    .social-proof-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-box {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .work-process {
        gap: 15px;
    }
    
    .process-step {
        padding: 12px;
    }
    
    .step-content h3 {
        font-size: 17px;
    }
    
    .step-content p {
        font-size: 14px;
    }
    
    .faq-question {
        padding: 12px;
        font-size: 15px;
    }
    
    .faq-answer {
        font-size: 14px;
    }
    
    .case-item {
        padding: 15px;
    }
    
    .case-content h3 {
        font-size: 17px;
    }
    
    .case-content p {
        font-size: 14px;
    }
    
    .modal-content,
    .colorful-modal-content {
        width: 90%;
        max-width: none;
        padding: 25px;
    }
    
    .colorful-modal h2 {
        font-size: 22px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
}

/* Планшеты (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-proof-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-content,
    .colorful-modal-content {
        max-width: 500px;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .section {
        padding: 15px;
    }
    
    .master-photo {
        height: 200px;
    }
    
    .main-photo-container {
        height: 200px;
    }
    
    .stat-item {
        font-size: 13px;
    }
    
    .stat-icon {
        width: 14px;
        height: 14px;
    }
    
    .other-photos {
        gap: 5px;
    }
    
    .photo-thumb {
        width: 60px;
        height: 45px;
        font-size: 10px;
    }
    
    .price-list {
        font-size: 13px;
    }
    
    .footer-links a {
        padding: 10px;
        font-size: 14px;
    }
    
    .social-proof-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-box {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .work-process {
        gap: 15px;
    }
    
    .process-step {
        flex-direction: column;
        text-align: left;
        padding: 15px;
        gap: 15px;
    }
    
    .step-number {
        margin: 0 auto 10px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .step-content h3 {
        font-size: 17px;
        padding-left: 0;
    }
    
    .step-content h3::before {
        display: none; /* Скрываем галочку на мобильных для экономии места */
    }
    
    .step-content p {
        font-size: 14px;
        padding-left: 0;
    }
    
    .faq-list {
        gap: 15px;
    }
    
    .faq-item {
        margin-bottom: 0;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 15px;
    }
    
    .faq-answer {
        font-size: 14px;
        padding: 0 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px;
    }
    
    .process-step {
        padding: 12px;
    }
    
    .step-content h3 {
        font-size: 15px;
        padding-left: 0;
    }
    
    .step-content h3::before {
        display: none;
    }
    
    .step-content p {
        font-size: 12px;
        padding-left: 0;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .case-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .case-icon {
        margin: 0 auto;
        font-size: 28px;
    }
    
    .case-content h3 {
        font-size: 16px;
    }
    
    .case-content p {
        font-size: 13px;
    }
    
    .modal-content,
    .colorful-modal-content {
        width: 95%;
        max-width: none;
        padding: 20px;
        margin: 10px;
    }
    
    .colorful-modal h2 {
        font-size: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .floating-call-btn {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }
    
    h1 {
        font-size: 20px !important;
    }
    
    h2,
    .section h2 {
        font-size: 18px;
    }
}

/* Стили для мобильной версии блока отзывов */
.mobile-reviews {
    display: none;
}

@media (max-width: 768px) {
    .desktop-reviews {
        display: none;
    }
    
    .mobile-reviews {
        display: block;
    }
    
    .mobile-reviews .section {
        margin-bottom: 20px;
    }
}

/* Скрытие модального окна при закрытии */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Анимация пульсации для кнопки */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Социальное доказательство - счетчики */
.social-proof-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Процесс работы */
.work-process {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border-left: 5px solid #4CAF50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #4CAF50 0%, #45a049 100%);
    transition: width 0.3s ease;
}

.process-step:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
}

.process-step:hover::before {
    width: 8px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 30px;
}

.step-content h3::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 18px;
    font-weight: bold;
}

.step-content p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    padding-left: 30px;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Увеличен отступ между вопросами */
}

.faq-item {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 5px; /* Дополнительный отступ снизу */
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: #4CAF50;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
}

.faq-question {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 18px 20px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border-bottom: 1px solid transparent;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f0f8f0 0%, #f8f9fa 100%);
    color: #4CAF50;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #f0f8f0 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
    color: #4CAF50;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #4CAF50;
    font-weight: bold;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
    opacity: 0;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px;
    opacity: 1;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-step,
.faq-item {
    animation: fadeInUp 0.5s ease forwards;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

/* Улучшенные стили для форм */
.contact-form {
    position: relative;
}

.form-group input:focus {
    transform: scale(1.02);
    transition: transform 0.2s;
}

/* Кейсы успеха */
.success-cases {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    transition: transform 0.2s, box-shadow 0.2s;
}

.case-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.case-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.case-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.case-content p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.case-content strong {
    color: #2c3e50;
}

/* Плавающая кнопка звонка для мобильных - базовые стили */
.floating-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
    cursor: pointer;
    display: none; /* Скрыта по умолчанию */
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .floating-call-btn {
        display: flex; /* Показываем только на мобильных */
    }
    
    h1 {
        font-size: 24px !important;
    }
}

/* Очень маленькие экраны (320px - 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 8px;
    }
    
    .section {
        padding: 12px;
    }
    
    .top-bar-content {
        padding: 5px 10px;
    }
    
    .name {
        font-size: 14px;
    }
    
    .call-button {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .master-photo {
        height: 180px;
    }
    
    .main-photo-container {
        height: 180px;
    }
    
    .stat-box {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .process-step {
        padding: 10px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .step-content h3 {
        font-size: 15px;
    }
    
    .step-content p {
        font-size: 12px;
    }
    
    .faq-question {
        padding: 10px;
        font-size: 13px;
    }
    
    .faq-answer {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .faq-item.active .faq-answer {
        padding: 10px;
    }
    
    .case-item {
        padding: 12px;
    }
    
    .case-icon {
        font-size: 24px;
    }
    
    .case-content h3 {
        font-size: 15px;
    }
    
    .case-content p {
        font-size: 12px;
    }
    
    .modal-content,
    .colorful-modal-content {
        width: 98%;
        padding: 15px;
        margin: 5px;
    }
    
    .colorful-modal h2 {
        font-size: 18px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .submit-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .floating-call-btn {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
        font-size: 20px;
    }
    
    h1 {
        font-size: 18px !important;
    }
    
    h2,
    .section h2 {
        font-size: 16px;
    }
    
    .price-list {
        font-size: 12px;
    }
    
    .review {
        padding: 12px;
    }
    
    .client-photo {
        width: 50px;
        height: 50px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .main-content {
        margin-top: 50px;
    }
    
    .master-photo {
        height: 200px;
    }
    
    .main-photo-container {
        height: 200px;
    }
    
    .floating-call-btn {
        bottom: 15px;
        right: 15px;
    }
}

/* Стили для живых отзывов */
.live-review {
    animation: slideInReview 0.5s ease forwards;
}

@keyframes slideInReview {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.new-review-indicator {
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-10px);
    }
    50% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

