/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 350ms ease;
}

a {
    text-decoration: none;
    color: inherit;
}

iframe {
    width: 88%;
    border-radius: 10px;
}

.avito-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #ffffff;
    /* avito white*/
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s;
}

.phone-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #0abe13;
    /*phone blue*/
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s;
}

.telegram-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #0088cc;
    /* Telegram blue */
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s;
}

.phone-button:hover {
    transform: translateY(-2px);
}

.avito-button:hover {
    transform: translateY(-2px);
}

.telegram-button:hover {
    background-color: #006fa1;
    transform: translateY(-2px);
}

.telegram-button>img {
    height: 2rem;
    margin-right: 10px;
}

.phone-button>img {
    height: 2rem;
    margin-right: 10px;
}

#map {
    display: flex;
    flex-direction: column;
    align-items: center;

}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-theme {
    background-color: #000000;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    transition: background-color 0.3s;
}

body.dark-theme .navbar {
    background-color: #202020 !important;
}

body.dark-theme .nav-link {
    color: #fff !important;
}

body.dark-theme .navbar-brand {
    color: #fff !important;
}

.nav-link,
.navbar-brand {
    color: #000 !important;
}

.card-img-top {
    background-image: cover;
    background-position: center;
    height: 300px;
}

.card {
    max-width: 390px;
}

.card:hover {
    scale: 1.05;
    transform: translateY(-10px);
}

/* Hero section */
.hero {
    background-image: url('img/HeroImage.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content_block {
    background-color: #ffffff;
    color: #000;
    border-radius: 10px;
    padding: 0.5em;

    transition: background-color 0.3s, color 0.3s;
}

body.dark-theme .hero-content_block {
    background-color: #333;
    color: #fff;
}

body.dark-theme .navbar-toggler {
    background-color: #ccc;
}

.hero-block {
    background-color: #fff !important;
    color: #000 !important;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #45a049;
}

/* Section styles */
.section {
    padding: 30px 0;
    background-color: #ffffff;
    transition: background-color 0.3s;
}

body.dark-theme .section {
    background-color: #111;
}

body.dark-theme .card {
    background-color: #333;
}

body.dark-theme .card-title {
    color: #fff;
}

.section:nth-child(even) {
    background-color: #ffffff;
}

body.dark-theme .section:nth-child(even) {
    background-color: #222;
}

.details-section {
    background-color: #fafafa;
}

body.dark-theme .details-section {
    background-color: #202020;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2.5rem;
    transition: color 0.3s;
}

body.dark-theme .section h2 {
    color: #ffffff;
}

.section p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    transition: color 0.3s;
}

body.dark-theme .section p {
    color: #cccccc;
}

.section ul {
    list-style-type: none;
    padding-left: 0;
}

.section li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    transition: color 0.3s;
}

body.dark-theme .section li {
    color: #cccccc;
}

.section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Accordion */
.accordion-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    transition: background-color 0.3s, border-color 0.3s;
}

body.dark-theme .accordion-item {
    background-color: #333;
    border-color: #555;
}

.accordion-button {
    background-color: #198754;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.accordion-body {
    background-color: #ffffff;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-theme .accordion-body {
    background-color: #333;
    color: #cccccc;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background-color 0.3s;
}

body.dark-theme .service-item {
    background-color: #333;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    padding: 1rem;
    font-size: 1.5rem;
    color: #2c3e50;
    transition: color 0.3s;
}

body.dark-theme .service-item h3 {
    color: #ffffff;
}

.service-item p {
    padding: 0 1rem 1rem;
    color: #666;
    transition: color 0.3s;
}

body.dark-theme .service-item p {
    color: #cccccc;
}

/* Contact section */
#contact {
    background-color: #34495e;
    color: white;
    transition: background-color 0.3s;
}

body.dark-theme #contact {
    background-color: #111;
}

#contact h2 {
    color: white;
}

#contact p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: left;
    padding: 20px 0;
    transition: background-color 0.3s;
}

body.dark-theme footer {
    background-color: #111;
}

/* Reviews section */
.reviews-section {
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

body.dark-theme .reviews-section {
    background-color: #222;
}

.review-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    margin-block: 20px;
}

body.dark-theme .review-card {
    background-color: #333;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    border-color: #555;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark-theme .review-card:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
    transition: color 0.3s;
}

body.dark-theme .review-info h4 {
    color: #ffffff;
}

.date {
    color: #6c757d;
    font-size: 0.9rem;
    transition: color 0.3s;
}

body.dark-theme .date {
    color: #cccccc;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.review-text {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    transition: color 0.3s;
}

body.dark-theme .review-text {
    color: #cccccc;
}

/* Theme toggle button */
#theme-toggle {
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

body.dark-theme #theme-toggle {
    color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .slider {
        height: 250px;
    }

    .slide h3 {
        font-size: 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: 1rem;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatar {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}