:root {
    --c-bg: #f7f5f1;
    --c-bg-alt: #efece6;
    --c-ink: #1a1a1a;
    --c-ink-soft: #4a4a4a;
    --c-muted: #8a8a8a;
    --c-line: #d9d4ca;
    --c-accent: #b08a3e;
    --c-accent-soft: #d8b97a;
    --c-white: #ffffff;
    --c-black: #0c0c0c;
    --shadow-1: 0 4px 24px rgba(20, 20, 20, 0.06);
    --shadow-2: 0 18px 60px rgba(20, 20, 20, 0.12);
    --radius: 2px;
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin: 0 0 0.5em;
    color: var(--c-ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin: 0 0 1em; color: var(--c-ink-soft); }

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent); }

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

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

.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 18px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    background: var(--c-ink);
    color: var(--c-white);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid var(--c-ink);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .25s ease;
}
.btn:hover { background: transparent; color: var(--c-ink); }
.btn-light { background: transparent; color: var(--c-white); border-color: var(--c-white); }
.btn-light:hover { background: var(--c-white); color: var(--c-ink); }
.btn-accent { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn-accent:hover { background: transparent; color: var(--c-accent); }

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 18px 0;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
    background: rgba(247, 245, 241, 0.96);
    box-shadow: var(--shadow-1);
    padding: 10px 0;
    backdrop-filter: blur(6px);
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: var(--c-ink);
    color: var(--c-white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; letter-spacing: 0.04em; }
.brand-sub { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-muted); }

.primary-nav { display: flex; gap: 28px; }
.primary-nav .nav-link {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-ink);
    position: relative;
    padding: 6px 0;
}
.primary-nav .nav-link.active::after,
.primary-nav .nav-link:hover::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--c-accent);
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--c-ink); margin: 5px 0; transition: .25s; }

@media (max-width: 980px) {
    .primary-nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(360px, 84vw);
        flex-direction: column;
        background: var(--c-bg);
        padding: 100px 40px 40px;
        gap: 18px;
        transform: translateX(100%);
        transition: transform .35s ease;
        box-shadow: var(--shadow-2);
    }
    .primary-nav.open { transform: translateX(0); }
    .nav-toggle { display: inline-block; }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero {
    --hero-image: url("https://images.unsplash.com/photo-1582719508461-905c673771fd?auto=format&fit=crop&w=2000&q=80");
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%),
        var(--hero-image) center/cover no-repeat;
    z-index: -1;
}
.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 140px var(--gutter) 80px;
    width: 100%;
}
.hero .eyebrow { color: var(--c-accent-soft); }
.hero h1 { color: #fff; max-width: 800px; }
.hero p.lead { font-size: 1.1rem; max-width: 580px; color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
}
.hero-scroll::after {
    content: ""; display: block; width: 1px; height: 40px; margin: 12px auto 0;
    background: rgba(255,255,255,0.5);
}

/* Sections */
section { padding: clamp(60px, 9vw, 120px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head p { color: var(--c-muted); }

/* Features (3 cols) */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}
.feature {
    padding: 50px 40px;
    text-align: center;
    border-right: 1px solid var(--c-line);
}
.feature:last-child { border-right: 0; }
.feature-icon {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    display: grid; place-items: center;
    border: 1px solid var(--c-accent);
    color: var(--c-accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    border-radius: 50%;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--c-muted); margin: 0; font-size: 0.95rem; }

@media (max-width: 780px) {
    .features { grid-template-columns: 1fr; }
    .feature { border-right: 0; border-bottom: 1px solid var(--c-line); }
    .feature:last-child { border-bottom: 0; }
}

/* About split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
}
.split-image {
    aspect-ratio: 4 / 5;
    background: var(--c-bg-alt) url("https://images.unsplash.com/photo-1551776235-dde6d482980b?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
    position: relative;
}
.split-image::after {
    content: "";
    position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,0.5);
    pointer-events: none;
}
.split-image.alt { background-image: url("/img/about-sukhum.jpg"); }
.split-text .eyebrow { display: block; }
.split-text .quote {
    border-left: 2px solid var(--c-accent);
    padding-left: 20px;
    margin: 24px 0 32px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--c-ink);
}
@media (max-width: 880px) {
    .split { grid-template-columns: 1fr; }
}

/* Video block */
.video-block {
    position: relative;
    height: clamp(360px, 55vh, 560px);
    background: #111 url("https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
}
.video-block::before {
    content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.45);
}
.video-block > * { position: relative; z-index: 1; }
.play-btn {
    width: 92px; height: 92px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
    margin: 0 auto 20px;
    transition: all .25s ease;
}
.play-btn:hover { background: rgba(255,255,255,0.15); transform: scale(1.05); }
.play-btn::before {
    content: ""; display: block;
    border-style: solid; border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 6px;
}
.video-block h2 { color: #fff; }
.video-block p { color: rgba(255,255,255,0.8); }
.play-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.play-btn[disabled]:hover { background: rgba(255,255,255,0.05); transform: none; }
.video-block.playing { background: #000; }
.video-block.playing::before { background: transparent; }
.video-block-player {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 2;
}

/* Rooms grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.room-card {
    background: var(--c-white);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.room-image {
    aspect-ratio: 4 / 3;
    background-size: cover; background-position: center;
    position: relative;
}
.room-image .price-tag {
    position: absolute; bottom: 16px; left: 16px;
    background: rgba(255,255,255,0.95);
    color: var(--c-ink);
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    padding: 8px 14px;
}
.room-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.room-meta { display: flex; gap: 16px; font-size: 13px; color: var(--c-muted); margin-bottom: 10px; }
.room-body h3 { margin-bottom: 10px; }
.room-body p { flex: 1; color: var(--c-ink-soft); font-size: 0.95rem; }
.room-cta { margin-top: 18px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-accent); }
.room-cta::after { content: " →"; }

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

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.gallery-item {
    aspect-ratio: 1 / 1;
    background-size: cover; background-position: center;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.gallery-zoom {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: #fff; font-size: 28px;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-item.tall { aspect-ratio: 1 / 2; grid-row: span 2; }
.gallery-item.wide { aspect-ratio: 2 / 1; grid-column: span 2; }

/* Lightbox */
.gallery-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: grid; place-items: center;
    padding: 40px;
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    display: block;
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity .2s ease;
    line-height: 1;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover { opacity: 1; }
.gallery-lightbox-close { top: 18px; right: 22px; font-size: 36px; padding: 4px 12px; }
.gallery-lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 52px; padding: 0 14px; }
.gallery-lightbox-nav.prev { left: 12px; }
.gallery-lightbox-nav.next { right: 12px; }
.gallery-lightbox-caption {
    position: absolute; bottom: 18px; left: 0; right: 0;
    text-align: center; color: rgba(255,255,255,0.85); font-size: 14px;
    pointer-events: none;
}
@media (max-width: 600px) {
    .gallery-lightbox { padding: 12px; }
    .gallery-lightbox-nav { font-size: 36px; padding: 0 8px; }
    .gallery-lightbox-close { font-size: 30px; top: 10px; right: 10px; }
}

@media (max-width: 780px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.wide, .gallery-item.tall { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; }
}

/* Map */
.map-section { padding: 0; }
.map-embed {
    width: 100%; height: 480px; border: 0; filter: grayscale(0.4) contrast(0.95);
}

/* CTA */
.cta-band {
    background: var(--c-ink);
    color: #fff;
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 30px; }

/* Forms */
.form-card {
    background: var(--c-white);
    padding: clamp(28px, 5vw, 56px);
    box-shadow: var(--shadow-1);
    max-width: 720px; margin: 0 auto;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
    font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--c-muted); margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--c-line);
    background: #fafaf8;
    font: inherit; color: var(--c-ink);
    line-height: 1.2;
    border-radius: var(--radius);
    transition: border-color .2s;
}
.form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%231a1a1a' stroke-width='1.5' d='M1 1.5 L6 6.5 L11 1.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none; border-color: var(--c-accent);
}
.form-field textarea { min-height: 120px; resize: vertical; }

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

