/*
 * Main styles for HeatSupply Theme
 * Theme Name: HeatSupply
 * Version: 1.0.0
 *
 * Table of Contents:
 * 1. Reset & Base Styles
 * 2. Typography
 * 3. Layout & Containers
 * 4. Header Styles
 * 5. Navigation
 * 6. Content Styles
 * 7. Footer Styles
 * 8. Forms & Buttons
 * 9. Helper Classes
 * 10. Theme Specific Components
 */

/* 1. Reset & Base Styles
-------------------------------------------- */
:root {
    /* Основные цвета (будут заменены через customizer) */
    --primary-color: #E74C3C;
    --secondary-color: #3498DB;
    --accent-color: #F39C12;

    /* Нейтральные цвета */
    --dark-color: #2C3E50;
    --text-color: #333333;
    --light-text: #7F8C8D;
    --light-color: #ECF0F1;
    --white-color: #FFFFFF;
    --border-color: #E2E2E2;

    /* Технические цвета */
    --success-color: #27AE60;
    --error-color: #E74C3C;
    --warning-color: #F39C12;
    --info-color: #3498DB;

    /* Типографика */
    --body-font: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --heading-font: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Размеры */
    --container-width: 1400px; /* Увеличенная ширина контейнера */
    --header-height: 80px;
    --footer-height: 300px;
    --section-spacing: 80px;
    --grid-gap: 30px;
    --border-radius: 4px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}

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

