/**
 * Auto Content Generator Styles
 * Modern design matching the provided city page template
 * Color scheme: Blue, White, Light Gray, Dark Gray
 */

/* Global overflow prevention */
html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent images and media from causing overflow */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Prevent tables from causing overflow */
table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
}

/* Ensure all grid and flex containers respect boundaries */
.acg-city-page > *,
.acg-service-page > * {
    max-width: 100%;
    overflow-x: hidden;
}

/* Reset and Base Styles */
.acg-city-page,
.acg-service-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Убеждаемся, что все секции на странице сервисов имеют растягивающийся фон */
.acg-service-page .acg-section {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Убеждаемся, что все секции на странице города имеют растягивающийся фон */
.acg-city-page .acg-section {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.acg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.acg-hero {
    position: relative;
    /* Fallback градиент, если нет фонового изображения */
    background: linear-gradient(135deg, rgba(30, 60, 120, 0.9) 0%, rgba(50, 80, 150, 0.9) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 180px 0;
    text-align: center;
    margin-bottom: 60px;
    min-height: 800px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Если есть фоновое изображение, оно будет применено через inline style */
}

/* Темный оверлей для лучшей читаемости текста поверх изображения */
.acg-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Темный полупрозрачный оверлей */
    z-index: 1;
}

.acg-hero .acg-container {
    position: relative;
    z-index: 2;
}

.acg-hero-title {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.acg-hero-description {
    font-size: 1.2em;
    margin: 0 0 20px 0;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Local Context Section (after Hero) */
.acg-local-context-section {
    background: #f8f9fa;
    padding: 40px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-local-context-section .acg-container {
    padding: 0 40px;
}

.acg-local-context {
    font-size: 1.1em;
    line-height: 1.8;
    color: #2c3e50;
    max-width: 900px;
    margin: 0 auto;
}

.acg-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.acg-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.acg-button-primary {
    background: #4a90e2;
    color: white;
}

.acg-button-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
    color: white;
}

.acg-button-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.acg-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    color: white;
}

/* Sections */
.acg-section {
    background: white;
    padding: 60px 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.acg-section .acg-container {
    padding: 0 40px;
}

/* Убираем визуальные дырки между секциями */
.acg-section + .acg-section {
    margin-top: 0;
    padding-top: 0;
}

.acg-section-title {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.acg-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4a90e2;
    border-radius: 2px;
}

.acg-section-description {
    color: #7f8c8d;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.acg-services-section {
    background: white;
    padding: 60px 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-services-section .acg-container {
    padding: 0 40px;
}

/* Services Grid */
.acg-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 4 колонки на десктопе (1200px+) */
@media (min-width: 1200px) {
    .acg-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 4 колонки на больших и средних экранах (768px+) */
@media (min-width: 768px) and (max-width: 1199px) {
    .acg-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2 колонки на маленьких планшетах */
@media (min-width: 480px) and (max-width: 767px) {
    .acg-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 колонка на мобильных */
@media (max-width: 479px) {
    .acg-services-grid {
        grid-template-columns: 1fr;
    }
}

.acg-service-card {
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.acg-service-icon {
    width: 70px;
    height: 70px;
    background: #4a90e2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    flex-shrink: 0;
}

.acg-service-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.25em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.acg-service-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.acg-service-card h3 a:hover {
    color: #4a90e2;
}

.acg-service-card p {
    color: #666;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    flex-grow: 1;
}

/* Service Areas Section */
.acg-service-areas-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-service-areas-section .acg-container {
    padding: 0 40px;
}

.acg-service-areas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Адаптивность для Service Areas */
/* На средних экранах карта справа, города слева */
@media (min-width: 768px) and (max-width: 1199px) {
    .acg-service-areas-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .acg-service-areas-content {
        grid-template-columns: 1fr;
    }
    
    .acg-service-areas-map {
        order: -1; /* Карта сверху на мобильных */
    }
}

.acg-service-areas-lists {
    display: flex;
    flex-direction: column;
}

.acg-service-areas-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .acg-service-areas-columns {
        grid-template-columns: 1fr;
    }
}

.acg-service-areas-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.acg-service-areas-region {
    background: white;
    padding: 15px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.acg-service-areas-region-title {
    font-size: 1em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a90e2;
}

.acg-service-areas-cities {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 15px;
    column-gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* На мобильных - одна колонка */
@media (max-width: 480px) {
    .acg-service-areas-cities {
        grid-template-columns: 1fr;
    }
}

.acg-service-areas-cities li {
    padding: 3px 0;
    color: #555;
    font-size: 0.9em;
    border-bottom: none;
    line-height: 1.4;
}

.acg-service-areas-cities li::before {
    content: "•";
    color: #4a90e2;
    font-weight: bold;
    display: inline-block;
    width: 0.8em;
    margin-right: 6px;
}

.acg-service-areas-cities li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.acg-service-areas-cities li a:hover {
    color: #4a90e2;
    text-decoration: underline;
}

.acg-service-areas-map {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.acg-service-areas-map iframe {
    width: 100%;
    max-width: 100%;
    height: 450px;
    border: none;
    display: block;
    box-sizing: border-box;
}

.acg-service-areas-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.95em;
}

.acg-service-areas-footer a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.acg-service-areas-footer a:hover {
    text-decoration: underline;
}

.acg-service-areas-list {
    color: #555;
    font-size: 1.05em;
    line-height: 1.8;
}

.acg-service-areas-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.acg-service-areas-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.acg-service-areas-list li:last-child {
    border-bottom: none;
}

/* Testimonials Section */
.acg-testimonials-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-testimonials-section .acg-container {
    padding: 0 40px;
}

.acg-testimonials-carousel-wrapper {
    margin-top: 40px;
    position: relative;
}

.acg-testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* На средних экранах (планшеты) - также 2 колонки */
@media (min-width: 768px) and (max-width: 1199px) {
    .acg-testimonials-carousel {
        grid-template-columns: repeat(2, 1fr);
        min-height: 400px;
    }
}

/* На мобильных - одна колонка */
@media (max-width: 767px) {
    .acg-testimonials-carousel {
        grid-template-columns: 1fr;
        min-height: 350px;
    }
}

.acg-testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    grid-column: span 1;
}

.acg-testimonial-card.active {
    display: block;
    opacity: 1;
}

.acg-testimonial-avatar {
    width: 60px;
    height: 60px;
    background: #4a90e2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.acg-testimonial-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.acg-rating {
    margin: 10px 0;
}

.acg-star {
    color: #ffd700;
    font-size: 1.2em;
    margin: 0 2px;
}

.acg-testimonial-card h5 {
    margin: 15px 0 10px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.acg-testimonial-card p {
    color: #7f8c8d;
    margin: 0 0 15px 0;
    line-height: 1.6;
    font-style: italic;
}

.acg-service-type {
    display: inline-block;
    background: #e8f4f8;
    color: #4a90e2;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* Testimonials Carousel Dots */
.acg-testimonials-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.acg-testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.acg-testimonial-dot:hover {
    background: #bbb;
    transform: scale(1.2);
}

.acg-testimonial-dot.active {
    background: #4a90e2;
    transform: scale(1.3);
    font-weight: 600;
}

/* Statistics Section */
.acg-statistics-section {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-top: 40px !important;
    padding-top: 60px !important;
}

.acg-statistics-section .acg-container {
    padding: 0 40px;
}

.acg-statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* На планшетах - 2 колонки */
@media (max-width: 992px) {
    .acg-statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* На мобильных - 1 колонка */
@media (max-width: 768px) {
    .acg-statistics-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.acg-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.acg-stat-icon {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acg-stat-icon svg {
    width: 60px;
    height: 60px;
}

.acg-stat-icon svg path {
    fill: white;
}

.acg-stat-number {
    font-size: 3em;
    font-weight: 700;
    margin: 3px 0 5px 0;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.acg-stat-label {
    font-size: 1.1em;
    color: white;
    font-weight: 500;
    margin-top: 3px;
}

/* Guarantees Section */
.acg-guarantees-section {
    background: white;
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-top: 40px !important;
    padding-top: 60px !important;
}

.acg-guarantees-section .acg-container {
    padding: 0 40px;
}

.acg-guarantees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* На планшетах - 2 колонки */
@media (max-width: 992px) {
    .acg-guarantees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* На мобильных - 1 колонка */
@media (max-width: 768px) {
    .acg-guarantees-grid {
        grid-template-columns: 1fr;
    }
}

.acg-guarantee-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.acg-guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.acg-guarantee-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acg-guarantee-icon svg {
    width: 48px;
    height: 48px;
}

.acg-guarantee-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.acg-guarantee-card p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1em;
    line-height: 1.6;
}

.acg-guarantee-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.acg-guarantee-card p {
    color: #7f8c8d;
    margin: 0;
    line-height: 1.6;
}

/* Contact Section */
.acg-contact-section {
    background: white;
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-contact-section .acg-container {
    padding: 0 40px;
}

.acg-contact-content {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* На планшетах и мобильных - одна колонка */
@media (max-width: 992px) {
    .acg-contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.acg-contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.acg-contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s;
}

.acg-contact-item:hover {
    background: #e8e8e8;
}

.acg-contact-icon {
    font-size: 1.5em;
    width: 40px;
    text-align: center;
}

.acg-contact-item a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s;
}

.acg-contact-item a:hover {
    color: #357abd;
}

.acg-contact-item span {
    color: #555;
    font-size: 1.1em;
}

/* Mid CTA Section */
.acg-mid-cta-section {
    background: #4a90e2;
    color: white;
    padding: 40px 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-top: 15px !important;
}

.acg-mid-cta {
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.6;
}

.acg-mid-cta a {
    color: white;
    text-decoration: underline;
}

.acg-mid-cta a:hover {
    opacity: 0.9;
}

/* Symptom Solution Grid Section */
.acg-symptom-solution-section {
    background: #f8f9fa;
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-symptom-solution-section .acg-container {
    padding: 0 40px;
}

.acg-symptom-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.acg-symptom-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.acg-symptom-problem {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.acg-symptom-problem strong {
    color: #2c3e50;
}

.acg-symptom-solution {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    padding-left: 10px;
}

/* Brands We Service Section */
.acg-brands-section {
    background: white;
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-brands-section .acg-container {
    padding: 0 40px;
}

.acg-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.acg-brand-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.2s;
}

.acg-brand-item:hover {
    border-color: #4a90e2;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.15);
}

.acg-brand-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    display: block;
}

/* Internal Links in Content */
.acg-internal-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.acg-internal-link:hover {
    color: #2c5aa0;
    border-bottom-color: #2c5aa0;
}

/* Contact Form */
.acg-contact-form-wrapper {
    max-width: 100%;
}

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

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

.acg-form-input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.acg-form-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.acg-form-submit {
    width: 100%;
    padding: 15px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.acg-form-disclaimer {
    font-size: 0.85em;
    color: #7f8c8d;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .acg-hero-title {
        font-size: 2.5em;
    }
    
    .acg-hero-description {
        font-size: 1.1em;
    }
    
    .acg-hero {
        padding: 100px 0;
        min-height: 600px;
    }
    
    .acg-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .acg-button {
        width: 100%;
        max-width: 300px;
    }
    
    .acg-section {
        padding: 40px 20px;
    }
    
    .acg-section-title {
        font-size: 2em;
    }
    
    .acg-services-grid,
    .acg-testimonials-grid,
    .acg-guarantees-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .acg-statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .acg-stat-number {
        font-size: 2.5em;
    }
    
    .acg-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .acg-hero-title {
        font-size: 2em;
    }
    
    .acg-section {
        padding: 30px 15px;
    }
    
    .acg-statistics-grid {
        grid-template-columns: 1fr;
    }
    
    .acg-organization-grid,
    .acg-why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .acg-related-services-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Page Specific Styles */

/* Related Services Section */
.acg-related-services-section {
    background: white;
    padding: 60px 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-related-services-section .acg-container {
    padding: 0 40px;
}

.acg-related-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 3 колонки на средних экранах */
@media (min-width: 768px) and (max-width: 1199px) {
    .acg-related-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 колонки на планшетах */
@media (min-width: 480px) and (max-width: 767px) {
    .acg-related-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 колонка на мобильных */
@media (max-width: 479px) {
    .acg-related-services-grid {
        grid-template-columns: 1fr;
    }
}

.acg-related-service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.acg-service-icon-small {
    font-size: 2em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
}

.acg-service-icon-small svg {
    width: 56px;
    height: 56px;
}

.acg-service-icon-small svg path {
    fill: #2c3e50;
}

.acg-related-service-card h4 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.acg-related-service-card h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.acg-related-service-card h4 a:hover {
    color: #4a90e2;
}

/* Organization Section */
.acg-organization-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-organization-section .acg-container {
    max-width: 1400px;
    padding: 0 40px;
}

.acg-section-subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

.acg-organization-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 3 колонки на средних экранах */
@media (min-width: 768px) and (max-width: 1199px) {
    .acg-organization-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 колонки на планшетах */
@media (min-width: 480px) and (max-width: 767px) {
    .acg-organization-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 колонка на мобильных */
@media (max-width: 479px) {
    .acg-organization-grid {
        grid-template-columns: 1fr;
    }
}

.acg-organization-block {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.acg-organization-block h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.acg-organization-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acg-organization-block li {
    padding: 10px 0;
    color: #555;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.acg-icon-red,
.acg-icon-blue,
.acg-icon-green,
.acg-icon-leaf,
.acg-icon-star,
.acg-icon-location {
    font-size: 1.2em;
    flex-shrink: 0;
}

.acg-icon-red {
    color: #e74c3c;
}

.acg-icon-blue {
    color: #4a90e2;
}

.acg-icon-green {
    color: #27ae60;
}

.acg-icon-leaf {
    color: #27ae60;
}

.acg-icon-star {
    color: #ffd700;
}

.acg-icon-location {
    color: #4a90e2;
}

/* Why Choose Section */
.acg-why-choose-section {
    background: white;
    padding: 60px 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-why-choose-section .acg-container {
    padding: 0 40px;
}

.acg-why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.acg-why-choose-block {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.acg-why-choose-block h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.acg-why-choose-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acg-why-choose-block li {
    padding: 8px 0;
    color: #555;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.acg-why-choose-block.acg-call-now {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.acg-why-choose-block.acg-call-now h3 {
    color: white;
}

.acg-why-choose-block.acg-call-now p {
    color: white;
    margin: 10px 0;
}

.acg-phone-link {
    color: white;
    font-size: 1.3em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 10px 0;
}

.acg-phone-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.acg-faq-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.acg-faq-section .acg-container {
    padding: 0 40px;
}

.acg-faq-list {
    margin-top: 30px;
}

.acg-faq-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.acg-faq-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.acg-faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    font-weight: 600;
    color: #2c3e50;
    transition: background 0.3s;
}

.acg-faq-question:hover {
    background: #f8f9fa;
}

.acg-faq-arrow {
    color: #4a90e2;
    font-size: 0.8em;
    transition: transform 0.3s;
}

.acg-faq-item.active .acg-faq-arrow {
    transform: rotate(180deg);
}

.acg-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    background: #f8f9fa;
}

.acg-faq-item.active .acg-faq-answer {
    max-height: 500px;
    padding: 20px;
}

.acg-faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Service Page Hero - Same as City Page */
.acg-service-page .acg-hero {
    background: linear-gradient(135deg, rgba(30, 60, 120, 0.9) 0%, rgba(50, 80, 150, 0.9) 100%);
}

/* Service Page Services Section */
.acg-service-page .acg-services-section {
    background: #f5f5f5;
    padding: 60px 0;
    margin: 0;
    width: 100%;
}

.acg-service-page .acg-services-section .acg-container {
    padding: 0 40px;
}

/* Service Page Specific Service Cards */
.acg-service-page .acg-service-card {
    text-align: center;
}

.acg-service-page .acg-service-icon {
    background: #4a90e2;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acg-service-page .acg-service-icon svg {
    width: 40px;
    height: 40px;
}

.acg-service-page .acg-service-icon svg path {
    fill: white;
}

/* Print Styles */
@media print {
    .acg-hero {
        background: #4a90e2;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .acg-button {
        display: none;
    }
    
    .acg-faq-answer {
        max-height: none !important;
        padding: 20px !important;
    }
    
    .acg-fixed-cta-bar {
        display: none !important;
    }
}

/* Fixed Bottom CTA Bar */
.acg-fixed-cta-bar {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
    visibility: visible;
    opacity: 1;
    box-sizing: border-box;
}

/* Fixed CTA bar doesn't overlap content, so no padding needed */

.acg-fixed-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    pointer-events: none;
    width: 100%;
    box-sizing: border-box;
}

.acg-fixed-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: none;
    box-shadow: none;
    white-space: nowrap;
    pointer-events: auto;
}

.acg-fixed-cta-button:hover {
    opacity: 0.9;
}

.acg-fixed-cta-call {
    background: #4a90e2;
}

.acg-fixed-cta-book {
    background: #2c3e50;
}

.acg-fixed-cta-icon {
    font-size: 20px;
    margin-right: 8px;
    line-height: 1;
}

.acg-fixed-cta-text {
    font-size: 16px;
    line-height: 1.2;
}

/* Desktop styles - ensure buttons are visible */
@media (min-width: 768px) {
    .acg-fixed-cta-bar[style*="display: block"],
    .acg-fixed-cta-bar[style*="display:block"] {
        display: block !important;
    }
    
    .acg-fixed-cta-container {
        display: flex !important;
        pointer-events: none;
    }
    
    .acg-fixed-cta-button {
        pointer-events: auto;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Responsive styles for fixed CTA bar */
@media (max-width: 767px) {
    .acg-fixed-cta-container {
        gap: 10px;
        padding: 0 0 0 15px;
        justify-content: flex-start;
        margin-left: 0;
    }
    
    .acg-fixed-cta-button {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .acg-fixed-cta-icon {
        font-size: 18px;
        margin-right: 6px;
    }
    
    .acg-fixed-cta-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .acg-fixed-cta-container {
        gap: 8px;
        padding: 0 0 0 15px;
        flex-direction: column;
        justify-content: flex-start;
        margin-left: 0;
        align-items: flex-start;
    }
    
    .acg-fixed-cta-button {
        width: auto;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .acg-fixed-cta-icon {
        font-size: 18px;
        margin-right: 6px;
    }
    
    .acg-fixed-cta-text {
        font-size: 14px;
    }
}
