/* TIREK – shared header and base (same on all pages) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&display=swap');

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

/* Palette: white, primary blue #1F5F9C, accent #B5BAC1, beige #f5f5f0 */
:root {
    --header-height: 56px;
    --color-primary: #1F5F9C;
    --color-primary-hover: #2868a8;
    --color-accent: #B5BAC1;
    --color-beige: #f5f5f0;
    --color-beige-dark: #B5BAC1;
    --color-beige-border: #e8e4de;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background: var(--color-beige);
}

/* Header – fixed, white bar; hero/main sit flush below */
header {
    background: #fff;
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.hero,
.main-container {
    margin-top: var(--header-height);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: #636e72;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

#menuToggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile nav – same behavior on all pages (768px and 968px for wider layouts) */
@media (max-width: 968px) {
    nav {
        padding: 0 1.5rem;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 56px;
        flex-direction: column;
        background: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    #menuToggle {
        display: block;
    }
}

/* Primary hero – same size on all pages that use it (Проекты, О компании, Галерея) */
.hero.hero-primary {
    background: linear-gradient(135deg, #1F5F9C 0%, #2868a8 100%);
    padding: 6rem 3rem;
    text-align: center;
    color: white;
}
.hero.hero-primary h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -1px;
}
.hero.hero-primary p {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 300;
}
@media (max-width: 968px) {
    .hero.hero-primary h1 { font-size: 2.5rem; }
    .hero.hero-primary p { font-size: 1.1rem; }
}
@media (max-width: 640px) {
    .hero.hero-primary { padding: 4rem 2rem; }
    .hero.hero-primary h1 { font-size: 2rem; }
}

/* Primary CTA section – same size on all pages (Главная, Проекты, Квартиры, О компании, Галерея) */
.cta-section {
    background: linear-gradient(135deg, #1F5F9C 0%, #2868a8 100%);
    padding: 6rem 3rem;
    text-align: center;
    color: white;
}
.cta-content {
    max-width: 900px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}
.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.7;
}
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-btn-white {
    background: white;
    color: #1F5F9C;
    padding: 1rem 2.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}
.cta-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.cta-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 1rem 2.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}
.cta-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
@media (max-width: 968px) {
    .cta-content h2 { font-size: 2.2rem; }
}
@media (max-width: 640px) {
    .cta-buttons { flex-direction: column; }
    .cta-btn-white, .cta-btn-outline { width: 100%; }
}
