/* ============================================
   Пансионат «Забота и Уют» — элегантные стили
   ============================================ */

:root {
    --bg-cream: #FBF4EC;
    --bg-soft: #F6E6D6;
    --bg-card: #FFF9F4;
    --bg-overlay: rgba(92, 58, 46, 0.5);

    --accent: #C4784A;
    --accent-dark: #8C4A32;
    --accent-light: #E0A07A;
    --accent-soft: #F3DCC8;

    --sage: #7D8B6A;
    --sage-dark: #5E6B50;

    --text-dark: #5C3A2E;
    --text-body: #6B4E42;
    --text-muted: #9A7B6A;
    --text-light: #FFFFFF;

    --border: #E8D2C0;
    --shadow-sm: 0 2px 8px rgba(140, 74, 50, 0.06);
    --shadow-md: 0 8px 24px rgba(140, 74, 50, 0.08);
    --shadow-lg: 0 16px 40px rgba(140, 74, 50, 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(251, 244, 236, 0.94);
    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: auto;
    height: 58px;
    max-width: none;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: none;
    border: none;
    background: transparent;
}

.brand-text {
    display: none;
}

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

.brand-tagline {
    display: none;
}

.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: #25D366;
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all var(--transition);
}

.header-phone:hover {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.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 12% 85%, rgba(125, 139, 106, 0.18) 0%, transparent 42%),
        radial-gradient(circle at 88% 18%, rgba(196, 120, 74, 0.16) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 1040px;
    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(22px, 4.8vw, 54px);
    margin-bottom: 22px;
    color: var(--text-dark);
}

.hero-line {
    display: inline-block;
    white-space: nowrap;
}

.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(166, 93, 63, 0.28);
    transition: all var(--transition);
}

.hero-cta:hover {
    background: var(--accent-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(166, 93, 63, 0.36);
}

/* ============================================
   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);
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

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

.location-card-image {
    display: block;
    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-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.location-card-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.location-card-address:hover {
    border-bottom-color: var(--accent);
}

.location-card-address svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

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

.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: 720px;
    margin: 0 auto;
}

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

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

.leader-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    margin: 0 0 22px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.leader-photo img.leader-photo-natalya {
    object-position: center 10%;
}

.leader-photo-placeholder {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 600;
    color: var(--accent-dark);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-name {
    font-size: 24px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.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);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

a.messenger:hover {
    color: var(--text-dark);
    background: var(--accent-soft);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

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

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

.messenger-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.messenger-tg .messenger-icon { background: #2AABEE; }
.messenger-wa .messenger-icon { background: #25D366; }
.messenger-max .messenger-icon {
    background: transparent;
    border-radius: 6px;
}

.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 {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #E8CDB8;
    color: var(--text-body);
    padding: 36px 0 28px;
}

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

.footer-copy {
    font-size: 14px;
    color: var(--text-muted);
}

.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;
    grid-auto-flow: dense;
    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; }

/* Varied bento layout (Bugri gallery) */
.gallery-grid--varied .gallery-item:nth-child(1),
.gallery-grid--varied .gallery-item:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
}

.gallery-grid--varied .gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-grid--varied .gallery-item--wide {
    grid-column: span 2;
}

.gallery-grid--varied .gallery-item--tall {
    grid-row: 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;
    }

    .gallery-grid--varied .gallery-item--featured,
    .gallery-grid--varied .gallery-item--wide {
        grid-column: span 2;
    }

    .gallery-grid--varied .gallery-item--featured {
        grid-row: span 2;
    }

    .gallery-grid--varied .gallery-item--tall {
        grid-row: 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-text { display: none; }
    .brand-logo { height: 46px; border-radius: 8px; }

    .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;
    }

    .gallery-grid--varied .gallery-item--featured,
    .gallery-grid--varied .gallery-item--wide,
    .gallery-grid--varied .gallery-item--tall {
        grid-column: span 1;
        grid-row: auto;
    }

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

/* ============================================
   QUALIFICATION GRID
   ============================================ */
.qual-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.qual-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qual-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.qual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.qual-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 1000px) {
    .qual-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .qual-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .qual-grid { grid-template-columns: 1fr; }
}

/* ============================================
   DOWNLOAD BLOCK
   ============================================ */
.section-download {
    background: var(--bg-soft);
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

.download-block {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-md);
}

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

.download-icon svg {
    width: 32px;
    height: 32px;
}

.download-text {
    flex: 1;
}

