/* Переменные для цветов, шрифтов, отступов и теней */
:root {
    /* Цветовая палитра */
    --color-white: #FFFFFF;
    --color-light-gray: #F8F8F8;
    --color-medium-gray: #F5F5F5;
    /* для чередующихся секций */
    --color-dark-green: #2E8B57;
    /* Основной акцентный */
    --color-light-green: #3A9B5E;
    /* Для кнопок WhatsApp на зеленом фоне */
    --color-cta-yellow: #FFC107;
    /* Вторичный акцентный */
    --color-telegram-blue: #0088CC;
    /* Для кнопки Telegram */
    --color-dark-text: #212121;
    /* Основной текст и заголовки */
    --color-medium-text: #666666;
    /* Вспомогательный текст */
    --color-footer-bg: #1C1C1C;
    /* Фон футера */
    --color-dark-button-bg: #333333;
    /* Фон темных кнопок */

    /* Типографика */
    --font-family-primary: 'Inter', sans-serif;
    --font-size-base: 18px;
    --line-height-base: 1.6;

    /* Скругленные углы */
    --border-radius-base: 10px;

    /* Тени */
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.1);

    /* Отступы */
    --section-padding: 80px 0;
    --container-width: 1200px;
    --gap-spacing: 30px;
}

/* Общие стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark-text);
    margin-bottom: 20px;
}

h1 {
    font-size: 64px;
    margin-bottom: 30px;
}

h2 {
    font-size: 48px;
    margin-bottom: 25px;
}

h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Текст */
p {
    margin-bottom: 15px;
    color: var(--color-medium-text);
}

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

a:hover {
    color: var(--color-dark-green);
}

/* Кнопки */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius-base);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    gap: 10px;
    /* Для иконок */
}

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

.button--green:hover {
    background-color: var(--color-light-green);
    box-shadow: var(--shadow-medium);
}

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

.button--cta:hover {
    background-color: #e0ac00;
    /* Немного темнее */
    box-shadow: var(--shadow-medium);
}

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

.button--dark:hover {
    background-color: #4a4a4a;
    box-shadow: var(--shadow-medium);
}

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

.button--light-green:hover {
    background-color: var(--color-dark-green);
    box-shadow: var(--shadow-medium);
}

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

.button--blue:hover {
    background-color: #006699;
    box-shadow: var(--shadow-medium);
}

/* Формы и поля ввода */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-dark-text);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-base);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    color: var(--color-dark-text);
    background-color: var(--color-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-dark-green);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2);
}

.form-note {
    font-size: 14px;
    color: var(--color-medium-text);
    margin-top: 10px;
}

/* Общие стили для секций */
.section-padding {
    padding: var(--section-padding);
}

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

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

.section-green {
    background-color: var(--color-dark-green);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--color-dark-text);
    /* Переопределено, если секция не зеленая */
}

.section-green .section-title {
    color: var(--color-white);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: -30px auto 50px auto;
    color: var(--color-medium-text);
}

.section-green .section-description {
    color: var(--color-white);
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    /* Default icon size */
    color: var(--color-dark-green);
}

.title-icon i {
    font-size: 40px;
    /* Slightly smaller for title icons */
}

/* Карточки (общие стили для benefit-card, project-card, work-item, step-card, trust-card, blog-card) */
.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-light);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

/* Сетки */
.grid {
    display: grid;
    gap: var(--gap-spacing);
}

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

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

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

.button-center {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/* Header */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark-green);
    margin-right: 30px;
}

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

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-dark-text);
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-dark-green);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
}

.phone-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-text);
    white-space: nowrap;
}

.phone-number:hover {
    color: var(--color-dark-green);
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero-background.png');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: 100px 0;
}

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

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

.hero-subtitle {
    color: var(--color-white);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
}

/* Benefits Section */
.benefit-card .icon-wrapper {
    font-size: 64px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--color-medium-text);
}

