:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --secondary: #1e293b;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #94a3b8;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 0 0 0 0;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 25px 15px 0 15px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media (max-width:340px) {
    .logo {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
}


.logo-badge {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.logo-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.contact-info {
    display: flex;
    vertical-align: bottom;
    gap: 25px;
    padding: 0 0 10px 0;
}

.contact-item {
    display: flex;
    gap: 8px;
    font-weight: 500;
    padding: 20px 0 0 0;
}

.contact-item i {
    color: var(--primary);
    font-size: 18px;
    padding: 4px 0 0 0;
}

.contact-item span {
    font-size: 19px;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 34px 28px;
    height: 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

@media (max-width:500px) {
    .btn {
        background: var(--primary);
        color: white;
        border: none;
        padding: 34px 28px;
        height: 40px;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .nav-container {
        background: var(--secondary);
        padding: 10px 0;
        margin-top: 20px;

    }

    .contact-info {
        display: flex;
        vertical-align: bottom;
        gap: 25px;
    }

    .contact-item {
        gap: 8px;
        font-weight: 500;
        padding: 0 0 0 0;
    }

    .header-container {
        display: flex;
        justify-content: space-evenly;
        padding: 5px 5px 0 0;
    }
}

.nav-container1 {
    display: flex;
    justify-content: center;
    background: white;
    padding: 10px 0;
    margin-bottom: 40px;
    margin-bottom: 60px;
}

.nav-container2 {
    display: flex;
    justify-content: center;
    background: white;
    padding: 10px 0;
    margin-bottom: 40px;
    margin-bottom: 38px;
}

.nav-links {
    display: flex;
    text-transform: uppercase;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.nav-link {
    color: var(--light);
    background-color: #0f172a;
    text-decoration: none;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 30px;
    transition: var(--transition);
}

.nav-link:hover {
    transform: translateY(-2px);
}

.hero {
    height: 85vh;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('../img/HandShake1.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

section {
    padding: 80px 0;
}

.container-photo {
    overflow: hidden;
    position: absolute;
    max-width: 100%;
    width: 900px;
    rotate: 280deg;
    left: 103%;
    top: 10%;
}

.container-photo1 {
    overflow: hidden;
    position: absolute;
    max-width: 100%;
    width: 700px;
    height: 400px;
    left: 110%;
    bottom: 4%;
}

.container-photo2 {
    overflow: hidden;
    position: absolute;
    width: 800px;
    left: -20%;
    top: -22%;
}

.container-photo3 {
    overflow: hidden;
    position: absolute;
    width: 900px;
    left: 37%;
    top: -25%;
    rotate: 90deg;
    z-index: 1;
}

.container {
    width: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    height: 400px;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.service-card-front {
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
}

.service-card-back {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    color: white;
}

.service-header {
    padding: 0;
    border: none;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.service-description {
    margin-bottom: 25px;
    color: var(--gray);
    flex-grow: 1;
}

.service-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.service-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.service-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.service-btn.details {
    background: rgba(255, 255, 255, 0.3);
}

.service-btn.details:hover {
    background: rgba(255, 255, 255, 0.4);
}

@media (max-width:480px) {
    .services-grid {
        display: block;
        padding: 5px 0 0 5px;
    }
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

details.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.advantage {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.advantage:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.advantage-text h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.property-info {
    padding: 25px;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.property-address {
    color: var(--gray);
    margin-bottom: 15px;
    font-style: italic;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
    color: var(--gray);
}

.partners {
    background: var(--secondary);
    color: white;
    padding: 80px 0;
}

.partners .section-title {
    color: white;
}

.partners .section-title::after {
    background: var(--primary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    justify-items: center;
}

.partner-logo {
    width: 120px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
}

.partner-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.contacts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
    z-index: 1;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.social-details {
    background-image: url(../img/blackSmart.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding-top: 100px;
    width: 140%;
}

.social-links {
    width: 85%;
    padding-left: 120px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link.vk {
    background: #4C75A8;
    color: white;
}

.social-link.telegram {
    background: #0088cc;
    color: white;
}

.social-link.avito {
    background: #f97316;
    color: white;
}

.social-link.cian {
    background: #007bff;
    color: white;
}

.map-section {
    background: var(--secondary);
    color: white;
    padding: 80px 0;
}

.map-container {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--dark);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input {
    margin-top: 4px;
}


.service-detail-content {
    text-align: center;
}

.service-detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-detail-content p {
    margin-bottom: 30px;
    color: var(--gray);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-content {
        flex-direction: column;
    }

    .service-card {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 15px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .service-card {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .property-card {
        max-width: 350px;
        margin: 0 auto;
        padding-bottom: 10px;
    }

    .service-card {
        height: 300px;
    }

    .service-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.contact-section-unique {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    padding: 60px 20px;
    min-height: 33vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section-unique * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.contact-section-unique .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-align: center;
}

.contact-section-unique .title-underline {
    width: 60px;
    height: 3px;
    background: #f57c2e;
    margin: 0 auto 40px;
    border-radius: 2px;
}

.contact-section-unique .contact-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    max-width: 960px;
    width: 100%;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

.contact-section-unique .photo-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.contact-section-unique .photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.contact-section-unique .director-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #f57c2e;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-section-unique .info-container {
    padding: 10px 0;
}

.contact-section-unique .name {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.contact-section-unique .position {
    font-size: 14px;
    font-weight: 600;
    color: #f57c2e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.contact-section-unique .description {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 32px;
    max-width: 520px;
}

.contact-section-unique .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fb;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: background 0.2s ease;
}

.contact-section-unique .contact-item:hover {
    background: #f0f1f5;
}

.contact-section-unique .contact-icon {
    width: 44px;
    height: 44px;
    background: #f57c2e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-section-unique .contact-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.contact-section-unique .contact-details {
    flex: 1;
    min-width: 0;
}

.contact-section-unique .contact-label {
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-section-unique .contact-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    word-break: break-word;
}

.contact-section-unique .social-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eeeeee;
}

.contact-section-unique .social-link {
    width: 40px;
    height: 40px;
    background: #f8f9fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-section-unique .social-link:hover {
    background: #f57c2e;
}

.contact-section-unique .social-link:hover svg {
    fill: #ffffff;
}

.contact-section-unique .social-link svg {
    width: 18px;
    height: 18px;
    fill: #1a1a1a;
    transition: fill 0.2s ease;
}

@media (max-width: 768px) {
    .contact-section-unique .contact-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }

    .contact-section-unique .photo-container {
        max-width: 320px;
        margin: 0 auto;
        aspect-ratio: 4/5;
    }

    .contact-section-unique .section-title {
        font-size: 26px;
    }

    .contact-section-unique .name {
        font-size: 24px;
    }
}

.wrapper {
    max-width: 100%;
    overflow: hidden;
}
