:root {
    --bg-main: #22252A;
    --bg-alt: #2C3036;
    --bg-card: #363B42;
    --green-salat: #9AE66E;
    --green-hover: #7BCB4D;
    --text-main: #F2F4F8;
    --text-muted: #9BA4B5;
    --border-color: #4A515A;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

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

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

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

.section {
    padding: 100px 0;
    width: 100%;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 10px;
}

.btn-green {
    background: var(--green-salat);
    color: var(--bg-main);
}

.btn-green:hover {
    background: var(--green-hover);
    transform: translateY(-2px);
}



.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--border-color);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

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

.logo {
    display: block;
    width: auto;
    height: 60px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--green-salat);
}

.hero-split {
    padding: 160px 0 100px;
    width: 100%;
}

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

.badge {
    display: inline-block;
    background: rgba(154, 230, 110, 0.1);
    color: var(--green-salat);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

.hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

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

.hero-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--wood);
    border-radius: 12px;
    z-index: -1;
}

.center-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.center-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.center-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-alt);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--green-salat);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.icon-circle.wood {
    background: rgba(193, 140, 93, 0.15);
    color: var(--wood);
}

.icon-circle.green {
    background: rgba(154, 230, 110, 0.15);
    color: var(--green-salat);
}

.center-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
}

.services-zigzag {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--bg-main);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.service-row.reverse {
    direction: rtl;
}

.service-row.reverse .service-text {
    direction: ltr;
}

.service-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.service-icon {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.service-icon.green-box {
    background: rgba(154, 230, 110, 0.05);
    color: var(--green-salat);
    border: 1px dashed var(--green-salat);
}

.service-icon.wood-box {
    background: rgba(193, 140, 93, 0.05);
    color: var(--wood);
    border: 1px dashed var(--wood);
}

.gallery-strict-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--bg-card);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.8;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(34, 37, 42, 0.95));
    transition: var(--transition);
}

.gallery-overlay h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--green-salat);
}

.contact-cards-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto 40px auto; /* Центрируем весь блок над формой */
}

.contact-mini-card {
    background: var(--bg-main);
    padding: 20px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center; /* Выравниваем иконку и текст по центру */
    gap: 20px;
    transition: var(--transition);
    width: 100%;
}

.contact-mini-card:hover {
    border-color: var(--wood);
}

.contact-mini-card i {
    font-size: 1.5rem;
    color: var(--wood);
    margin-bottom: 0; /* Убираем отступ снизу, так как текст теперь сбоку */
    display: block;
}

.contact-mini-card span {
    font-size: 1.1rem;
    font-weight: 500;
}

.form-centered {
    margin: 0 auto;
    background: var(--bg-main);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-centered input,
.form-centered textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: inherit;
    border-radius: 4px;
    transition: var(--transition);
}

.form-centered textarea {
    margin-bottom: 20px;
}

.form-centered input:focus,
.form-centered textarea:focus {
    outline: none;
    border-color: var(--green-salat);
}

.form-btn {
    width: 100%;
}

.footer {
    background: #15171A;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mobile-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366; /* Цвет звонка */
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    display: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-image { margin-top: 40px; }
    .hero-image::after { display: none; }
    .hero-split { padding: 120px 0 80px; }
    .service-row { grid-template-columns: 1fr; gap: 30px; }
    .service-row.reverse { direction: ltr; }
    .service-row.reverse .service-text { direction: ltr; }
}

@media (max-width: 768px) {
    .nav-container{justify-content: center;}
    .nav-links { display: none; }
    .logo{height: 40px;}
    .hero-content h1 { font-size: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .contact-cards-row {flex-direction: column;}

    .mobile-call-btn {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}