/* Calculator Section */
.calculator-block {
    display: flex;
    text-align: left;
    padding: 0;
    /* Remove default card padding */
    overflow: hidden;
    /* To ensure rounded corners on image */
}

.calculator-image {
    flex: 1;
    min-width: 400px;
    /* Minimum width for the image part */
}

.calculator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-top-left-radius: var(--border-radius-base);
    border-bottom-left-radius: var(--border-radius-base);
}

.calculator-form {
    flex: 1;
    padding: 40px;
    min-width: 400px;
    /* Minimum width for the form part */
}

.calculator-form .button {
    width: 100%;
    margin-top: 20px;
}

/* Projects Catalog */
.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-select,
.filter-search {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-base);
    background-color: var(--color-light-gray);
    color: var(--color-dark-text);
    font-family: var(--font-family-primary);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-select:focus,
.filter-search:focus {
    outline: none;
    border-color: var(--color-dark-green);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2);
}

.filter-search {
    flex-grow: 1;
    /* Allow search bar to take more space */
    max-width: 300px;
}

.project-card {
    padding: 0;
    /* No padding for image inside card */
    text-align: left;
    overflow: hidden;
    /* Ensure image corners are rounded */
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    /* Fixed height for project images */
    overflow: hidden;
    border-top-left-radius: var(--border-radius-base);
    border-top-right-radius: var(--border-radius-base);
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.favorite-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--color-dark-green);
    box-shadow: var(--shadow-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.favorite-button:hover {
    background-color: var(--color-dark-green);
    color: var(--color-white);
}

.project-info {
    padding: 20px 30px 30px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    font-size: 16px;
    color: var(--color-dark-text);
    margin-bottom: 15px;
}

.project-info p strong {
    color: var(--color-dark-green);
}

.project-details-selects {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.project-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-base);
    background-color: var(--color-light-gray);
    color: var(--color-dark-text);
    font-family: var(--font-family-primary);
    font-size: 15px;
}

.project-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.project-buttons .button {
    flex: 1;
    font-size: 16px;
    padding: 12px 20px;
}

/* Types of Works */
.work-item {
    padding: 20px;
}

.work-item img {
    width: 100%;
    max-width: 200px;
    /* Smaller images for types of works */
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: var(--border-radius-base);
}

.work-item h3 {
    font-size: 24px;
    margin-bottom: 0;
}

/* Our Works */
.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Cost by Photo & Online Consultation (shared styles) */
.section-full-bleed {
    width: 100%;
    padding: var(--section-padding);
    color: var(--color-white);
    text-align: center;
}

.cost-by-photo-content,
.online-consultation-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-spacing);
    flex-wrap: wrap;
    /* For responsiveness */
}

.cost-by-photo-text,
.online-consultation-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.cost-by-photo-text h2,
.online-consultation-text h2 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 40px;
}

.cost-by-photo-text p,
.online-consultation-text p {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-buttons .button {
    flex-grow: 1;
    max-width: 250px;
    font-size: 18px;
    padding: 18px 30px;
}

.cost-by-photo-illustration,
.online-consultation-illustration {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    /* Adjust size for illustrations */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cost-by-photo-illustration img,
.online-consultation-illustration img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-base);
    /* If illustration is a simple image */
}


/* Free Consultation */
.consultation-grid {
    align-items: flex-start;
}

.consultation-form-block {
    text-align: center;
}

.consultation-form-block .consultation-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.consultation-form-block h3 {
    margin-bottom: 20px;
    color: var(--color-dark-green);
}

.consultation-form-block .short-form .button {
    width: 100%;
    margin-top: 20px;
}

.consultation-info-block {
    text-align: left;
    padding-left: 30px;
    /* Spacing from the form block */
}

.consultation-info-block h3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.consultation-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.topic-tag {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-light-gray);
    border-radius: var(--border-radius-base);
    color: var(--color-dark-text);
    font-size: 16px;
    font-weight: 500;
}

.disclaimer {
    font-weight: 600;
    color: var(--color-dark-green);
    font-size: 18px;
}

/* Steps Section */
.steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Flexible 2-4 columns */
}