/* Page header */
.page-header {
    padding: 180px 0 80px;
    background: var(--c-bg-alt);
    text-align: center;
    border-bottom: 1px solid var(--c-line);
}
.page-header h1 { margin-bottom: 8px; }
.page-header .crumbs { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-muted); }

/* Contacts grid */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.contact-card {
    padding: 40px 24px;
    border: 1px solid var(--c-line);
    background: var(--c-white);
}
.contact-card h4 { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 12px; }
.contact-card .value { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; line-height: 1.5; }
.contact-card .value a { color: inherit; text-decoration: none; transition: color 0.2s; }
.contact-card .value a:hover { color: var(--c-accent); }
.contact-card .value i { margin-right: 8px; font-size: 1.1rem; }
@media (max-width: 780px) { .contacts-grid { grid-template-columns: 1fr !important; } }

/* Footer */
.site-footer {
    background: var(--c-black);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 24px;
}
.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: #fff; margin-bottom: 14px; }
.footer-desc { font-size: 0.95rem; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.94rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: var(--c-accent-soft); }
.contact-list li { color: rgba(255,255,255,0.7); }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.25);
    display: grid; place-items: center;
    font-size: 11px; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.8);
}
.socials a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.footer-bottom {
    max-width: var(--container);
    margin: 60px auto 0;
    padding: 24px var(--gutter) 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between;
    font-size: 0.85rem; color: rgba(255,255,255,0.45);
}
@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Amenities grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.amenity {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--c-ink);
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.amenity i {
    font-size: 26px;
    color: var(--c-accent);
}
.amenity:hover {
    border-color: var(--c-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 20, 20, 0.08);
}
@media (max-width: 980px) { .amenities-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }

