@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #FFD700;
    --secondary-color: #FFA500;
    --tertiary-color: #FF8C00;
    --background-color: #FFF9E6;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --black: #000;
    --section-padding: 80px 0;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    font-weight: 700;
}

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

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

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-size: 22px;
    font-weight: 700;
    color: var(--tertiary-color);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    color: var(--tertiary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    padding: 5px;
    position: relative;
}

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

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

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.phone i {
    color: var(--tertiary-color);
}

.phone a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.phone a:hover {
    color: var(--tertiary-color);
}

/* Hero Section */
.hero {
    padding: var(--section-padding);
    background: linear-gradient(to right, rgba(255, 249, 230, 0.9), rgba(255, 249, 230, 0.6));
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--tertiary-color);
}

.hero-text h1 span {
    display: block;
    color: var(--text-color);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--light-text);
}

.cta-button {
    background-color: var(--tertiary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: none;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: var(--white);
}

.services h2, .contacts h2, .blog h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--tertiary-color);
    position: relative;
}

.services h2::after, .contacts h2::after, .blog h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--tertiary-color);
}

.service-icon {
    background-color: rgba(255, 215, 0, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 24px;
    color: var(--tertiary-color);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--light-text);
}

/* Contacts Section */
.contacts {
    padding: var(--section-padding);
    background: linear-gradient(to right, rgba(255, 249, 230, 0.9), rgba(255, 249, 230, 0.6));
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 24px;
    color: var(--tertiary-color);
}

.contact-item p {
    font-size: 18px;
    font-weight: 500;
}

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

.contact-item a:hover {
    color: var(--tertiary-color);
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

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

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

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-card h3 {
    padding: 20px 20px 10px;
    font-size: 20px;
}

.blog-card p {
    padding: 0 20px 20px;
    color: var(--light-text);
}

.read-more {
    display: inline-block;
    margin: 0 20px 20px;
    color: var(--tertiary-color);
    font-weight: 500;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--tertiary-color);
    transition: var(--transition);
}

.read-more:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
}

.footer-logo a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
}

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

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--white);
    font-size: 22px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        text-align: center;
    }
    
    .hero-image {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
    }

    .services-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* Стили для страницы отдельной статьи блога */
.blog-post {
    padding: 80px 0;
    background-color: var(--background-color);
}

.blog-post .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.blog-post h1 {
    font-size: 36px;
    color: var(--tertiary-color);
    margin-bottom: 20px;
    text-align: center;
}

.blog-post .post-date {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
}

.blog-post .post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-post .post-content {
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 30px;
}

.blog-post .post-content h2,
.blog-post .post-content h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.blog-post .post-content ul,
.blog-post .post-content ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.blog-post .post-content li {
    margin-bottom: 10px;
}

.blog-post .post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.blog-post .post-content a:hover {
    color: var(--tertiary-color);
}