/* =============================================
   GOOD HAPPENS — Modern Redesign
   ============================================= */

:root {
    --color-bg: #fafaf9;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #6b6b6b;
    --color-accent: #0088cc;
    --color-accent-hover: #006fa3;
    --color-gold: #c9a84c;
    --color-gold-light: #f5ecd7;
    --color-border: #e8e8e8;
    --color-dark: #111111;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 20px rgba(0,0,0,.06);
    --shadow-hover: 0 8px 40px rgba(0,0,0,.12);
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --font: 'Inter', 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   HEADER
   ============================================= */

.gh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    height: 72px;
}

.gh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.gh-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .5px;
}

.gh-logo:hover {
    color: var(--color-text);
}

.gh-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
}

.gh-nav {
    display: flex;
    align-items: center;
}

#nav-toggle {
    display: none;
}

.gh-burger {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.gh-burger span,
.gh-burger span::before,
.gh-burger span::after {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
    position: absolute;
    top: 50%;
}

.gh-burger span::before,
.gh-burger span::after {
    content: '';
    position: absolute;
    left: 0;
}

.gh-burger span::before { top: -8px; }
.gh-burger span::after { top: 8px; }

.gh-nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.gh-nav-links li a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.gh-nav-links li a:hover {
    color: var(--color-text);
    background: rgba(0,0,0,.04);
}

.gh-nav-tg {
    background: var(--color-accent) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 20px !important;
}

.gh-nav-tg:hover {
    background: var(--color-accent-hover) !important;
    color: #fff !important;
}

/* =============================================
   HERO
   ============================================= */

.gh-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gh-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(201,168,76,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0,136,204,0.15) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #111 100%);
}

.gh-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(201,168,76,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.gh-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 100%);
}

.gh-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.gh-hero h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.gh-hero-sub {
    font-size: clamp(16px, 2.5vw, 24px);
    color: var(--color-gold);
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.gh-hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,.7);
    margin-bottom: 40px;
}

.gh-hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.gh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.gh-btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.gh-btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,136,204,.3);
}

.gh-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
}

.gh-btn-outline:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.7);
}

.gh-tg-icon { width: 20px; height: 20px; flex-shrink: 0; }
.gh-tg-icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.gh-tg-icon-xs { width: 14px; height: 14px; flex-shrink: 0; }
.gh-tg-icon-lg { width: 36px; height: 36px; flex-shrink: 0; }

/* =============================================
   SECTION COMMON
   ============================================= */

.gh-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.gh-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.gh-divider {
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 0 auto;
    border-radius: 2px;
}

.gh-section-sub {
    margin-top: 16px;
    font-size: 16px;
    color: var(--color-text-secondary);
}

.gh-section-sub a {
    color: var(--color-accent);
    font-weight: 600;
}

/* =============================================
   ABOUT
   ============================================= */

.gh-about {
    padding: 100px 0 80px;
    background: var(--color-surface);
}

.gh-about-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

.gh-about-img img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 4px solid var(--color-gold-light);
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(201,168,76,.22), 0 4px 12px rgba(0,0,0,.08);
    transition: var(--transition);
}

.gh-about-img img:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(201,168,76,.32), 0 6px 16px rgba(0,0,0,.12);
}

.gh-about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.gh-about-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}

.gh-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text);
    padding: 8px 16px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

a.gh-contact-item:hover {
    background: var(--color-gold-light);
    color: var(--color-text);
}

.gh-contact-icon {
    font-size: 18px;
}

/* =============================================
   GALLERY
   ============================================= */

.gh-gallery {
    padding: 80px 0;
    background: var(--color-bg);
}

.gh-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.gh-product-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gh-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.gh-product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f0f0f0;
}

.gh-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gh-product-card:hover .gh-product-img img {
    transform: scale(1.05);
}

.gh-product-info {
    padding: 14px 16px;
}

.gh-product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.gh-product-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0,136,204,.08);
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.gh-product-buy:hover {
    background: var(--color-accent);
    color: #fff;
}

.gh-product-buy:hover svg {
    fill: #fff;
}

/* CTA Banner */
.gh-cta-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    padding: 32px 40px;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a2a2a 100%);
    border-radius: var(--radius);
    color: #fff;
}