a:hover, a:focus {
    color: var(--primary-color);
    text-decoration: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/* 2. Typography
-------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 5px solid var(--primary-color);
    background-color: var(--light-color);
    font-style: italic;
}

ul, ol {
    margin: 0 0 1.5rem 1.5rem;
}

/* 3. Layout & Containers
-------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.content-area-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    padding: 50px 0;
}

.content-area {
    flex: 0 0 75%;
    max-width: 75%;
    padding-right: 15px;
    padding-left: 15px;
}

.widget-area {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
}

.fullwidth {
    flex: 0 0 100%;
    max-width: 100%;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--light-text);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.bg-light {
    background-color: var(--light-color);
}

/* Full width content for pages and posts */
.page .post-content,
.single .post-content {
    width: 100%;
    max-width: 100%;
}

.content-area article {
    width: 100%;
}

.post-content {
    width: 100%;
}

.posts-grid {
    width: 100%;
    max-width: 100%;
}

/* Adjust text width for better readability */
.single-post-content .entry-content,
.page .entry-content {
    max-width: 100%;
    width: 100%;
}

/* 4. Header Styles
-------------------------------------------- */
.site-header {
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-header {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info a {
    color: var(--white-color);
}

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

.contact-info i {
    margin-right: 5px;
}

.social-links a {
    color: var(--white-color);
    margin-left: 15px;
    font-size: 1rem;
}

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

.main-header {
    background-color: var(--white-color);
    padding: 15px 0;
}

.main-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    flex-direction: column; /* Меняем направление с row (по умолчанию) на column */
    align-items: flex-start; /* Выравниваем элементы по левому краю */
}
.site-title {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.site-title a {
    color: var(--dark-color);
}
.site-description {
    display: block;
    margin-top: 5px; /* Небольшой отступ от заголовка */
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.2;
}

.custom-logo-link {
    margin-right: 15px;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-cta {
    margin-left: 20px;
}

/* 5. Navigation
-------------------------------------------- */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 15px;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    color: var(--primary-color);
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999;
    width: 220px;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    padding: 10px 0;
}

.main-navigation .sub-menu a {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 400;
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon:before,
.menu-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

.menu-icon:before {
    top: -8px;
}

.menu-icon:after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* 6. Content Styles
-------------------------------------------- */
.page-header {
    background-color: var(--light-color);
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    margin-bottom: 10px;
}

/* Стили для хлебных крошек
-------------------------------------------- */
.page-header .breadcrumbs {
    margin-top: 15px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--light-text);
}

.page-header .breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-header .breadcrumbs a:hover {
    color: var(--primary-color);
}

.page-header .breadcrumbs .separator {
    margin: 0 8px;
    color: var(--border-color);
}

.page-header .breadcrumbs .current {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 767px) {
    .page-header .breadcrumbs {
        font-size: 0.75rem;
    }
}

/* Скрытие других возможных блоков с хлебными крошками
-------------------------------------------- */
.single-breadcrumbs,
.single-post-header {
    display: none !important;
}

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

.post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%; /* Ensure post-card takes full width */
}

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

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.entry-title {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.entry-meta span {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.entry-meta i {
    margin-right: 5px;
}

.entry-content {
    margin-bottom: 20px;
    flex-grow: 1;
    max-width: 100%; /* Ensure content is fully visible */
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem; /* Improved content readability */
}

.read-more-link {
    margin-top: auto;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.entry-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.post-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

/* 7. Footer Styles
-------------------------------------------- */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding-top: 60px;
}

.footer-widgets {
    padding-bottom: 40px;
}

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

.footer-widget-area {
    margin-bottom: 30px;
}

.footer-widget-area .widget-title {
    font-size: 1.2rem;
    color: var(--white-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-widget-area a {
    color: var(--light-color);
}

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

.footer-widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-area li {
    margin-bottom: 10px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.map-container {
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.site-info {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    font-size: 0.875rem;
}

.site-info .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-menu li {
    margin-right: 15px;
}

.footer-links-menu a {
    color: var(--light-text);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

/* Стили для меню в футере */
.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-navigation li {
    margin-bottom: 10px;
}

.footer-navigation a {
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

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

/* 8. Forms & Buttons
-------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
.cta-button:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

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

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

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

.button.outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.cta-button.large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.form-group {
    margin-bottom: 20px;
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.form-row .form-group {
    flex: 0 0 50%;
    max-width: 50%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

textarea {
    width: 100%;
    resize: vertical;
}

.form-consent {
    display: flex;
    align-items: flex-start;
}

.form-consent input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

.submit-button {
    padding: 12px 30px;
}

/* 9. Helper Classes
-------------------------------------------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.skip-link {
    background-color: var(--dark-color);
    color: var(--white-color);
    font-weight: 700;
    left: -9999em;
    padding: 10px 15px;
    position: absolute;
    top: -9999em;
}

.skip-link:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 1001;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin: 0 auto 1.5rem;
}

.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--light-text);
}

/* 10. Theme Specific Components
-------------------------------------------- */
/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--dark-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-cta {
    margin-top: 30px;
}

/* Feature Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-description {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Services Grid */
.heatsupply-services-grid {
    display: grid;
    gap: var(--grid-gap);
}

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

.heatsupply-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.heatsupply-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.heatsupply-service-item {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.heatsupply-service-thumb {
    position: relative;
    overflow: hidden;
}

.heatsupply-service-thumb img {
    width: 100%;
    transition: transform 0.5s ease;
}

.heatsupply-service-item:hover .heatsupply-service-thumb img {
    transform: scale(1.05);
}

.heatsupply-service-content {
    padding: 25px;
}

.heatsupply-service-title {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.heatsupply-service-excerpt {
    color: var(--light-text);
    margin-bottom: 20px;
}

.heatsupply-service-price {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 700;
    margin-bottom: 15px;
}

.heatsupply-service-more {
    margin-top: 20px;
}

.heatsupply-service-button {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.heatsupply-service-button:after {
    content: '\2192';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.heatsupply-service-button:hover:after {
    transform: translateX(5px);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.project-item {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    padding: 25px;
}

.project-title {
    margin-bottom: 15px;
    font-size: 1.35rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: var(--light-text);
}

.project-meta span {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.project-meta i {
    margin-right: 5px;
}

.project-excerpt {
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Contact Page Styles
-------------------------------------------- */
.contact-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    margin: 2rem 0;
}

.contact-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.contact-value a {
    color: inherit;
    text-decoration: none;
}

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

.contact-social h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.contact-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-btn i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

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

.contact-form-container {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
    margin-bottom: 1.5rem;
}

.contact-map-section {
    margin-top: 3rem;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .contact-sections {
        grid-template-columns: 1fr;
    }

    .contact-card,
    .contact-form-container {
        padding: 1.5rem;
    }

    .map-container {
        height: 300px;
    }
}

/* Blog Styles
-------------------------------------------- */
.blog-header {
    background-color: var(--light-color);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 30px;
}

.blog-title {
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.blog-description {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
}

.blog-categories {
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.cat-tab {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9rem;
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.cat-tab:hover, .cat-tab.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

.blog-post .post-thumbnail {
    position: relative;
}

.post-category {
    display: inline-block;
    margin-bottom: 10px;
}

.post-category a {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.post-category a:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.post-category-label {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.post-category-label a {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.post-category-label a:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Single Post Styles */
.single-post-header {
    display: none !important; /* Скрытие дублирующегося блока хлебных крошек */
}

.single-post-content {
    margin-bottom: 50px;
}

.single-post-content .entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.single-post-content .entry-meta {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.single-post-content .post-category a {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
}

.single-post-content .featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.entry-content img {
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    position: relative;
    background-color: var(--light-color);
    border-left: 5px solid var(--primary-color);
}

.entry-content blockquote p {
    margin-bottom: 0;
    font-style: italic;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.tags-title {
    margin-right: 10px;
    font-weight: 500;
}

.about-author {
    margin-top: 50px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 20px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-title {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.author-bio {
    color: var(--light-text);
    margin-bottom: 15px;
}

.author-link {
    font-weight: 500;
    color: var(--primary-color);
}

.related-posts {
    margin-top: 50px;
}

.related-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.related-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Comments */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list ol {
    list-style: none;
    margin-left: 60px;
}

.comment-body {
    margin-bottom: 30px;
    position: relative;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author .avatar {
    margin-right: 15px;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--light-text);
}

.comment-content {
    margin-left: 60px;
    background-color: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    position: relative;
}

.comment-content:before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--light-color);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-left: 60px;
    margin-top: 10px;
}

.comment-reply-link {
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-form {
    margin-top: 30px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.comment-form textarea {
    height: 150px;
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.form-submit button {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit button:hover {
    background-color: var(--dark-color);
}

/* Blog widgets */
.blog-widgets {
    margin-top: 50px;
    padding: 50px 0;
    background-color: var(--light-color);
}

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

/* Blog Responsive */
@media (max-width: 992px) {
    .blog-posts,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .blog-posts,
    .related-grid,
    .blog-widgets-grid {
        grid-template-columns: 1fr;
    }

    .about-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .comment-content {
        margin-left: 0;
    }

    .comment-content:before {
        display: none;
    }

    .reply {
        margin-left: 0;
    }
}

/* Стили для блога и услуг
-------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: 40px;
}

.post-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-category-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 2;
}

.post-category-label a {
    color: var(--white-color);
    text-decoration: none;
}

.post-content {
    padding: 20px;
}

.entry-title {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
}

.entry-meta i {
    margin-right: 5px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Стили для услуг
-------------------------------------------- */
.heatsupply-services-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

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

.heatsupply-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.heatsupply-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.heatsupply-service-item {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heatsupply-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.heatsupply-service-thumb {
    position: relative;
    overflow: hidden;
}

.heatsupply-service-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.heatsupply-service-item:hover .heatsupply-service-thumb img {
    transform: scale(1.05);
}

.heatsupply-service-content {
    padding: 20px;
}

.heatsupply-service-title {
    margin-bottom: 15px;
    font-size: 1.35rem;
}

.heatsupply-service-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.heatsupply-service-excerpt {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.5;
}

.heatsupply-service-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.heatsupply-service-button:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Стили для проектов
-------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-item {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    padding: 20px;
}

.project-title {
    margin-bottom: 15px;
    font-size: 1.35rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
}

.project-meta i {
    margin-right: 5px;
}

.project-excerpt {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.5;
}

/* Адаптивность
-------------------------------------------- */
@media (max-width: 992px) {
    .heatsupply-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 767px) {
    .blog-grid,
    .heatsupply-columns-2,
    .heatsupply-columns-3,
    .heatsupply-columns-4,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Скрытие информации об авторе/дате
-------------------------------------------- */
body.single .post-meta .posted-on,
body.single .post-meta .posted-by,
body.single .author-info,
body.single .entry-meta .author,
body.single .entry-meta .date {
    display: none !important;
}

/* О компании стили
-------------------------------------------- */
.about-section {
    margin: 3rem 0;
}

.about-columns {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--grid-gap);
    align-items: center;
}

.about-text p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.check-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.check-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.team-member {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.team-member-image {
    position: relative;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.team-member:hover .team-member-image img {
    transform: scale(1.05);
}

.team-member-info {
    padding: 1.5rem;
}

.team-member-name {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.team-member-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member-description {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.certificate-item {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.certificate-item:hover {
    transform: translateY(-5px);
}

.certificate-link {
    display: block;
    position: relative;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-link:hover .certificate-overlay {
    opacity: 1;
}

.certificate-zoom {
    color: var(--white-color);
    font-size: 2rem;
}

.certificate-title {
    padding: 1rem;
    margin-bottom: 0;
    font-weight: 600;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.partner-item {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
}

.about-cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
}

.about-cta-content h2 {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-cta-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-cta-content .button {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.about-cta-content .button:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

@media (max-width: 992px) {
    .about-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 767px) {
    .team-grid,
    .certificates-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .about-cta-section {
        padding: 2rem 1rem;
    }

    .about-cta-content h2 {
        font-size: 1.5rem;
    }

    .about-cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 991px) {
    .content-area-wrapper {
        flex-direction: column;
    }

    .content-area,
    .widget-area {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}