.step-card {
    padding: 30px;
}

.step-card .step-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark-green);
    margin-bottom: 15px;
}

.step-card .step-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.step-card p {
    font-size: 16px;
    color: var(--color-medium-text);
}

/* Payment & Terms */
.payment-card .icon-wrapper {
    font-size: 60px;
    margin-bottom: 20px;
}

.payment-card h3 {
    color: var(--color-dark-green);
    margin-bottom: 15px;
}

.payment-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.payment-card ul li {
    font-size: 16px;
    color: var(--color-medium-text);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.payment-card ul li::before {
    content: "\2022";
    /* Bullet point */
    color: var(--color-dark-green);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
    top: 0;
}

/* Trust Factors */
.trust-card .icon-wrapper {
    font-size: 60px;
    margin-bottom: 20px;
}

.trust-card h3 {
    color: var(--color-dark-green);
    margin-bottom: 10px;
}

.trust-card p {
    font-size: 16px;
    color: var(--color-medium-text);
}

/* About Us */
.about-us-grid {
    align-items: flex-start;
    gap: 60px;
}

.about-us-text h2 {
    text-align: left;
}

.about-us-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-us-images {
    display: flex;
    flex-direction: column;
    /* Stack images if needed */
    gap: 20px;
    position: relative;
    padding-top: 30px;
    /* For overlay effect */
}

.about-us-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-medium);
}

.about-us-images img:nth-child(2) {
    transform: translateX(20px);
    /* Slight overlap effect */
    z-index: 2;
}

/* Blog Section */
.blog-card {
    padding: 0;
    text-align: left;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: var(--border-radius-base);
    border-top-right-radius: var(--border-radius-base);
    transition: transform 0.3s ease;
}

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

.blog-content {
    padding: 20px 30px 30px;
}

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

.blog-content p {
    font-size: 15px;
    color: var(--color-medium-text);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit text to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--color-medium-text);
    margin-top: auto;
    /* Push to bottom */
}

.blog-meta .read-more-btn {
    padding: 8px 15px;
    font-size: 14px;
    box-shadow: none;
    /* No shadow for small buttons */
}

/* Inner Page Specific Styles */
.blog-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-base);
    margin-bottom: 40px;
    box-shadow: var(--shadow-medium);
}

.content-section p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-dark-text);
    /* Ensure main content is dark text */
}

.content-section h2,
.content-section h3 {
    color: var(--color-dark-text);
}

.content-section ul {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 20px;
    color: var(--color-dark-text);
}

.content-section ul li {
    margin-bottom: 8px;
}


/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for footer */
    gap: 60px;
    align-items: flex-start;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    display: block;
}

.footer-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-info a:hover {
    color: var(--color-dark-green);
}

.footer-info .banking-info {
    font-size: 14px;
    margin-top: 20px;
}

.footer-info .privacy-policy {
    display: inline-block;
    margin-top: 20px;
    text-decoration: underline;
}

.footer-contacts h3 {
    color: var(--color-white);
    margin-bottom: 30px;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-buttons .button {
    width: 100%;
    max-width: 300px;
    font-size: 16px;
    padding: 12px 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-medium);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--color-dark-text);
    line-height: 1;
    padding: 0;
}

.modal-title {
    font-size: 30px;
    color: var(--color-dark-green);
    margin-bottom: 15px;
}

.modal-description {
    font-size: 18px;
    color: var(--color-medium-text);
    margin-bottom: 30px;
}