.gh-cta-banner svg {
    fill: var(--color-gold);
}

.gh-cta-banner h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gh-cta-banner p {
    font-size: 14px;
    color: rgba(255,255,255,.7);
}

.gh-cta-banner .gh-btn {
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

/* =============================================
   FAQ
   ============================================= */

.gh-faq {
    padding: 80px 0;
    background: var(--color-surface);
}

.gh-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.gh-faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
}

.gh-faq-item:last-child {
    border-bottom: none;
}

.gh-faq-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    cursor: default;
}

.gh-faq-item p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.gh-faq-item a {
    font-weight: 600;
}

/* =============================================
   CONTACT
   ============================================= */

.gh-contact {
    padding: 80px 0;
    background: var(--color-bg);
}

.gh-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.gh-contact-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gh-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.gh-contact-card-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #005f8a 100%);
    color: #fff;
}

.gh-contact-card-accent h3 {
    color: #fff;
}

.gh-contact-card-accent a {
    color: #fff;
    font-weight: 600;
}

.gh-contact-card-accent svg {
    fill: #fff;
}

.gh-contact-card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.gh-contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.gh-contact-card a,
.gh-contact-card span {
    font-size: 15px;
}

/* =============================================
   FOOTER
   ============================================= */

.gh-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,.7);
    padding: 48px 0 0;
}

.gh-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    gap: 24px;
    flex-wrap: wrap;
}

.gh-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: #fff;
}

.gh-footer-brand > span {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.gh-footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin: 0;
}

.gh-footer-links {
    display: flex;
    gap: 24px;
}

.gh-footer-links a {
    color: rgba(255,255,255,.6);
    font-size: 14px;
    transition: var(--transition);
}

.gh-footer-links a:hover {
    color: #fff;
}

.gh-footer-tg a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gold);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.gh-footer-tg svg {
    fill: var(--color-gold);
}

.gh-footer-tg a:hover {
    color: #fff;
}

.gh-footer-tg a:hover svg {
    fill: #fff;
}

.gh-footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.gh-footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

/* =============================================
   FLOATING TELEGRAM BUTTON
   ============================================= */

.gh-float-tg {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,136,204,.4);
    z-index: 999;
    transition: var(--transition);
    animation: gh-pulse 2s infinite;
}

.gh-float-tg:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0,136,204,.5);
}

.gh-float-tg svg {
    width: 28px;
    height: 28px;
}

@keyframes gh-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,136,204,.4); }
    50% { box-shadow: 0 4px 30px rgba(0,136,204,.6); }
}

/* Hide old elements from base CSS */
.connect-links,
.home,
header,
.hello_slid,
section#features,
section#faq,
section#business,
aside,
footer:not(.gh-footer),
section#action {
    display: none !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
    .gh-burger {
        display: block;
    }

    .gh-nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-surface);
        flex-direction: column;
        padding: 80px 24px 40px;
        gap: 0;
        box-shadow: -4px 0 30px rgba(0,0,0,.1);
        transition: right var(--transition);
        z-index: 1000;
        overflow-y: auto;
    }

    #nav-toggle:checked ~ .gh-nav-links {
        right: 0;
    }

    .gh-nav-links li {
        width: 100%;
    }

    .gh-nav-links li a {
        display: block;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: var(--radius-sm);
    }

    .gh-nav-tg {
        text-align: center;
        margin-top: 8px;
    }

    .gh-about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gh-about-contacts {
        justify-content: center;
    }

    .gh-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gh-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .gh-cta-banner .gh-btn {
        margin-left: 0;
    }

    .gh-contact-grid {
        grid-template-columns: 1fr;
    }

    .gh-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .gh-footer-links {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .gh-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gh-product-info {
        padding: 10px 12px;
    }

    .gh-product-buy {
        font-size: 11px;
        padding: 5px 8px;
    }

    .gh-hero-content {
        padding: 100px 16px 60px;
    }

    .gh-section-header h2 {
        font-size: 26px;
    }

    .gh-hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .gh-btn {
        width: 100%;
        justify-content: center;
    }

    .gh-float-tg {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .gh-float-tg svg {
        width: 24px;
        height: 24px;
    }
}
