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

:root {
    --primary-dark: #0a1128;
    --primary-navy: #001f54;
    --accent-blue: #9ba9c7;
    --light-blue: #c5d8e8;
    --gold: #d4af37;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
    background: #ffffff;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 2rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: #FAFAFA;
    backdrop-filter: blur(30px);
    padding: 1.2rem 8%;
    box-shadow: 0 5px 40px rgba(0,0,0,0.05);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: white;
    transition: color 0.5s;
}

header.scrolled .logo {
    color: var(--primary-dark);
}

.header-right {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s, opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

header.scrolled .nav-links a {
    color: var(--primary-dark);
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

header.scrolled .social-links a {
    border-color: rgba(10,17,40,0.2);
    color: var(--primary-dark);
}

.social-links a:visited {
    color: white;
}

header.scrolled .social-links a:visited {
    color: var(--primary-dark);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 10px 30px rgba(10,17,40,0.3);
}

.cta-button {
    background: transparent;
    color: white;
    padding: 0.9rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: var(--primary-dark);
    border-color: white;
}

header.scrolled .cta-button {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

header.scrolled .cta-button::before {
    background: var(--primary-dark);
}

header.scrolled .cta-button:hover {
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #262626 0%, #262626 50%, #262626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 120px 5% 3rem;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(197,216,232,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(155,169,199,0.15) 0%, transparent 50%);
    animation: drift 20s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1 1 400px;
    max-width: 600px;
    text-align: left;
}

.hero-image {
    position: relative;
    z-index: 1;
    flex: 1 1 400px;
    width: 100%;
    max-width: 50%;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    font-weight: 300;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 1rem;
    opacity: 0;
    line-height: 1.8;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

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

@keyframes fadeInRotated {
    from {
        opacity: 0;
        transform: rotate(-90deg);
    }
    to {
        opacity: 1;
        transform: rotate(-90deg);
    }
}

/* Portfolio Section */
.portfolio {
    padding: 10rem 8%;
    background: #fafafa;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--primary-dark);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.section-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background: #e5e5e5;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10,17,40,0.8) 100%);
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.5s;
}

.portfolio-item:hover::before {
    opacity: 0.9;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 2;
    color: white;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-number {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.portfolio-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.portfolio-content p {
    opacity: 0;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
    transition: opacity 0.5s 0.1s;
}

.portfolio-item:hover .portfolio-content p {
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 10rem 8%;
    background: #FAFAFA;
}

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

.service-card {
    text-align: center;
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary-dark);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--light-blue);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--primary-dark);
}

.service-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
    font-size: 0.95rem;
}

.price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: 300;
    letter-spacing: 1px;
}

.price-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: #262626;
    color: white;
    padding: 8rem 8% 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.footer-subtitle {
    font-size: 1.1rem;
    margin-bottom: 4rem;
    opacity: 0.8;
    font-weight: 300;
}

.footer-social {
    margin: 4rem 0;
}

.footer-social .social-links a,
.footer-social .social-links a:visited {
    width: 50px;
    height: 50px;
    border-color: rgba(255,255,255,0.2);
    color: white;
    font-size: 1.2rem;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
}

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

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.8rem;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-value a,
.contact-value a:visited {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

.meta-disclaimer {
    font-size: 0.75rem;
    color: #888;
    margin-top: 1rem;
}

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        padding: 100px 5% 3rem;
        gap: 0.5rem;
    }

    .hero-content {
        flex: 1 1 auto;
        max-width: 100%;
        text-align: center;
        padding: 0;
    }

    .hero-image {
        max-width: 44vw;
        max-height: 55vw;
        transform: rotate(-90deg);
        animation: fadeInRotated 1s ease-out forwards;
        margin: 0 auto;
    }

    .hero-description {
        margin: 0 auto 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 5% 3rem;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        max-width: 56vw;
        max-height: 70vw;
        transform: rotate(-90deg);
        animation: fadeInRotated 1s ease-out forwards;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2.5rem;
    }

    header {
        padding: 1.2rem 4%;
    }

    .logo {
        font-size: 1.4rem;
    }

    .header-right {
        gap: 1rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.75rem;
    }

    .social-links {
        display: none;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .portfolio, .services {
        padding: 5rem 5%;
    }

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

    .footer-contact {
        flex-direction: column;
        gap: 2rem;
    }

    footer {
        padding: 5rem 5% 3rem;
    }

    .footer-content h2 {
        font-size: 2.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* Mobile: показываем описание при скролле */
    .portfolio-item.mobile-visible .portfolio-content {
        transform: translateY(0);
    }

    .portfolio-item.mobile-visible .portfolio-content p {
        opacity: 0.9;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 4% 2rem;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-image {
        max-width: 64vw;
        max-height: 80vw;
        transform: rotate(-90deg);
        animation: fadeInRotated 1s ease-out forwards;
        border-radius: 12px;
        margin: 0 auto;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
    }

    .logo {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .portfolio-content h3 {
        font-size: 1.8rem;
    }

    .service-card h3 {
        font-size: 1.6rem;
    }

    .price {
        font-size: 2rem;
    }

    .footer-content h2 {
        font-size: 2rem;
    }
}