/* Info cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.info-card {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    padding: 32px 28px;
}
.info-card-icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    background: var(--c-bg-alt);
    color: var(--c-accent);
    font-size: 22px;
    border-radius: 50%;
    margin-bottom: 18px;
}
.info-card h3 {
    margin-bottom: 14px;
    font-family: 'Cormorant Garamond', serif;
}
.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-card ul li {
    padding: 8px 0;
    border-top: 1px solid var(--c-line);
    color: var(--c-ink-soft);
    font-size: 0.95rem;
}
.info-card ul li:first-child { border-top: 0; padding-top: 0; }
.info-card ul li i {
    width: 18px;
    margin-right: 8px;
    color: var(--c-accent);
}
.info-card ul li i.rule-no {
    color: #b03a3a;
}
@media (max-width: 880px) { .info-cards { grid-template-columns: 1fr !important; } }

/* Booking rules */
.booking-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.rule-item {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-left: 3px solid var(--c-accent);
    padding: 28px 28px 24px;
    display: flex;
    gap: 20px;
}
.rule-item.rule-warning {
    border-left-color: #c98a16;
    background: #fffaf0;
}
.rule-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    line-height: 1;
    color: var(--c-accent);
    flex-shrink: 0;
    opacity: 0.5;
}
.rule-item.rule-warning .rule-num { color: #c98a16; }
.rule-body h3 {
    margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
}
.rule-body p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: var(--c-ink-soft);
}
.rule-exception {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px dashed var(--c-line);
    font-size: 0.88rem !important;
    color: var(--c-muted) !important;
    font-style: italic;
}
@media (max-width: 880px) { .booking-rules { grid-template-columns: 1fr; } }

/* Floating contact widget */
.fc {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}
.fc-btn {
    pointer-events: auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-size: 20px;
    background: #fff;
    color: var(--c-ink);
    box-shadow:
        0 6px 18px rgba(20, 20, 20, 0.12),
        0 2px 6px rgba(20, 20, 20, 0.08);
    transition:
        transform .35s cubic-bezier(.2,.9,.3,1.2),
        opacity .35s ease,
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease;
    position: relative;
}
.fc-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow:
        0 12px 28px rgba(20, 20, 20, 0.18),
        0 4px 10px rgba(20, 20, 20, 0.1);
}
.fc-btn:active { transform: translateY(0) scale(0.96); }

/* Main green button */
.fc-main {
    width: 60px;
    height: 60px;
    font-size: 22px;
    background: linear-gradient(135deg, #16a571 0%, #0e8a5e 100%);
    color: #fff;
    box-shadow:
        0 10px 26px rgba(14, 138, 94, 0.42),
        0 3px 10px rgba(14, 138, 94, 0.25);
    position: relative;
}
.fc-main:hover {
    background: linear-gradient(135deg, #18b87e 0%, #0fa06a 100%);
    box-shadow:
        0 16px 38px rgba(14, 138, 94, 0.5),
        0 6px 14px rgba(14, 138, 94, 0.3);
}
.fc-main::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(22, 165, 113, 0.25);
    z-index: -1;
    animation: fc-pulse 2.4s ease-out infinite;
}
@keyframes fc-pulse {
    0%   { transform: scale(0.85); opacity: 0.7; }
    70%  { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}
.fc.open .fc-main::before { animation: none; opacity: 0; }

/* Icon swap on toggle */
.fc-main .fc-icon-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.6); transition: .3s; }
.fc-main .fc-icon-open  { transition: .3s; }
.fc.open .fc-main .fc-icon-open  { opacity: 0; transform: rotate(90deg) scale(0.6); }
.fc.open .fc-main .fc-icon-close { opacity: 1; transform: rotate(0) scale(1); }

/* Sub-items (hidden state) */
.fc-item {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px) scale(0.55);
    transition:
        opacity .32s ease,
        transform .42s cubic-bezier(.25,.9,.35,1.25);
    transition-delay: calc((4 - var(--i)) * 35ms);
}
.fc.open .fc-item {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: calc(var(--i) * 60ms);
}

/* Brand-tinted hover for sub-items */
.fc-whatsapp:hover  { background: #25D366; color: #fff; }
.fc-telegram:hover  { background: #229ED9; color: #fff; }
.fc-instagram:hover { background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 80%, #515bd4); color: #fff; }
.fc-vk:hover        { background: #0077FF; color: #fff; }
.fc-max:hover       { background: linear-gradient(135deg, #6E2FF5, #4a1fbf); color: #fff; }
.fc-phone:hover     { background: var(--c-ink); color: #fff; }

/* Max custom mark */
.fc-max-mark {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Tooltip on hover */
.fc-item[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .25s ease;
}
.fc-item[data-tip]::before {
    content: "";
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(20, 20, 20, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.fc-item:hover::after  { opacity: 1; transform: translateY(-50%) translateX(0); }
.fc-item:hover::before { opacity: 1; }

/* Mobile */
@media (max-width: 600px) {
    .fc { right: 14px; gap: 10px; }
    .fc-btn { width: 48px; height: 48px; font-size: 18px; }
    .fc-main { width: 54px; height: 54px; font-size: 20px; }
    .fc-max-mark { font-size: 20px; }
    .fc-item[data-tip]::after,
    .fc-item[data-tip]::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fc-btn, .fc-item, .fc-main .fc-icon-open, .fc-main .fc-icon-close { transition-duration: .1s; }
    .fc-main::before { animation: none; }
}
