/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #777;
    --white: #fff;
    --max-width: 1200px;
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2980b9;
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cta-center {
    text-align: center;
    margin-top: 30px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 0;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 30px;
}

nav a {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav a:hover:after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

/* Main Content Styles */
main {
    padding-top: 80px; /* Account for fixed header */
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    background-image: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.services h2, .advantages h2, .testimonials h2, .blog-preview h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    text-align: center;
    margin: 30px auto 20px;
    color: var(--secondary-color);
}

.service-card h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
    padding: 0 20px;
}

.service-card p {
    padding: 0 20px 30px;
    color: var(--dark-gray);
    font-size: 15px;
    text-align: center;
}

/* Advantages Section */
.advantages {
    background-color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    color: var(--white);
}

.advantage-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.advantage-card p {
    color: var(--dark-gray);
    font-size: 15px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-gray);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.testimonial {
    min-width: calc(33.333% - 20px);
    scroll-snap-align: start;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: 18px;
}

.testimonial-author span {
    color: var(--dark-gray);
    font-size: 14px;
}

/* Blog Preview Section */
.blog-preview {
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.blog-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    background-color: var(--white);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: var(--primary-color);
}

.blog-content h3 a:hover {
    color: var(--secondary-color);
}

.blog-date {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.read-more {
    color: var(--secondary-color);
    font-weight: 700;
    display: inline-block;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover:after {
    margin-left: 10px;
}

/* Contact CTA Section */
.contact-cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.contact-cta h2 {
    color: var(--white);
}

.contact-cta p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: var(--border-radius);
    border: none;
    font-size: 16px;
    width: 100%;
}

.contact-form textarea {
    grid-column: span 2;
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    grid-column: span 2;
}

/* Map container */
.map-container {
    margin-top: 40px;
    text-align: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.map-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.map-container h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.map-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

#yandex-map {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Make sure the map is responsive */
@media (max-width: 768px) {
    .map-wrapper {
        margin: 0 -15px;
    }
    
    #yandex-map {
        height: 300px !important;
    }
}

.dg-widget-link {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.dg-widget-link:hover {
    text-decoration: underline;
}

/* Make sure the map is responsive */
.dg-map-container {
    width: 100% !important;
    border-radius: 5px;
    overflow: hidden;
}

/* Footer Styles */
footer {
    background-color: #1a2530;
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-services h3,
.footer-contacts h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-about p {
    color: #aaa;
    font-size: 14px;
}

.footer-links ul li,
.footer-services ul li,
.footer-contacts ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--secondary-color);
}

.footer-contacts ul li {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 14px;
}

.footer-contacts i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 18px;
}

.footer-contacts a {
    color: #aaa;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2c3e50;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.social-links i {
    color: var(--white);
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid #2c3e50;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    font-size: 14px;
}

.footer-bottom a {
    color: #aaa;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* Contact Info Section */
.contact-info {
    background-color: var(--light-gray);
    padding: 60px 0;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.contact-item h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.contact-item p {
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer section icons */
.footer-section h4 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-section p i {
    margin-right: 5px;
    color: var(--secondary-color);
}
