/* ============================================
   Пансионат «Счастье» — элегантные стили
   ============================================ */

:root {
    --bg-cream: #FAF7F2;
    --bg-soft: #F5EFE5;
    --bg-card: #FFFFFF;
    --bg-overlay: rgba(61, 46, 31, 0.55);

    --accent: #B89968;
    --accent-dark: #9C7E51;
    --accent-light: #D4B98A;
    --accent-soft: #EFE4D0;

    --text-dark: #3D2E1F;
    --text-body: #4A4036;
    --text-muted: #8B7E6F;
    --text-light: #FFFFFF;

    --border: #E8DFD0;
    --shadow-sm: 0 2px 8px rgba(61, 46, 31, 0.06);
    --shadow-md: 0 8px 24px rgba(61, 46, 31, 0.08);
    --shadow-lg: 0 16px 40px rgba(61, 46, 31, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 999px;

    --container: 1200px;
    --transition: 0.35s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-body);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: var(--container);
    margin: 0 auto;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-dark);
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--accent-soft);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.brand-tagline {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: var(--text-body);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

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

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(184, 153, 104, 0.25);
    transition: all var(--transition);
}

.header-phone:hover {
    background: var(--accent-dark);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(184, 153, 104, 0.35);
}

.header-phone svg {
    width: 16px;
    height: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-dark);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 90px 0 110px;
    text-align: center;
    background:
        radial-gradient(ellipse at top, var(--accent-soft) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-soft) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 80%, rgba(212, 185, 138, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(212, 185, 138, 0.18) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--accent-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid var(--accent-soft);
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 60px);
    margin-bottom: 22px;
    color: var(--text-dark);
}

.hero h1 .accent {
    color: var(--accent-dark);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--text-body);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--text-light);
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(184, 153, 104, 0.3);
    transition: all var(--transition);
}

.hero-cta:hover {
    background: var(--accent-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(184, 153, 104, 0.4);
}

/* ============================================
   SECTION
   ============================================ */
.section {
    padding: 90px 0;
}

.section-soft {
    background: var(--bg-soft);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}

/* Decorative divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px auto;
}

.divider::before,
.divider::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-light);
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ============================================
   LOCATIONS CARDS
   ============================================ */
.locations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.location-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

.location-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.location-card:hover .location-card-image img {
    transform: scale(1.06);
}

.location-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(61, 46, 31, 0.45) 100%);
}

.location-card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    margin-bottom: 18px;
}

.location-card-icon svg {
    width: 28px;
    height: 28px;
}

.location-card-title {
    font-size: 26px;
    margin-bottom: 10px;
}

.location-card-meta {
    color: var(--accent-dark);
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 14px;
}

.location-card-desc {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 22px;
    flex: 1;
}

.location-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 15px;
    transition: gap var(--transition);
}

.location-card:hover .location-card-cta {
    gap: 14px;
}

.location-card-cta svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   FEATURES (advantages)
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   LEADERS
   ============================================ */
.leaders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 820px;
    margin: 0 auto;
}

.leader-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.leader-photo {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    margin: 0 auto 20px;
    overflow: hidden;
    background: var(--accent-soft);
    border: 4px solid var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-light), var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-photo-placeholder {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--accent-dark);
}

.leader-name {
    font-size: 24px;
    margin-bottom: 6px;
}

.leader-role {
    color: var(--accent-dark);
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ============================================
   CONTACTS
   ============================================ */
.contacts {
    background:
        linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-soft) 100%);
}

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

.contacts-info {
    padding: 20px 0;
}

.contacts-phone-block {
    display: inline-flex;
    flex-direction: column;
    background: var(--bg-card);
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 24px;
}

.contacts-phone-label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.contacts-phone-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.contacts-phone-number a {
    color: var(--text-dark);
}

.contacts-phone-number a:hover {
    color: var(--accent-dark);
}

.messengers {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.messenger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-soft);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.messenger-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.messenger-icon svg {
    width: 14px;
    height: 14px;
}

.messenger-tg .messenger-icon { background: #2AABEE; }
.messenger-wa .messenger-icon { background: #25D366; }
.messenger-max .messenger-icon { background: #FF8800; font-weight: 700; font-size: 11px; }

.contacts-decor {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.contacts-decor h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.contacts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contacts-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contacts-list-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacts-list-icon svg {
    width: 18px;
    height: 18px;
}

.contacts-list-text strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 2px;
    font-weight: 600;
}

.contacts-list-text span {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 50px 0 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.footer-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: white;
    font-weight: 600;
}

.footer-copy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-phone {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.footer-phone:hover {
    color: var(--accent-light);
}

/* ============================================
   PAGE — PANSIONAT (детальная страница)
   ============================================ */
.page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    color: var(--text-light);
    overflow: hidden;
    background: var(--text-dark);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(61, 46, 31, 0.35) 0%, rgba(61, 46, 31, 0.75) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 70px 24px 60px;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.breadcrumbs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a:hover {
    color: var(--accent-light);
}

.breadcrumbs span.sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.page-hero h1 {
    color: var(--text-light);
    font-size: clamp(34px, 5vw, 54px);
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
}

/* Description block */
.description {
    padding: 80px 0 60px;
}

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

.description-text p {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 18px;
}

.description-text p:last-child {
    margin-bottom: 0;
    color: var(--accent-dark);
    font-weight: 500;
    font-style: italic;
}

.description-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
}

.description-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery */
.gallery {
    padding: 30px 0 90px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(61, 46, 31, 0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 8, 0.92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 1100px;
    max-height: 90vh;
    width: 100%;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(6px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
    top: -56px;
    right: 0;
}

.lightbox-prev { left: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -64px; top: 50%; transform: translateY(-50%); }

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 24px;
        gap: 18px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .header-phone span {
        display: none;
    }

    .header-phone {
        padding: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .locations,
    .leaders {
        grid-template-columns: 1fr;
    }

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

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .description-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .description-image {
        aspect-ratio: 16/10;
        order: -1;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6) {
        grid-column: span 2;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; }
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 0 70px;
    }

    .section {
        padding: 60px 0;
    }

    .brand-tagline { display: none; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-name { font-size: 18px; }

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

    .contacts-phone-number {
        font-size: 26px;
    }

    .contacts-phone-block,
    .contacts-decor {
        padding: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6) {
        grid-column: span 1;
        grid-row: auto;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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