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

:root {
    --navy: #0a1628;
    --navy-light: #1a2942;
    --navy-mid: #243352;
    --gold: #c9a961;
    --gold-light: #dfc07a;
    --gold-dark: #a88b4a;
    --white: #f5f3ef;
    --gray: #8a95a5;
    --gray-light: #c5cdd8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    padding: 14px 60px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-logo span {
    color: var(--white);
    font-weight: 400;
}

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

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-phone {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-phone:hover {
    color: var(--gold-light);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.burger span {
    width: 26px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('images/hero-bg.png') center/cover no-repeat;
    filter: brightness(0.3);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.7) 50%, rgba(10, 22, 40, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 0 60px;
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(245, 243, 239, 0.25);
}

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

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(10px);
}

.stat {
    flex: 1;
    padding: 28px 40px;
    border-right: 1px solid rgba(201, 169, 97, 0.1);
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-text {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.3px;
}

.section {
    padding: 110px 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--navy-light);
    border: 1px solid rgba(201, 169, 97, 0.08);
    padding: 44px 36px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 97, 0.2);
    background: var(--navy-mid);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--gold);
}

.service-icon svg {
    width: 36px;
    height: 36px;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 14px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.7;
}

.advantages {
    background: var(--navy-light);
    border-top: 1px solid rgba(201, 169, 97, 0.08);
    border-bottom: 1px solid rgba(201, 169, 97, 0.08);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.adv-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 169, 97, 0.25);
    border-radius: 50%;
    position: relative;
    color: var(--gold);
    transition: all 0.4s ease;
}

.adv-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(201, 169, 97, 0.08);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.adv-item:hover .adv-icon {
    background: rgba(201, 169, 97, 0.08);
    border-color: var(--gold);
}

.adv-item:hover .adv-icon::before {
    inset: -12px;
    border-color: rgba(201, 169, 97, 0.15);
}

.adv-icon svg {
    width: 38px;
    height: 38px;
}

.adv-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 600;
}

.adv-item p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

.team-section {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-viewport {
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lawyer-card {
    flex: 0 0 calc((100% - 48px) / 3);
    background: var(--navy-light);
    border: 1px solid rgba(201, 169, 97, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.lawyer-card:hover {
    border-color: rgba(201, 169, 97, 0.3);
    transform: translateY(-4px);
}

.lawyer-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--navy-mid);
}

.lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(15%);
}

.lawyer-card:hover .lawyer-photo img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.lawyer-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.7) 0%, transparent 50%);
    pointer-events: none;
}

.lawyer-info {
    padding: 30px 28px 34px;
    position: relative;
    text-align: center;
}

.lawyer-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.lawyer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.35;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 50px;
}

.gallery-btn {
    width: 52px;
    height: 52px;
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-btn:hover:not(:disabled) {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

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

.gallery-dots {
    display: flex;
    gap: 10px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.gallery-dot.active {
    background: var(--gold);
    width: 28px;
    border-radius: 4px;
}

.gallery-counter {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--gray-light);
    letter-spacing: 1px;
}

.gallery-counter .current {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
}

.cta-section {
    position: relative;
    padding: 100px 60px;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.cta-border {
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(201, 169, 97, 0.15);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--gray-light);
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-list .icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(201, 169, 97, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

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

.contact-list .label {
    font-size: 0.78rem;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-list .value {
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
}

.contact-list .value a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-list .value a:hover {
    color: var(--gold);
}

.contact-form {
    background: var(--navy-light);
    border: 1px solid rgba(201, 169, 97, 0.1);
    padding: 44px;
}

.contact-form h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 8px;
}

.contact-form > p {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.78rem;
    color: var(--gray);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--navy);
    border: 1px solid rgba(201, 169, 97, 0.15);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    outline: none;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.form-submit:hover {
    background: var(--gold-light);
}

.footer {
    padding: 40px 60px;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
}

.footer-right {
    font-size: 0.82rem;
    color: var(--gray);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lawyer-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 16px 24px;
    }
    .nav.scrolled {
        padding: 12px 24px;
    }
    .nav-links {
        display: none;
    }
    .nav-phone {
        display: none;
    }
    .burger {
        display: flex;
    }
    .section {
        padding: 70px 24px;
    }
    .hero-content {
        padding: 0 24px;
    }
    .hero-stats {
        flex-direction: column;
    }
    .stat {
        padding: 20px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(201, 169, 97, 0.1);
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .adv-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .lawyer-card {
        flex: 0 0 100%;
    }
    .gallery-btn {
        width: 44px;
        height: 44px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form {
        padding: 28px;
    }
    .cta-section {
        padding: 70px 24px;
    }
    .footer {
        padding: 30px 24px;
        flex-direction: column;
        text-align: center;
    }
}