/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1e2a3a;
    background: #fff;
}

h1, h2, h3, h4, h5, h6, .title-font {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eef2f5;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.logo img {
    max-height: 70px;
    width: auto;
}

.logo-text {
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    color: #1e2a3a;
}

.social-links {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

.social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            border-radius: 40%;
            
            transition: all 0.3s ease;
            color: #159b56;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
.social-icon:hover {
            transform: translateY(-4px);
            
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        }
.social-icon svg {
            width: 35px;
            height: 35px;
            fill: #20bf6b;
        }

/* Hero section (только на главной) */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0px;

}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
}

/* Common sections */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: left;
}

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

.text-block {
    max-width: 900px;
    margin: 0 auto;
}

.text-block p {
    margin-bottom: 1.2em;
}

/* Two-column layout for history / about */
.two-columns {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.two-columns.reverse {
    flex-direction: row-reverse;
}

.two-columns .image {
    flex: 1;
}

.two-columns .image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.two-columns .text {
    flex: 1;
}

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

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.service-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 20px 15px 10px;
}

.service-card .btn {
    display: inline-block;
    margin: 0 15px 20px;
    padding: 8px 20px;
    border: 2px solid #20bf6b;
    color: #20bf6b;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
}

.service-card .btn:hover {
    background: #20bf6b;
    color: white;
}

/* Directions grid (2 columns) */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.direction-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.direction-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
}

.direction-card h4 {
    margin-top: 15px;
    font-size: 1.3rem;
}

.direction-card a:hover {
    color: #20bf6b;
}

/* Выделенная карточка объекта (для realty и estate) */
.featured-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #eef2f5;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 45px -12px rgba(0,0,0,0.25);
}

.featured-card img {
    width: 100%;
    transition: transform 0.4s ease;
}

.featured-card:hover img {
    transform: scale(1.02);
}

.featured-card h4,
.featured-card p,
.featured-card .btn,
.featured-card .card-text {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.featured-card:hover h4 {
    color: #20bf6b;
}

.featured-card:hover .btn {
    background-color: #20bf6b;
    border-color: #20bf6b;
    color: white;
}

/* Slider */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: 40px auto 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    flex: 0 0 100%;
    position: relative;
}

.slider-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 2;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

.slider-dots {
    text-align: center;
    padding: 10px 0 0 0;
    background: transparent;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background-color: #20bf6b;
}

/* Info block under slider */
.info-block {
    text-align: center;
    background: #f0f9f4;
    padding: 40px 20px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 900px;
}

.info-block p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #1e2a3a;
}

.info-block p:last-of-type {
    margin-bottom: 0;
}

.info-block strong {
    color: #20bf6b;
}

/* Кнопка "Назад" */
        .back-button-wrapper {
            margin-bottom: 25px;
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: transparent;
            border: none;
            color: #20bf6b;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 40px;
            transition: all 0.2s ease;
        }

        .back-button svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
            transition: transform 0.2s ease;
        }

        .back-button:hover {
            background: rgba(32, 191, 107, 0.1);
            color: #159b56;
        }

        .back-button:hover svg {
            transform: translateX(-3px);
        }


/* === Footer === */
.site-footer {
    background: #1e2a3a;
    color: #cbd5e1;
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #20bf6b;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #20bf6b;
    padding-left: 4px;
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

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

.footer-social-icon:hover {
    background: #20bf6b;
    transform: translateY(-3px);
}

.footer-social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2d3e4e;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #20bf6b;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-col h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-links {
        text-align: center;
    }
}
/* Buttons */
.btn-primary {
    display: inline-block;
    background: #20bf6b;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #159b56;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #20bf6b;
    padding: 10px 25px;
    border-radius: 40px;
    color: #20bf6b;
    font-weight: 500;
}

.btn-outline:hover {
    background: #20bf6b;
    color: white;
}

/* Карточка объекта недвижимости (выделенная) */
.property-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 40px 0;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 45px -12px rgba(0, 0, 0, 0.2);
}

.property-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.property-card-content {
    padding: 25px;
}

.property-card h4 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    transition: color 0.2s ease;
}

.property-card p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.property-card .btn {
    display: inline-block;
    background: #20bf6b;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s;
}

.property-card .btn:hover {
    background: #159b56;
}

/* При наведении на всю карточку — подсветка текста */


/* При наведении на карточку кнопка остаётся зелёной, но можно добавить небольшое увеличение */
.property-card:hover .btn {
    background: #159b56;
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .section { padding: 40px 0; }
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .directions-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; text-align: center; }
    .social-links { margin-left: 0; }
    .logo-text { font-size: 0.9rem; }
    .slider-slide img { height: 300px; }
    .slider-btn { font-size: 1.5rem; padding: 6px 12px; }
    .featured-card { margin: 0 10px; }
}



.properties-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        .property-card {
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            transition: transform 0.2s, box-shadow 0.2s;
            border: 1px solid #eef2f5;
        }
        .property-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }
        .property-card img {
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            display: block;
        }
        .property-card-content {
            padding: 20px;
        }
        .property-card h3 {
            font-size: 1.3rem;
            margin-bottom: 10px;
            font-family: 'Rubik', sans-serif;
        }
        .property-price {
            font-size: 1.4rem;
            font-weight: 700;
            color: #20bf6b;
            margin: 10px 0;
        }
        .property-location {
            font-size: 0.9rem;
            color: #475569;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .btn-sm {
            display: inline-block;
            background: #20bf6b;
            color: white;
            padding: 8px 20px;
            border-radius: 40px;
            font-weight: 500;
            text-decoration: none;
            transition: background 0.2s;
            font-size: 0.9rem;
        }
        .btn-sm:hover {
            background: #159b56;
        }
        @media (max-width: 768px) {
            .properties-grid {
                grid-template-columns: 1fr;
            }
        }