/* =========================================== */
/* ALMAZNOE-BURENIE.SITE - FULL RESPONSIVE CSS */
/* =========================================== */

/* 1. RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Основные цвета */
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #3498db;
    --secondary-dark: #2980b9;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gray-color: #7f8c8d;
    --light-gray: #ecf0f1;
    --text-color: #333333;
    --white: #ffffff;
    --black: #000000;
    
    /* Тени и эффекты */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
    
    /* Скругления */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-round: 50%;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Максимальные ширины */
    --max-width-sm: 576px;
    --max-width-md: 768px;
    --max-width-lg: 992px;
    --max-width-xl: 1200px;
    --max-width-xxl: 1400px;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. CONTAINER SYSTEM */
.container {
    width: 100%;
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* 4. HEADER & NAVIGATION */
/* Верхняя контактная строка */
.header-top {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-top {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-top a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.contact-top a:hover {
    color: var(--primary-color);
}

.work-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Основной хедер */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    margin-top: 38px;
}

.header-main {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary-color);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-main {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-header {
    display: flex;
    gap: 0.5rem;
}

.social-header a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-normal);
}

.whatsapp-header {
    background-color: #25D366;
}

.telegram-header {
    background-color: #0088cc;
}

.social-header a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Кнопка меню для мобильных */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
    background-color: var(--light-gray);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.menu-toggle span:not(:last-child) {
    margin-bottom: 0.375rem;
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Основная навигация */
.nav {
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
    padding: 0;
}

.nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav a {
    display: block;
    padding: 1rem 0;
    color: var(--dark-color);
    font-weight: 600;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    position: relative;
    transition: color var(--transition-fast);
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a.active {
    color: var(--primary-color);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
}

/* 5. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    line-height: 1.4;
}

.btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* 6. HERO SECTIONS */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1577223625818-75bc1f2ac0e5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') no-repeat center/cover;
    color: var(--white);
    padding: clamp(6rem, 15vw, 10rem) 1rem clamp(4rem, 10vw, 6rem);
    margin-top: 140px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.feature i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Page Hero для внутренних страниц */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') no-repeat center/cover;
    color: var(--white);
    padding: clamp(5rem, 12vw, 8rem) 1rem clamp(3rem, 8vw, 5rem);
    margin-top: 140px;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

/* 7. SECTIONS */
.section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 8. SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-content {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-content .btn {
    margin-top: auto;
    align-self: center;
}

/* 9. ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.advantages {
    margin-top: 2rem;
}

.advantage {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.advantage i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.advantage h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.advantage p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* 10. WORK AREA SECTION */
.work-area {
    background-color: var(--light-color);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.city {
    background-color: var(--white);
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: default;
}

.city:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 11. CONTACT FORM SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 3rem;
    height: 3rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background-color: var(--white);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--light-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background-color: var(--white);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-color);
    text-align: center;
}

/* 12. MAP SECTION */
.map-section {
    padding-top: 0;
}

.map-container {
    height: clamp(300px, 50vw, 400px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--gray-color);
    padding: 2rem;
    text-align: center;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 13. PAGE CONTENT (внутренние страницы) */
.page-content {
    padding: 140px 0 3rem;
}

.content-block {
    margin: clamp(2rem, 4vw, 3rem) 0;
}

.content-block h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
}

.content-block h3 {
    margin: 2rem 0 1rem;
    color: var(--dark-color);
}

.content-block ul,
.content-block ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Таблицы цен */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.price-table th {
    background-color: var(--dark-color);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-table tr:hover {
    background-color: var(--light-color);
}

.price-table .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.125rem;
    text-align: right;
}

/* Call to Action блок */
.call-to-action {
    text-align: center;
    background-color: var(--light-color);
    padding: clamp(2rem, 5vw, 4rem);
    margin: clamp(2rem, 5vw, 4rem) 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.call-to-action h2 {
    margin-bottom: 1rem;
}

.call-to-action p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--gray-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 14. FOOTER */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: clamp(3rem, 6vw, 4rem) 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
}

.footer-column h3,
.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contacts i {
    color: var(--primary-color);
    width: 20px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* 15. UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* 16. RESPONSIVE BREAKPOINTS */

/* Большие экраны (от 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--max-width-xl);
    }
}

/* Десктоп (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .nav ul {
        gap: 1.5rem;
    }
}

/* Планшеты (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Скрываем верхнюю контактную строку на планшетах */
    .header-top {
        display: none;
    }
    
    .header {
        margin-top: 0;
    }
    
    /* Меню становится бургером */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
        z-index: 999;
    }
    
    .nav.active {
        max-height: 500px;
        padding: 1rem 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 1rem;
    }
    
    .nav li {
        width: 100%;
    }
    
    .nav a {
        padding: 1rem;
        border-radius: var(--radius-sm);
        margin-bottom: 0.25rem;
    }
    
    .nav a:hover {
        background-color: var(--light-color);
    }
    
    .nav a.active::after {
        display: none;
    }
    
    .nav a.active {
        background-color: var(--primary-color);
        color: var(--white);
    }
    
    /* Герой-секции */
    .hero,
    .page-hero {
        margin-top: 80px;
        padding: 4rem 1rem 3rem;
    }
    
    /* Контактная форма в один столбец */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Футер в 2 колонки */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобильные (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1.5rem;
    }
    
    /* Хедер компактный */
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .menu-toggle {
        order: 2;
    }
    
    .header-contacts {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--light-gray);
    }
    
    .phone-main span:first-child {
        display: none;
    }
    
    .phone-main::before {
        content: 'Позвонить';
    }
    
    /* Кнопки в столбик */
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Особенности в столбик */
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Сервисы в один столбец */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* О нас в один столбец */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    /* Города в 2 колонки */
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Цены - горизонтальный скролл */
    .price-table-wrapper {
        overflow-x: auto;
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
    }
    
    .price-table {
        min-width: 600px;
    }
    
    /* Футер в один столбец */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Контактные элементы в столбик */
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-item i {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Маленькие мобильные (до 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Ещё более компактный хедер */
    .phone-main {
        font-size: 0.875rem;
    }
    
    .phone-main::before {
        content: 'Тел';
    }
    
    .social-header a {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    /* Герой-секции */
    .hero h1,
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Сервис-иконки меньше */
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Города в один столбец */
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .city {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Преимущества в столбик */
    .advantage {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Форма */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    /* Карта меньше */
    .map-container {
        height: 250px;
    }
    
    /* Футер меньше */
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* Очень маленькие экраны (до 320px) */
@media (max-width: 320px) {
    /* Минимальные отступы */
    .section {
        padding: 2rem 0;
    }
    
    .hero,
    .page-hero {
        padding: 3rem 1rem 2rem;
    }
    
    .service-content {
        padding: 0 1rem 1rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* 17. PRINT STYLES */
@media print {
    .header-top,
    .header,
    .footer,
    .menu-toggle,
    .social-header,
    .hero-buttons,
    .contact-form,
    .call-to-action,
    .map-container {
        display: none !important;
    }
    
    .hero,
    .page-hero {
        background: none !important;
        color: var(--black) !important;
        margin-top: 0 !important;
        padding: 1rem 0 !important;
    }
    
    .hero h1,
    .page-hero h1 {
        color: var(--black) !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: var(--black);
    }
    
    a {
        color: var(--black) !important;
        text-decoration: underline !important;
    }
    
    .btn {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* 18. ACCESSIBILITY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* 19. CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 20. ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease forwards;
}

/* 21. LOADING STATES */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 22. FORM VALIDATION STATES */
.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.success-message {
    color: #2ecc71;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* 23. MODAL & POPUP */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--dark-color);
}