/*
Theme Name: Каркасні Будинки
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Тема WordPress для сайту "Каркасні будинки – проектування та будівництво". Включає Custom Post Type для проєктів, адаптивний дизайн та панель налаштувань.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karkasni-budynky
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #819d29;
    --secondary-color: #abc22f;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* Global content lists */
ul {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}

ul li {
    position: relative;
    padding-left: 0.2rem;
}

ul li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.75em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(129, 157, 41, 0.15);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%
}

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

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 40px;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.mobile-panel {
    display: none;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
}

.site-logo img {
    display: block;
    height: auto;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-content: center;
}

.main-navigation a {
    color: #212121;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-menu li::before {
    content: none;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.header-contact-btn {
    background: transparent;
    color: #212121;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.header-contact-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.header-contact-btn span:last-child {
    font-size: 20px;
    font-weight: 600;
}

.header-contact-btn .btn-icon-svg {
    color: inherit;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background-image: var(--hero-bg-desktop);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 0;
}

.home .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
/*     background: transparent; */
    box-shadow: none;
}

.hero-overlay {
    display: none;
}

/* Single project hero */
.single-project-hero {
    min-height: 480px;
    align-items: flex-end;
}

.single-project-hero .hero-overlay {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.8) 100%);
}

.single-project-hero .hero-content {
    max-width: 60%;
    padding: 80px 0 50px;
}

.single-project-hero .hero-title {
    font-size: 52px;
    line-height: 1.15;
    text-transform: none;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.single-project-hero .hero-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(15, 21, 25, 0.9);
    color: #ffffff;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.single-project-hero .hero-price-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.single-project-hero .hero-price-value {
    font-size: 24px;
    font-weight: 700;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.hero-breadcrumb-icon {
    font-size: 16px;
}

.hero-breadcrumb-text {
    font-weight: 400;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 70%;
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 140px 0 60px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
    text-shadow: 3px 2px 2px rgb(0 0 0);
    text-transform: uppercase;
}

.hero-title-highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 400;
}

.hero-benefits {
    margin-bottom: 35px;
    max-width: 520px;
}

.hero-benefits p,
.hero-benefits ul,
.hero-benefits ol {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--text-dark);
}

.hero-benefits ul,
.hero-benefits ol {
    padding-left: 20px;
}

/* Consultation modal */
.kb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.kb-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.kb-modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 30px 25px;
    max-width: 640px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.kb-modal-overlay.active .kb-modal {
    transform: translateY(0);
    opacity: 1;
}

.kb-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
}

body.kb-modal-open {
    overflow: hidden;
}

.kb-modal-project-info {
    margin-top: 10px;
    margin-bottom: 15px;
}

.kb-modal-project-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.kb-modal-project-price {
    font-size: 16px;
    color: var(--text-dark);
}

