/* Подключение мягкого округлого шрифта Nunito */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    /* Спокойная палитра */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #eff6ff;
    
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --accent-green-light: #ecfdf5;

    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* Мягкие закругления */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Плавные тени */
    --shadow-soft: 0 4px 20px -2px rgba(37, 99, 235, 0.08);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Общий контейнер */
.container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

section {
    padding: 32px 0;
}

/* Заголовки */
h1, h2, h3 {
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
}

.section-title {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 20px;
}

/* -----------------------------------
   ШАПКА (HEADER)
----------------------------------- */
.header {
    background-color: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
	transition: transform 0.3s ease-in-out;
}

/* Класс, который будет скрывать шапку */
.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-blue-dark);
}

.logo-slogan {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Навигация скрыта на мобильных для упрощения восприятия */
.nav {
    display: none;
}

.header-contact {
    text-align: right;
}

.phone {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-decoration: none;
    background: var(--primary-blue-light);
    padding: 8px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.working-hours {
    display: none;
}

/* -----------------------------------
   HERO БЛОК (МОБИЛЬНЫЙ УПОР)
----------------------------------- */
.hero {
    background: linear-gradient(180deg, var(--primary-blue-light) 0%, var(--bg-light) 100%);
    padding: 24px 0;
}

.hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.master-highlight {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero-benefits {
    list-style: none;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-benefits li {
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

/* Кнопка */
.btn-submit, .btn-hero-trigger {
    width: 100%;
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-submit:active {
    transform: scale(0.98);
    background: var(--primary-blue-dark);
}


/* Стили для карточки Авито в блок Hero */
.hero-master-pc {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avito-profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    max-width: 360px;
    width: 100%;
    transition: transform 0.3s ease;
}

.avito-profile-card:hover {
    transform: translateY(-4px);
}

.avito-profile-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Добавляем отступ для мобильной версии, чтобы контент не накладывался на кнопку */
@media (max-width: 767px) {
    .hero-content {
        margin-bottom: 24px; /* Создает воздушный отступ перед следующим блоком или кнопкой */
    }
    
    /* Если карточка Авито находится прямо под текстом в hero */
    .hero-master-pc {
        margin-top: 20px;
        margin-bottom: 16px;
    }
}

.master-quote {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.master-status {
    display: inline-block;
    background: var(--accent-green-light);
    color: var(--accent-green-dark);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* -----------------------------------
   ПРАЙС-ЛИСТ
----------------------------------- */
.btn-submit, .btn-hero-trigger, .btn-price-trigger {
    display: block;
    width: 100%;
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none; /* Убирает подчеркивание у ссылки */
}
.prices-section {
    background-color: var(--bg-light);
    padding: 32px 0;
}

.price-bg-card {
    /* Вместо 'tv-bg.jpg' укажите название вашей картинки телевизора/техники */
    background-image: url('1.jpg'); 
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.price-bg-overlay {
    /* Плотное темное затемнение поверх картинки для читаемости текста */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.95) 100%);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-card-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    text-align: left;
    margin-bottom: 4px;
}

.price-rows-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-row-card {
    background: rgba(255, 255, 255, 0.05); /* Полупрозрачный фон строки */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.service-row-card:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-blue);
}

.service-name {
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.price-badge {
    background: rgba(16, 185, 129, 0.15); /* Зеленоватый полупрозрачный фон */
    color: #34d399; /* Мягкий неоново-зеленый текст */
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.price-badge.free {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.btn-price-trigger {
    margin-top: 8px;
    background: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.price-info-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0 8px;
    line-height: 1.4;
}

/* -----------------------------------
   ОТЗЫВЫ (ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ НА МОБ)
----------------------------------- */
.reviews-section {
    background: var(--bg-light);
}

.slider-container {
    overflow-x: auto;
    padding-bottom: 12px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.avito-grid {
    display: flex;
    gap: 12px;
    width: max-content;
}

.avito-card {
    background: var(--bg-card);
    width: 280px;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.avito-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.avito-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.avito-info strong {
    font-size: 0.85rem;
    display: block;
}

.stars {
    color: #10b981; /* Зеленый вместо желтого для звездочек */
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.avito-text {
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.avito-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* -----------------------------------
   РАЙОНЫ ВЫЕЗДА
----------------------------------- */
.district-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.district-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.district-item:active {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.seo-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* -----------------------------------
   FAQ (АККОРДЕОН)
----------------------------------- */
.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 0.9rem;
    font-weight: 700;
}

.faq-toggle {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.faq-answer {
    display: none;
    padding: 0 16px 14px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--bg-light);
}

.faq-item.active .faq-answer {
    display: block;
}

/* -----------------------------------
   ПОДВАЛ (FOOTER)
----------------------------------- */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0 20px 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.footer-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-about .logo {
    margin-bottom: 8px;
    font-weight: 800;
}

.footer-about p {
    font-size: 0.8rem;
}

.footer-links, .footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links h4, .footer-contacts h4 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-phone {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-bottom {
    font-size: 0.75rem !important;
}

/* -----------------------------------
   АДАПТИВ ДЛЯ ПЛАНШЕТОВ И ПК (ОПЦИОНАЛЬНО)
----------------------------------- */
@media (min-width: 768px) {
    .nav {
        display: flex ;
        gap: 20px;
    }
    
    .nav a {
        text-decoration: none;
        color: var(--text-main);
        font-weight: 700;
    }

    .working-hours {
        display: block;
        font-size: 0.75rem;
        color: var(--text-muted);
    }

    .hero-container {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 30px;
        align-items: center;
    }

    .hero-master-pc {
        margin-top: 0;
    }

    .avito-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .avito-card {
        width: auto;
    }

    .footer-flex {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* -----------------------------------
   ШАПКА (HEADER) — МОБИЛЬНАЯ ВЕРСИЯ
----------------------------------- */
.header {
    background-color: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    flex-direction: column; /* Выстраиваем всё строго друг под другом */
    align-items: center;    /* Центрируем по горизонтали */
    text-align: center;
    gap: 12px;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    width: 100%;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-blue-dark);
}

.logo-slogan {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Навигация (меню по центру в строку с прокруткой) */
.nav {
    display: flex !important;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    justify-content: center; /* Центрируем пункты меню */
    padding-bottom: 4px;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.nav a:active, .nav a:focus {
    color: var(--primary-blue);
    background: var(--primary-blue-light);
}

/* Блок контактов в шапке (по центру, кнопка на всю ширину экрана) */
.header-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.phone {
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffffff !important;
    text-decoration: none;
    background: var(--primary-blue); /* Делаем кнопку телефона яркой и заметной */
    padding: 12px 16px;
    border-radius: var(--radius-full);
    display: block;
    width: 100%;            /* Строго по размеру контейнера/экрана */
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    text-align: center;
}

/* Возвращаем надпись под номером */
.working-hours {
    display: block !important;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}


/* -----------------------------------
   ФОРМА ДОБАВЛЕНИЯ ОТЗЫВА
----------------------------------- */
.add-review-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    margin-top: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.add-review-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 16px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    background: var(--bg-light);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #fff;
}

/* Выбор рейтинга звездочками */
.rating-select {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    font-size: 1.6rem;
}

.rating-select input {
    display: none;
}

.rating-select label {
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-select input:checked ~ label,
.rating-select label:hover,
.rating-select label:hover ~ label {
    color: var(--accent-green); /* Использование зеленой гаммы */
}

/* Загрузка файла/фото */
.file-upload-input {
    display: none;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px dashed var(--primary-blue);
    transition: background 0.2s ease;
}

.file-upload-label:active {
    background: #dbeafe;
}

.file-name-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-review-submit {
    margin-top: 6px;
    padding: 14px 20px;
    font-size: 1rem;
}

.form-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Сообщение об успешной отправке */
.review-success {
    text-align: center;
    padding: 20px 10px;
    color: var(--accent-green-dark);
}

.review-success i {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 10px;
}

.review-success p {
    font-size: 0.95rem;
    line-height: 1.4;
}