.modal-form .button {
    width: 100%;
    margin-top: 20px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 38px;
    }

    h3 {
        font-size: 26px;
    }

    .header-contacts {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .header-contacts .phone-number {
        font-size: 16px;
    }

    .header-contacts .button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .main-nav ul {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

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

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

    .calculator-block {
        flex-direction: column;
    }

    .calculator-image {
        min-width: unset;
        width: 100%;
        height: 300px;
    }

    .calculator-image img {
        border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
    }

    .calculator-form {
        min-width: unset;
        width: 100%;
        padding: 30px;
    }

    .filter-panel {
        justify-content: space-between;
    }

    .filter-select,
    .filter-search {
        flex-grow: 1;
        max-width: unset;
    }

    .cost-by-photo-content,
    .online-consultation-content {
        flex-direction: column;
        text-align: center;
    }

    .cost-by-photo-text,
    .online-consultation-text {
        text-align: center;
        max-width: 100%;
    }

    .cost-by-photo-text h2,
    .online-consultation-text h2 {
        font-size: 36px;
    }

    .cost-by-photo-text p,
    .online-consultation-text p {
        font-size: 18px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .consultation-grid {
        grid-template-columns: 1fr;
    }

    .consultation-form-block {
        padding: 30px;
    }

    .consultation-info-block {
        padding-left: 0;
        padding-top: 30px;
        text-align: center;
    }

    .consultation-topics {
        justify-content: center;
    }

    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-us-text h2 {
        text-align: center;
    }

    .about-us-images {
        flex-direction: row;
        /* Keep images side by side if enough space */
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-us-images img:nth-child(2) {
        transform: translateX(0);
        /* Remove overlap effect */
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .header-contacts {
        width: 100%;
        align-items: center;
    }

    .header-contacts .phone-number {
        display: none;
        /* Hide phone numbers on smaller screens to save space */
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title i {
        font-size: 32px;
    }

    .grid--2-cols,
    .grid--3-cols,
    .grid--4-cols {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        flex-direction: column;
    }

    .filter-select,
    .filter-search {
        width: 100%;
    }

    .project-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-buttons {
        align-items: center;
    }

    .footer-buttons .button {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .main-nav a:hover::after {
        width: 100%;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .button {
        padding: 12px 20px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }

    .section-title i {
        font-size: 28px;
    }

    .calculator-form,
    .consultation-form-block {
        padding: 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .button {
        max-width: 100%;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-description {
        font-size: 16px;
    }
}

/* --- Smart Hub Styles (Avant-Garde/Minimalism) --- */
.smart-hub {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.hub-controls {
    margin-bottom: 2rem;
}

.hub-search {
    position: relative;
    max-width: 400px;
}

.hub-search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.hub-search input:focus {
    outline: none;
    border-color: #333;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hub-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.hub-card {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.hub-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hub-card__image-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.hub-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hub-card:hover .hub-card__image-wrapper img {
    transform: scale(1.05);
}

/* Pattern Thumbnails */
.hub-card__image-wrapper.pattern-0 {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
}

.hub-card__image-wrapper.pattern-1 {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.hub-card__image-wrapper.pattern-2 {
    background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

.hub-card__image-wrapper.pattern-3 {
    background: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

.hub-card__image-wrapper.pattern-4 {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
}

.hub-card__image-wrapper.pattern-5 {
    background: linear-gradient(to right, #43e97b 0%, #38f9d7 100%);
}

.hub-card__image-wrapper.pattern-6 {
    background: linear-gradient(to top, #30cfd0 0%, #330867 100%);
}

.hub-card__image-wrapper.pattern-7 {
    background: linear-gradient(to right, #fa709a 0%, #fee140 100%);
}

.hub-card__image-wrapper.pattern-8 {
    background: linear-gradient(to top, #5ee7df 0%, #b490ca 100%);
}

.hub-card__image-wrapper.pattern-9 {
    background: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
}

.hub-card__content {
    padding: 1.5rem;
}

.hub-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
    line-height: 1.4;
}

.hub-card__excerpt {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
    line-height: 1.6;
}

.hub-footer {
    margin-top: 3rem;
    text-align: center;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    margin-bottom: 6rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
}

.related-posts__heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.related-post-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.related-post-card:hover {
    background: rgba(128, 128, 128, 0.05);
}

.related-post-card__image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}

.related-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-card__title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Utilities */
.btn-clean {
    background: none;
    border: 1px solid #333;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-clean:hover {
    background: #333;
    color: #fff;
}