.download-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.download-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.download-text p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

.download-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    box-shadow: 0 4px 14px rgba(166, 93, 63, 0.28);
    white-space: nowrap;
}

.download-btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 20px rgba(166, 93, 63, 0.36);
    transform: translateY(-1px);
}

.download-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .download-block {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        gap: 20px;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   APPLICATION FORM
   ============================================ */
.application-form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 36px 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 18px;
}

.form-grid--simple {
    grid-template-columns: 1fr 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

.form-field label span {
    color: var(--accent-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-cream);
    color: var(--text-body);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196, 120, 74, 0.2);
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
    border-color: #c45c4a;
}

.form-consent {
    margin-top: 4px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent-dark);
}

.form-actions {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(166, 93, 63, 0.28);
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
}

.form-submit:hover:not(:disabled) {
    background: var(--accent-dark);
    box-shadow: 0 6px 20px rgba(166, 93, 63, 0.36);
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    min-height: 1.4em;
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.form-status.is-success {
    color: #2f6b4f;
}

.form-status.is-error {
    color: #b14334;
}

@media (max-width: 768px) {
    .application-form {
        padding: 28px 20px;
    }

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

    .form-submit {
        width: 100%;
    }
}

/* ============================================
   CALLBACK WIDGET
   ============================================ */
.callback-widget {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.callback-fab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border: none;
    border-radius: var(--radius-full);
    background: #25D366;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.callback-fab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.callback-fab:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}

.callback-fab.is-pulse {
    animation: callbackPulse 1.6s ease-in-out 3;
}

@keyframes callbackPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.2); }
}

.callback-panel {
    width: min(340px, calc(100vw - 32px));
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 22px 22px 18px;
    position: relative;
}

.callback-panel[hidden] {
    display: none !important;
}

.callback-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.callback-panel-close:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.callback-panel-close svg {
    width: 16px;
    height: 16px;
}

.callback-panel-title {
    font-size: 20px;
    margin: 0 28px 6px 0;
    color: var(--text-dark);
}

.callback-panel-text {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.callback-panel .form-field {
    margin-bottom: 12px;
}

.callback-panel .form-consent {
    margin: 4px 0 14px;
}

.callback-panel .form-checkbox {
    font-size: 13px;
}

.callback-submit {
    width: 100%;
    min-width: 0;
}

.callback-panel .form-status {
    margin-top: 10px;
}

/* ============================================
   FLOATING NEWS BUTTON
   ============================================ */
.news-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--sage);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 28px rgba(94, 107, 80, 0.28);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.news-fab:hover {
    color: #fff;
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(94, 107, 80, 0.36);
}

@media (max-width: 600px) {
    .callback-widget {
        right: 16px;
        bottom: 76px;
    }

    .callback-fab {
        padding: 12px 16px;
        font-size: 13px;
    }

    .news-fab {
        right: 16px;
        bottom: 16px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================
   NEWS FEED
   ============================================ */
.news-page-hero {
    padding: 72px 0 28px;
    text-align: center;
    background:
        radial-gradient(ellipse at top, var(--accent-soft) 0%, transparent 62%),
        linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-soft) 100%);
}

.news-page-hero .breadcrumbs {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.news-page-hero .breadcrumbs a {
    color: var(--text-muted);
}

.news-page-hero .breadcrumbs a:hover {
    color: var(--accent-dark);
}

.news-page-hero .breadcrumbs span.sep {
    color: var(--border);
}

.news-page-hero h1 {
    margin-bottom: 12px;
}

.news-page-hero p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 820px;
    margin: 0 auto;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.news-card-title {
    font-size: 26px;
    margin-bottom: 16px;
}

.news-card-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.news-card-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-card-body p,
.news-card-text {
    color: var(--text-body);
    margin: 0;
    line-height: 1.7;
}

.news-subscribe {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.news-subscribe p {
    margin: 0 0 18px;
    color: var(--text-body);
    font-size: 16px;
}

.news-subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--sage);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(94, 107, 80, 0.28);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.news-subscribe-btn:hover {
    background: var(--sage-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(94, 107, 80, 0.34);
}

.news-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 20px 0 10px;
}

@media (max-width: 600px) {
    .news-card {
        padding: 22px 18px;
    }

    .news-card-gallery {
        grid-template-columns: 1fr;
    }

    .news-card-title {
        font-size: 22px;
    }
}

/* ============================================
   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);
}