.kb-modal-project-price span {
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .kb-modal-overlay {
        align-items: flex-start;
        padding-top: 40px;
    }

    .kb-modal {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .thankyou-page {
        padding: 120px 20px;
    }

    .thankyou-wrapper {
        padding: 40px 24px 36px;
    }

    .thankyou-title {
        font-size: 26px;
    }

    .thankyou-subtitle {
        font-size: 16px;
    }

    .hero-section {
        background-image: var(--hero-bg-mobile, var(--hero-bg-desktop));
        background-position: center top;
    }
}

.hero-stats {
    display: flex;
    flex-direction: row;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.stat-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: auto;
    box-shadow: none;
}

.stat-main {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.stat-box strong {
    display: block;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
    color: #ffffff;
}

.stat-caption {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-label {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-bottom-left {
    flex: 0 0 auto;
}

.hero-bottom-right {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.hero-section .btn-primary {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-svg {
    width: 20px;
    height: 20px;
}

.btn-primary .btn-icon-svg {
    color: #ffffff;
}

.header-contact-btn .btn-icon-svg {
    color: var(--primary-color);
}

.btn-secondary .btn-icon-svg {
    color: var(--secondary-color);
}

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

.btn-primary:hover {
    background: #6b7a21;
    border-color: #6b7a21;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 122, 33, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid rgba(129, 157, 41, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

/* Lightbox */
.kb-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.kb-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.kb-lightbox-image-wrap {
    max-width: 95vw;
    max-height: 100vh;
    position: relative;
}

.kb-lightbox-image-wrap img {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 10px;
}

.kb-lightbox-close,
.kb-lightbox-prev,
.kb-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}

.kb-lightbox-close {
    top: 20px;
    right: 20px;
    transform: none;
}

.kb-lightbox-prev {
    left: -60px;
}

.kb-lightbox-next {
    right: -60px;
}

@media (max-width: 768px) {
    .kb-lightbox-prev {
        left: 10px;
    }

    .kb-lightbox-next {
        right: 10px;
    }
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
}

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

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.project-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-spec {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 12px;
}

.project-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.project-card-actions .project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.project-card-actions .project-link:first-child {
    background: #ffffff;
    color: var(--text-dark);
    border-color: rgba(129, 157, 41, 0.3);
}

.project-card-actions .project-link:first-child:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.project-card-actions .project-discuss-link {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.project-card-actions .project-discuss-link:hover {
    background: #6b7a21;
    border-color: #6b7a21;
    box-shadow: 0 4px 12px rgba(107, 122, 33, 0.4);
    transform: translateY(-1px);
}

/* Project Single Gallery */
.project-gallery-section {
    margin-top: 50px;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.project-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.project-gallery-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

@media (max-width: 992px) {
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Project features (sidebar) */
.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.project-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-width: 0;
}

.project-feature-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-feature-icon-svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

.project-feature-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.project-feature-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
	text-transform: capitalize;
}

.project-feature-value {
    font-size: 14px;
    color: var(--text-light);
}

/* Single project layout */
.single-project-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 50px;
    align-items: flex-start;
}

.single-project-sidebar-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
}

@media (max-width: 992px) {
    .single-project-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-project-sidebar-card {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .single-project-sidebar-card {
        padding: 20px;
    }

    .project-gallery-section {
        margin-top: 30px;
    }
}

/* Advantages Section */
.advantages-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.advantages-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.advantages-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.advantages-image img {
    width: 100%;
    height: auto;
    display: block;
}

.advantages-text {
    font-size: 16px;
    color: var(--text-dark);
}

.advantages-text p {
    margin-bottom: 10px;
}

.advantages-bottom-text {
    margin-top: 40px;
    font-size: 16px;
    color: var(--text-dark);
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.why-choose-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.why-choose-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(129, 157, 41, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-choose-icon-img {
    width: 28px;
    height: 28px;
    display: block;
    color: var(--secondary-color);
}

.why-choose-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.why-choose-bottom-text {
    margin-top: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.services-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.services-image img {
    width: 100%;
    height: auto;
    display: block;
}

.services-text {
    font-size: 16px;
    color: var(--text-dark);
}

.services-text p {
    margin-bottom: 10px;
}

/* Title paragraph inside services text (e.g. "Наші основні послуги") */
.services-text p:first-child {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.services-text ul {
    margin-top: 6px;
}

.services-text ul li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 6px;
}

.services-bottom-text {
    margin-top: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-accordion {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.faq-item.is-open {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.faq-question-text {
    font-size: 18px;
    font-weight: 600;
    color: #0F1519;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.faq-icon-line {
    position: absolute;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon-line--h {
    width: 14px;
    height: 2px;
}

.faq-icon-line--v {
    width: 2px;
    height: 14px;
}

.faq-item.is-open .faq-icon-line--v {
    opacity: 0;
    transform: scaleY(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-question {
        padding: 16px 18px;
    }

    .faq-question-text {
        font-size: 16px;
    }

    .faq-answer-inner {
        padding: 0 18px 16px;
    }
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Consultation Section */
.consultation-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.consultation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.contact-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.contact-icon-svg {
    width: 24px;
    height: 24px;
}

.contact-details h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-primary);
    min-height: 120px;
    resize: vertical;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.privacy-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 15px;
}

/* Thank You Page */
.thankyou-page {
    padding: 140px 0;
    background: var(--bg-light);
}

.thankyou-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 60px 50px 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(129, 157, 41, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary-color);
}

.thankyou-icon svg {
    width: 40px;
    height: 40px;
}

.thankyou-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

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

.thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.thankyou-extra-content {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
}

/* Contact Page */
.contact-map {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: background 0.3s;
}

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

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}
.contact-map iframe{
    width: 100%;
    height: 350px;
}
/* Responsive Design */
@media (max-width: 900px) {
    .main-navigation--desktop {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-panel {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: #ffffff;
        box-shadow: -4px 0 12px rgba(0,0,0,0.15);
        padding: 80px 20px 30px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .mobile-panel.active {
        transform: translateX(0);
    }
    
    .main-navigation--mobile {
        width: 100%;
    }
    
    .main-navigation--mobile ul {
        flex-direction: column;
        gap: 15px;
        text-align: left;
        padding: 0;
        list-style: none;
        margin-bottom: 0px;
    }
    
    .header-contact-btn--desktop {
        display: none;
    }
    
    .mobile-panel .header-contact-btn--mobile {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }
    
    .hero-inner {
        padding: 120px 0 40px;
    }

    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hero-bottom-right {
        width: 100%;
        justify-content: flex-start;
        order: 1; /* показатели выше */
    }

    .hero-bottom-left {
        order: 2; /* кнопка ниже */
    }

    .hero-stats {
        flex-direction: row;
        gap: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .advantages-content {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-text p:first-child {
        font-size: 18px;
    }

    .services-text ul li {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .consultation-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .header-content {
        padding: 15px 0;
    }
    
    .site-logo {
        font-size: 20px;
    }
    
    .stat-box {
        min-width: 100%;
    }
    
    .calculator-form {
        padding: 25px 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Reviews Section */
.reviews-section {
    background: #f7f6f3;
    padding-bottom: 60px;
}

/* Metrics Section */
.metrics-section {
    padding: 60px 0;
    background: #ffffff;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    text-align: center;
}

.metrics-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.metrics-label {
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-light);
}

/* Blog Archive */
.blog-archive {
    padding: 70px 0 90px;
    background: #ffffff;
}

.blog-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-media {
    display: block;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card-placeholder {
    height: 220px;
    background: #f4f2ee;
    color: #a7a29a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #8b857c;
}

.blog-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text-dark);
}

.blog-card-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.blog-card-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary-color);
}

.blog-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 4px;
    border-radius: 999px;
    border: 1px solid #e3dfd8;
    color: var(--text-dark);
    font-weight: 600;
}

.blog-pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* News Section */
.news-section {
    padding: 70px 0 90px;
    background: #ffffff;
}

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

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-media {
    display: block;
    overflow: hidden;
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-card-placeholder {
    height: 220px;
    background: #f4f2ee;
    color: #a7a29a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.news-card:hover .news-card-image {
    transform: scale(1.03);
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-meta {
    font-size: 13px;
    color: #8b857c;
}

.news-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--text-dark);
}

.news-card-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.news-card-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary-color);
}

/* Single Post */
.single-post-hero {
    margin-bottom: 40px;
}

.single-post-image {
    width: 100%;
    height: clamp(240px, 40vw, 420px);
    object-fit: cover;
    display: block;
}

.single-post-header {
    margin-bottom: 30px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #8b857c;
    margin-bottom: 12px;
}

.single-post-title {
    font-size: 36px;
    margin: 0;
    color: var(--text-dark);
}

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.single-post-content h2,
.single-post-content h3 {
    margin-top: 28px;
}

.single-post-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #ece7df;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.single-post-tags {
    font-size: 14px;
    color: #8b857c;
}

.single-post-tags a {
    color: var(--primary-color);
    margin-right: 6px;
}

.single-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.single-post-nav a {
    color: var(--text-dark);
    font-weight: 600;
}

.reviews-carousel {
    position: relative;
    margin-top: 40px;
    --reviews-per-view: 3;
    padding: 0 24px;
}

.reviews-track-wrapper {
    overflow: hidden;
}

.reviews-track {
    display: flex;
    transition: transform 0.4s ease;
    margin: 0 -12px;
}

.review-card {
    flex: 0 0 calc(100% / var(--reviews-per-view));
    padding: 12px;
    box-sizing: border-box;
}

.review-card-inner {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-text {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

.review-text p {
    margin: 0 0 12px;
}

.review-text p:last-child {
    margin-bottom: 0;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(130, 160, 80, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.review-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.review-avatar-initial {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.review-name {
    font-weight: 700;
    color: var(--text-dark);
}

.review-position {
    font-size: 14px;
    color: #8b857c;
    margin-top: 4px;
}

.reviews-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.reviews-nav-prev {
    left: 0;
}

.reviews-nav-next {
    right: 0;
}

.reviews-nav.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

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

.kb-review-form textarea {
    width: 100%;
    min-height: 160px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-primary);
    resize: vertical;
}

.kb-review-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.reviews-empty {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    color: #8b857c;
    width: 100%;
}

@media (max-width: 1024px) {
    .reviews-nav-prev {
        left: 0;
    }

    .reviews-nav-next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .reviews-nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .metrics-section {
        padding: 40px 0;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

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

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

    .single-post-title {
        font-size: 30px;
    }

    .single-post-content {
        font-size: 17px;
    }
}

@media (max-width: 640px) {
    .reviews-carousel {
        margin-top: 24px;
    }
    .reviews-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .metrics-value {
        font-size: 38px;
    }

    .blog-archive {
        padding: 50px 0 70px;
    }

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

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

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

@media (max-width: 768px) {
    .kb-review-form .form-group {
        margin-bottom: 12px;
    }
}

/* Mobile styles for Single Project Hero */
@media (max-width: 768px) {
    .single-project-hero {
        min-height: auto;
        padding-bottom: 40px;
    }

    .single-project-hero .hero-content {
        max-width: 100%;
        padding: 60px 0 30px;
    }

    .single-project-hero .hero-title {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .single-project-hero .hero-price-badge {
        padding: 8px 16px;
        margin-top: 10px;
        gap: 8px;
    }

    .single-project-hero .hero-price-value {
        font-size: 18px;
    }

    .single-project-hero .hero-price-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .single-project-hero .hero-title {
        font-size: 24px;
    }

    .single-project-hero .hero-price-badge {
        padding: 6px 12px;
        gap: 6px;
    }

    .single-project-hero .hero-price-value {
        font-size: 16px;
    }
    
    .single-project-hero .hero-price-label {
        font-size: 11px;
    }
}


/* languages menu */
@media (min-width: 901px) {
    .pll-parent-menu-item.menu-item .sub-menu {
        display: none;
        flex-flow: column;
        margin: 0;
        padding: 6px;
        gap: 0;
        box-shadow: 0 0 15px 1px rgba(0, 0, 0, .3);
        border-radius: 8px;
        position: absolute;
        background: #fff;
    }

    .pll-parent-menu-item.menu-item:hover .sub-menu {
        display: flex;
    }
}

.pll-parent-menu-item.menu-item .sub-menu .current_page_item a {
    color: #819d29;
}

@media (max-width: 900px) {
    .pll-parent-menu-item.menu-item {
        padding: 0;
    }

    .pll-parent-menu-item.menu-item > a {
        display: none;
    }

    .pll-parent-menu-item.menu-item .sub-menu {
        margin: 0;
        padding: 0;
        flex-flow: column;
        gap: 0;
    }
}


/* Collapsible Sections */
.kb-collapsible-section {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white);
}

.kb-collapsible-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.kb-collapsible-header:hover {
    opacity: 0.9;
}

.kb-collapsible-icon {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.kb-collapsible-title {
    /* flex: 1; */
    font-weight: 600;
    letter-spacing: 0.5px;
}

.kb-collapsible-toggle {
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.kb-collapsible-section[data-expanded="false"] .kb-collapsible-toggle {
    transform: rotate(180deg);
}

.kb-collapsible-content {
    padding: 10px 20px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.kb-collapsible-section[data-expanded="false"] .kb-collapsible-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.kb-collapsible-content p {
    margin: 0 0 12px 0;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

.kb-collapsible-content p:last-child {
    margin-bottom: 15px;
}


/* Project card clickable */
.project-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
}

.project-discuss-link {
    position: relative;
    z-index: 10;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* === */

body.page-id-2 .hero-section,
body.page-id-351 .hero-section {
	position: relative;
}


body.page-id-2 .hero-section:before,
body.page-id-351 .hero-section:before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .3);
}

body.page-id-2 .hero-section .container .hero-inner,
body.page-id-351 .hero-section .container .hero-inner {
	justify-content: center;
}

body.page-id-2 .hero-section .hero-subtitle,
body.page-id-351 .hero-section .hero-subtitle {
	font-size: 25px;
}

@media (max-width: 768px) {
	body.page-id-2 .hero-section .hero-subtitle,
	body.page-id-351 .hero-section .hero-subtitle {
		font-size: 18px;
	}
}
