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

:root {
    --primary-color: #121737;
    --secondary-color: #DBBA82;
    --accent-color: #2c5f8d;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --border-color: #e1e4e8;
    --text-primary: #121737;
    --text-secondary: #6c757d;
    --success-color: #28a745;
    --spacing-unit: 8px;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

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

.stanovi.container {
        display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

header {
    background-color: var(--background-light);
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.social-icons {
    display: flex;
    gap: 24px;
}

.social-icons a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.social-icons a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    padding-right: 16px;
    border-right: 1px solid var(--border-color);
}

.lang-active {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.lang-separator {
    color: var(--border-color);
    font-size: 14px;
}

.lang-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.lang-link:hover {
    color: var(--primary-color);
}

.hero {
    padding: 80px 0;
    background-color: var(--background-gray);
}

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

.project-logo {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.hero h2 {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 32px;
}

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.btn-download {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    font-size: 14px;
}

.btn-download:hover {
    background-color: #234a6e;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about {
    padding: 100px 0;
}

.about h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    color: var(--primary-color);
}

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

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.location {
    padding: 100px 0;
    background-color: var(--background-gray);
}

.location h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--primary-color);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.location-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.location-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px 0;
    color: var(--primary-color);
}

.distance-list {
    list-style: none;
    margin-bottom: 32px;
}

.distance-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.distance-list .place {
    font-weight: 700;
    color: var(--text-primary);
}

.distance-list .time {
    color: var(--text-secondary);
}

.amenities-list {
    list-style: none;
    margin-bottom: 32px;
}

.amenities-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 16px;
}

.amenities-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.location-summary {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
    margin: 32px 0;
}

.location-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 100%;
}

.location-map::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.3;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.lifestyle-images {
    margin-top: 48px;
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lifestyle-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.lifestyle-grid img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.structure {
    padding: 100px 0;
}

.structure h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    color: var(--primary-color);
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.structure-item {
    background-color: var(--background-gray);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.structure-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.structure-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.structure-item p {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.apartments {
    padding: 100px 0;
    background-color: var(--background-gray);
}

.apartments h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    color: var(--primary-color);
}

.apartments-table {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.table-header {
    display: grid;
    grid-template-columns: 80px 200px 180px 150px 120px 120px 60px;
    gap: 16px;
    padding: 20px 24px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apartment-row {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.apartment-row.notavailable .expand-btn {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.apartment-row.notavailable .row-basic {
    cursor: default;
}

.apartment-row:hover {
    background-color: var(--background-gray);
}

.row-basic {
    display: grid;
    grid-template-columns: 80px 200px 180px 150px 120px 120px 60px;
    gap: 16px;
    padding: 20px 24px;
    align-items: center;
    cursor: pointer;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.available {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.sold {
    background-color: #f8d7da;
    color: #721c24;
}



.expand-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.apartment-row.expanded .expand-btn {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(45deg);
}

.row-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.apartment-row.expanded .row-expanded {
    max-height: 800px;
}

.apartment-details {
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background-color: var(--background-gray);
}

.apartment-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.apartment-image img:hover {
    transform: scale(1.02);
}

.apartment-specs h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.total-area {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.materials {
    padding: 100px 0;
}

.materials h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: var(--primary-color);
}

.materials-intro {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-container {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.slide {
    min-width: 100%;
    flex-shrink: 0;
}

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

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.contact {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.contact-form-wrapper h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: var(--primary-color);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
}

#contactForm .btn-primary {
    width: 100%;
    margin-top: 16px;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 40px 0;
}

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

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.footer-logo a:hover .footer-logo-img {
    opacity: 0.8;
}

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

.footer-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 16px;
}

.footer-info a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-info a:hover {
    opacity: 0.8;
}

@media (max-width: 968px) {
    .hero .container,
    .about-content,
    .location-content {
        grid-template-columns: 1fr;
    }

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

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

    .table-header,
    .row-basic {
        grid-template-columns: 60px 1fr 100px 50px;
        font-size: 12px;
    }

    .col-floor,
    .col-orientation,
    .col-structure {
        display: none;
    }

    .apartment-details {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .about h2,
    .location h2,
    .structure h2,
    .apartments h2 {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 0;
    }

    .about,
    .location,
    .structure,
    .apartments,
    .materials,
    .contact {
        padding: 60px 0;
    }

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

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

    .btn {
        width: 100%;
        text-align: center;
    }
    
    .apartment-image img {
        height: auto;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

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